Chromium Code Reviews| Index: content/child/webcrypto/status.cc |
| diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc |
| index abadf001eabe73128b3da19c0ce066462ea39e28..74bd9096f62c7ab413609a8abd090797e27262f0 100644 |
| --- a/content/child/webcrypto/status.cc |
| +++ b/content/child/webcrypto/status.cc |
| @@ -328,6 +328,12 @@ Status Status::ErrorEcdhLengthTooBig(unsigned int max_length_bits) { |
| max_length_bits)); |
| } |
| +Status Status::ErrorPbkdf2InvalidLength() { |
| + return Status( |
| + blink::WebCryptoErrorTypeOperation, |
| + "Length for PBKDF2 key derivation must be a multiple of 8 bits."); |
|
eroman
2015/01/13 00:19:20
This is also used in the situation where a length
eroman
2015/01/13 00:30:17
In the case of the latter, HKDF change proposes:
|
| +} |
| + |
| Status::Status(blink::WebCryptoErrorType error_type, |
| const std::string& error_details_utf8) |
| : type_(TYPE_ERROR), |