Index: components/webcrypto/status.cc |
diff --git a/components/webcrypto/status.cc b/components/webcrypto/status.cc |
index 7dcbb93c8884d60b6771c10a94c793cc714cf503..3645279c7ec51e1f76a443f53684945335b9b0aa 100644 |
--- a/components/webcrypto/status.cc |
+++ b/components/webcrypto/status.cc |
@@ -331,6 +331,11 @@ Status Status::ErrorHkdfLengthTooLong() { |
"The length provided for HKDF is too large."); |
} |
+Status Status::ErrorHkdfLengthNotWholeByte() { |
+ return Status(blink::kWebCryptoErrorTypeOperation, |
+ "The length provided for HKDF is not a multiple of 8 bits."); |
+} |
+ |
Status Status::ErrorHkdfDeriveBitsLengthNotSpecified() { |
// TODO(nharper): The spec might change so that an OperationError should be |
// thrown here instead of a TypeError. |