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

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

Issue 196513002: [webcrypto] Implement structured clone of keys (chromium-side). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix to data->assign() 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 | 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_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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 CONTENT_EXPORT Status 141 CONTENT_EXPORT Status
142 UnwrapKey(blink::WebCryptoKeyFormat format, 142 UnwrapKey(blink::WebCryptoKeyFormat format,
143 const CryptoData& wrapped_key_data, 143 const CryptoData& wrapped_key_data,
144 const blink::WebCryptoKey& wrapping_key, 144 const blink::WebCryptoKey& wrapping_key,
145 const blink::WebCryptoAlgorithm& wrapping_algorithm, 145 const blink::WebCryptoAlgorithm& wrapping_algorithm,
146 const blink::WebCryptoAlgorithm& algorithm_or_null, 146 const blink::WebCryptoAlgorithm& algorithm_or_null,
147 bool extractable, 147 bool extractable,
148 blink::WebCryptoKeyUsageMask usage_mask, 148 blink::WebCryptoKeyUsageMask usage_mask,
149 blink::WebCryptoKey* key); 149 blink::WebCryptoKey* key);
150 150
151 CONTENT_EXPORT Status
152 SerializeKeyForClone(const blink::WebCryptoKey& key,
153 blink::WebVector<unsigned char>* data);
154
155 CONTENT_EXPORT Status
156 DeserializeKeyForClone(const blink::WebCryptoKeyAlgorithm& algorithm,
157 blink::WebCryptoKeyType type,
158 bool extractable,
159 blink::WebCryptoKeyUsageMask usage_mask,
160 const CryptoData& key_data,
161 blink::WebCryptoKey* key);
162
151 } // namespace webcrypto 163 } // namespace webcrypto
152 164
153 } // namespace content 165 } // namespace content
154 166
155 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 167 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/webcrypto/shared_crypto.cc » ('j') | content/child/webcrypto/webcrypto_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698