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

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

Issue 200763005: Support for the new WebCrypto digest by chunks API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to latest WebCrypto API changes 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 CONTENT_EXPORT Status Decrypt(const blink::WebCryptoAlgorithm& algorithm, 81 CONTENT_EXPORT Status Decrypt(const blink::WebCryptoAlgorithm& algorithm,
82 const blink::WebCryptoKey& key, 82 const blink::WebCryptoKey& key,
83 const CryptoData& data, 83 const CryptoData& data,
84 blink::WebArrayBuffer* buffer); 84 blink::WebArrayBuffer* buffer);
85 85
86 CONTENT_EXPORT Status Digest(const blink::WebCryptoAlgorithm& algorithm, 86 CONTENT_EXPORT Status Digest(const blink::WebCryptoAlgorithm& algorithm,
87 const CryptoData& data, 87 const CryptoData& data,
88 blink::WebArrayBuffer* buffer); 88 blink::WebArrayBuffer* buffer);
89 89
90 CONTENT_EXPORT blink::WebCryptoDigestor* CreateDigestor(
91 blink::WebCryptoAlgorithm algorithm);
eroman 2014/03/25 23:26:23 I thought on the blink side we were taking Algorit
jww 2014/03/26 00:42:31 Done.
92
90 CONTENT_EXPORT Status 93 CONTENT_EXPORT Status
91 GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm, 94 GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm,
92 bool extractable, 95 bool extractable,
93 blink::WebCryptoKeyUsageMask usage_mask, 96 blink::WebCryptoKeyUsageMask usage_mask,
94 blink::WebCryptoKey* key); 97 blink::WebCryptoKey* key);
95 98
96 CONTENT_EXPORT Status 99 CONTENT_EXPORT Status
97 GenerateKeyPair(const blink::WebCryptoAlgorithm& algorithm, 100 GenerateKeyPair(const blink::WebCryptoAlgorithm& algorithm,
98 bool extractable, 101 bool extractable,
99 blink::WebCryptoKeyUsageMask usage_mask, 102 blink::WebCryptoKeyUsageMask usage_mask,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 bool extractable, 162 bool extractable,
160 blink::WebCryptoKeyUsageMask usage_mask, 163 blink::WebCryptoKeyUsageMask usage_mask,
161 const CryptoData& key_data, 164 const CryptoData& key_data,
162 blink::WebCryptoKey* key); 165 blink::WebCryptoKey* key);
163 166
164 } // namespace webcrypto 167 } // namespace webcrypto
165 168
166 } // namespace content 169 } // namespace content
167 170
168 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 171 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698