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

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

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: rebase onto master 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
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/test/data/webcrypto/aes_gcm.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/child/webcrypto/status.h" 5 #include "content/child/webcrypto/status.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 namespace webcrypto { 9 namespace webcrypto {
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 Status Status::ErrorImportEmptyKeyData() { 119 Status Status::ErrorImportEmptyKeyData() {
120 return Status(blink::WebCryptoErrorTypeData, "No key data was provided"); 120 return Status(blink::WebCryptoErrorTypeData, "No key data was provided");
121 } 121 }
122 122
123 Status Status::ErrorImportAesKeyLength() { 123 Status Status::ErrorImportAesKeyLength() {
124 return Status(blink::WebCryptoErrorTypeData, 124 return Status(blink::WebCryptoErrorTypeData,
125 "AES key data must be 128, 192 or 256 bits"); 125 "AES key data must be 128, 192 or 256 bits");
126 } 126 }
127 127
128 Status Status::ErrorAes192BitUnsupported() {
129 return Status(blink::WebCryptoErrorTypeNotSupported,
130 "192-bit AES keys are not supported");
131 }
132
128 Status Status::ErrorUnexpectedKeyType() { 133 Status Status::ErrorUnexpectedKeyType() {
129 return Status(blink::WebCryptoErrorTypeInvalidAccess, 134 return Status(blink::WebCryptoErrorTypeInvalidAccess,
130 "The key is not of the expected type"); 135 "The key is not of the expected type");
131 } 136 }
132 137
133 Status Status::ErrorIncorrectSizeAesCbcIv() { 138 Status Status::ErrorIncorrectSizeAesCbcIv() {
134 return Status(blink::WebCryptoErrorTypeData, 139 return Status(blink::WebCryptoErrorTypeData,
135 "The \"iv\" has an unexpected length -- must be 16 bytes"); 140 "The \"iv\" has an unexpected length -- must be 16 bytes");
136 } 141 }
137 142
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 error_type_(error_type), 214 error_type_(error_type),
210 error_details_(error_details_utf8) { 215 error_details_(error_details_utf8) {
211 } 216 }
212 217
213 Status::Status(Type type) : type_(type) { 218 Status::Status(Type type) : type_(type) {
214 } 219 }
215 220
216 } // namespace webcrypto 221 } // namespace webcrypto
217 222
218 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/test/data/webcrypto/aes_gcm.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698