Chromium Code Reviews| Index: content/renderer/webcrypto/webcrypto_util.cc |
| diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/renderer/webcrypto/webcrypto_util.cc |
| index 3124afa7dfdf2594f575ba43149d29a155896d17..0046e8f116255bc8bdadae8968772fabe9036eac 100644 |
| --- a/content/renderer/webcrypto/webcrypto_util.cc |
| +++ b/content/renderer/webcrypto/webcrypto_util.cc |
| @@ -115,6 +115,10 @@ Status Status::ErrorDataTooLarge() { |
| return Status("The provided data is too large"); |
| } |
| +Status Status::ErrorDataTooSmall() { |
| + return Status("The provided data is too small"); |
| +} |
| + |
| Status Status::ErrorUnsupported() { |
| return Status("The requested operation is unsupported"); |
| } |
| @@ -128,6 +132,10 @@ Status Status::ErrorInvalidAesGcmTagLength() { |
| "of 8 bits"); |
| } |
| +Status Status::ErrorInvalidAesKwDataLength() { |
| + return Status("The data length is invalid: not a multiple of 8 bytes"); |
|
eroman
2014/02/26 23:40:22
I suggest adding AES-KW somewhere in there
(The w
padolph
2014/02/28 23:28:40
Done.
|
| +} |
| + |
| Status Status::ErrorGenerateKeyPublicExponent() { |
| return Status("The \"publicExponent\" is either empty, zero, or too large"); |
| } |