Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: content/child/webcrypto/status.cc

Issue 491763002: [webcrypto] Implement AES-CTR using BoringSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master (moves unittest to its own file) Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/child/webcrypto/test/aes_ctr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index 0d71b4826dc3efa3ec272277ce10a3a83a2069c5..b3f7c3c01482d4660afc2f1552297f9f0c1e4787 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -150,6 +150,21 @@ Status Status::ErrorIncorrectSizeAesCbcIv() {
"The \"iv\" has an unexpected length -- must be 16 bytes");
}
+Status Status::ErrorIncorrectSizeAesCtrCounter() {
+ return Status(blink::WebCryptoErrorTypeData,
+ "The \"counter\" has an unexpected length -- must be 16 bytes");
+}
+
+Status Status::ErrorInvalidAesCtrCounterLength() {
+ return Status(blink::WebCryptoErrorTypeData,
+ "The \"length\" property must be >= 1 and <= 128");
+}
+
+Status Status::ErrorAesCtrInputTooLongCounterRepeated() {
+ return Status(blink::WebCryptoErrorTypeData,
+ "The input is too large for the counter length.");
+}
+
Status Status::ErrorDataTooLarge() {
return Status(blink::WebCryptoErrorTypeData,
"The provided data is too large");
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/child/webcrypto/test/aes_ctr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698