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

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

Issue 184043021: [webcrypto] JWK: Updated import(ext, key_ops) and added export of symmetric keys (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wcAesKw_nss1
Patch Set: added missing AES-GCM runtime check Created 6 years, 9 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
« no previous file with comments | « content/child/webcrypto/jwk.cc ('k') | content/child/webcrypto/shared_crypto_unittest.cc » ('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 #ifndef CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
6 #define CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool* signature_match); 125 bool* signature_match);
126 126
127 CONTENT_EXPORT Status 127 CONTENT_EXPORT Status
128 ImportKeyJwk(const CryptoData& key_data, 128 ImportKeyJwk(const CryptoData& key_data,
129 const blink::WebCryptoAlgorithm& algorithm_or_null, 129 const blink::WebCryptoAlgorithm& algorithm_or_null,
130 bool extractable, 130 bool extractable,
131 blink::WebCryptoKeyUsageMask usage_mask, 131 blink::WebCryptoKeyUsageMask usage_mask,
132 blink::WebCryptoKey* key); 132 blink::WebCryptoKey* key);
133 133
134 CONTENT_EXPORT Status 134 CONTENT_EXPORT Status
135 ExportKeyJwk(const blink::WebCryptoKey& key, blink::WebArrayBuffer* buffer);
136
137 CONTENT_EXPORT Status
135 WrapKey(blink::WebCryptoKeyFormat format, 138 WrapKey(blink::WebCryptoKeyFormat format,
136 const blink::WebCryptoKey& wrapping_key, 139 const blink::WebCryptoKey& wrapping_key,
137 const blink::WebCryptoKey& key_to_wrap, 140 const blink::WebCryptoKey& key_to_wrap,
138 const blink::WebCryptoAlgorithm& wrapping_algorithm, 141 const blink::WebCryptoAlgorithm& wrapping_algorithm,
139 blink::WebArrayBuffer* buffer); 142 blink::WebArrayBuffer* buffer);
140 143
141 CONTENT_EXPORT Status 144 CONTENT_EXPORT Status
142 UnwrapKey(blink::WebCryptoKeyFormat format, 145 UnwrapKey(blink::WebCryptoKeyFormat format,
143 const CryptoData& wrapped_key_data, 146 const CryptoData& wrapped_key_data,
144 const blink::WebCryptoKey& wrapping_key, 147 const blink::WebCryptoKey& wrapping_key,
145 const blink::WebCryptoAlgorithm& wrapping_algorithm, 148 const blink::WebCryptoAlgorithm& wrapping_algorithm,
146 const blink::WebCryptoAlgorithm& algorithm_or_null, 149 const blink::WebCryptoAlgorithm& algorithm_or_null,
147 bool extractable, 150 bool extractable,
148 blink::WebCryptoKeyUsageMask usage_mask, 151 blink::WebCryptoKeyUsageMask usage_mask,
149 blink::WebCryptoKey* key); 152 blink::WebCryptoKey* key);
150 153
151 } // namespace webcrypto 154 } // namespace webcrypto
152 155
153 } // namespace content 156 } // namespace content
154 157
155 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 158 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
OLDNEW
« no previous file with comments | « content/child/webcrypto/jwk.cc ('k') | content/child/webcrypto/shared_crypto_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698