OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 static Status ErrorJwkUseInconsistent(); | 95 static Status ErrorJwkUseInconsistent(); |
96 | 96 |
97 // The "key_ops" parameter was specified, however it is incompatible with that | 97 // The "key_ops" parameter was specified, however it is incompatible with that |
98 // specified by the Web Crypto import operation. | 98 // specified by the Web Crypto import operation. |
99 static Status ErrorJwkKeyopsInconsistent(); | 99 static Status ErrorJwkKeyopsInconsistent(); |
100 | 100 |
101 // Both the "key_ops" and the "use" parameters were specified, however they | 101 // Both the "key_ops" and the "use" parameters were specified, however they |
102 // are incompatible with each other. | 102 // are incompatible with each other. |
103 static Status ErrorJwkUseAndKeyopsInconsistent(); | 103 static Status ErrorJwkUseAndKeyopsInconsistent(); |
104 | 104 |
105 // TODO(eroman): Private key import through JWK is not yet supported. | |
106 static Status ErrorJwkRsaPrivateKeyUnsupported(); | |
107 | |
108 // The "kty" parameter was given and was a string, however it was | 105 // The "kty" parameter was given and was a string, however it was |
109 // unrecognized. | 106 // unrecognized. |
110 static Status ErrorJwkUnrecognizedKty(); | 107 static Status ErrorJwkUnrecognizedKty(); |
111 | 108 |
112 // The amount of key data provided was incompatible with the selected | 109 // The amount of key data provided was incompatible with the selected |
113 // algorithm. For instance if the algorith name was A128CBC then EXACTLY | 110 // algorithm. For instance if the algorith name was A128CBC then EXACTLY |
114 // 128-bits of key data must have been provided. If 192-bits of key data were | 111 // 128-bits of key data must have been provided. If 192-bits of key data were |
115 // given that is an error. | 112 // given that is an error. |
116 static Status ErrorJwkIncorrectKeyLength(); | 113 static Status ErrorJwkIncorrectKeyLength(); |
117 | 114 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 Type type_; | 198 Type type_; |
202 blink::WebCryptoErrorType error_type_; | 199 blink::WebCryptoErrorType error_type_; |
203 std::string error_details_; | 200 std::string error_details_; |
204 }; | 201 }; |
205 | 202 |
206 } // namespace webcrypto | 203 } // namespace webcrypto |
207 | 204 |
208 } // namespace content | 205 } // namespace content |
209 | 206 |
210 #endif // CONTENT_CHILD_WEBCRYPTO_STATUS_H_ | 207 #endif // CONTENT_CHILD_WEBCRYPTO_STATUS_H_ |
OLD | NEW |