Index: content/renderer/webcrypto/webcrypto_util.cc |
diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/renderer/webcrypto/webcrypto_util.cc |
index 5d17c932f717dddb20ff637dfbd3501f054676bf..84bfbda28b8dcbb0eb3c33713091264c87768cdb 100644 |
--- a/content/renderer/webcrypto/webcrypto_util.cc |
+++ b/content/renderer/webcrypto/webcrypto_util.cc |
@@ -114,6 +114,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,12 @@ Status Status::ErrorInvalidAesGcmTagLength() { |
"bits"); |
} |
+Status Status::ErrorInvalidAesKwDataLength() { |
+ return Status( |
+ "The AES-KW input data length is invalid: not a multiple of 8 " |
+ "bytes"); |
+} |
+ |
Status Status::ErrorGenerateKeyPublicExponent() { |
return Status("The \"publicExponent\" is either empty, zero, or too large"); |
} |
@@ -138,6 +148,12 @@ Status Status::ErrorMissingAlgorithmImportRawKey() { |
"raw-formatted key."); |
} |
+Status Status::ErrorMissingAlgorithmUnwrapRawKey() { |
+ return Status( |
+ "The key's algorithm must be specified when unwrapping a " |
+ "raw-formatted key."); |
+} |
+ |
Status Status::ErrorImportRsaEmptyModulus() { |
return Status("The modulus is empty"); |
} |