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

Side by Side Diff: content/child/webcrypto/status.h

Issue 328903003: [webcrypto] Remove support for AES 192-bit keys (2 of 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEBCRYPTO_STATUS_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_STATUS_H_
6 #define CONTENT_CHILD_WEBCRYPTO_STATUS_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_STATUS_H_
7 7
8 #include <string> 8 #include <string>
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebCrypto.h" 10 #include "third_party/WebKit/public/platform/WebCrypto.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Something was unsupported or unimplemented. This can mean the algorithm in 146 // Something was unsupported or unimplemented. This can mean the algorithm in
147 // question was unsupported, some parameter combination was unsupported, or 147 // question was unsupported, some parameter combination was unsupported, or
148 // something has not yet been implemented. 148 // something has not yet been implemented.
149 static Status ErrorUnsupported(); 149 static Status ErrorUnsupported();
150 150
151 // Something unexpected happened in the code, which implies there is a 151 // Something unexpected happened in the code, which implies there is a
152 // source-level bug. These should not happen, but safer to fail than simply 152 // source-level bug. These should not happen, but safer to fail than simply
153 // DCHECK. 153 // DCHECK.
154 static Status ErrorUnexpected(); 154 static Status ErrorUnexpected();
155 155
156 // AES-GCM with 192-bit keys is not supported.
157 static Status ErrorAesGcm192Unsupported();
158
156 // The authentication tag length specified for AES-GCM encrypt/decrypt was 159 // The authentication tag length specified for AES-GCM encrypt/decrypt was
157 // not 32, 64, 96, 104, 112, 120, or 128. 160 // not 32, 64, 96, 104, 112, 120, or 128.
158 static Status ErrorInvalidAesGcmTagLength(); 161 static Status ErrorInvalidAesGcmTagLength();
159 162
160 // The input data given to an AES-KW encrypt/decrypt operation was not a 163 // The input data given to an AES-KW encrypt/decrypt operation was not a
161 // multiple of 8 bytes, as required by RFC 3394. 164 // multiple of 8 bytes, as required by RFC 3394.
162 static Status ErrorInvalidAesKwDataLength(); 165 static Status ErrorInvalidAesKwDataLength();
163 166
164 // The "publicExponent" used to generate a key was invalid: either no bytes 167 // The "publicExponent" used to generate a key was invalid: either no bytes
165 // were specified, or the number was too large to fit into an "unsigned long" 168 // were specified, or the number was too large to fit into an "unsigned long"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 Type type_; 203 Type type_;
201 blink::WebCryptoErrorType error_type_; 204 blink::WebCryptoErrorType error_type_;
202 std::string error_details_; 205 std::string error_details_;
203 }; 206 };
204 207
205 } // namespace webcrypto 208 } // namespace webcrypto
206 209
207 } // namespace content 210 } // namespace content
208 211
209 #endif // CONTENT_CHILD_WEBCRYPTO_STATUS_H_ 212 #endif // CONTENT_CHILD_WEBCRYPTO_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698