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

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

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/platform_crypto.h ('k') | content/child/webcrypto/status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/status.h
diff --git a/content/child/webcrypto/status.h b/content/child/webcrypto/status.h
index a9ff4373d8b20609c887258088612715ee310503..7134ef35bccea5a4aa2306438ce72bec3a1a3ede 100644
--- a/content/child/webcrypto/status.h
+++ b/content/child/webcrypto/status.h
@@ -144,6 +144,18 @@ class CONTENT_EXPORT Status {
// bytes.
static Status ErrorIncorrectSizeAesCbcIv();
+ // When doing AES-CTR encryption/decryption, the "counter" parameter was not
+ // 16 bytes.
+ static Status ErrorIncorrectSizeAesCtrCounter();
+
+ // When doing AES-CTR encryption/decryption, the "length" parameter for the
+ // counter was out of range.
+ static Status ErrorInvalidAesCtrCounterLength();
+
+ // The input to encrypt/decrypt was too large. Based on the counter size, it
+ // would cause the counter to wraparound and repeat earlier values.
+ static Status ErrorAesCtrInputTooLongCounterRepeated();
+
// The data provided to an encrypt/decrypt/sign/verify operation was too
// large. This can either represent an internal limitation (for instance
// representing buffer lengths as uints).
« no previous file with comments | « content/child/webcrypto/platform_crypto.h ('k') | content/child/webcrypto/status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698