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

Side by Side Diff: content/child/webcrypto/platform_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_PLATFORM_CRYPTO_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_
6 #define CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_PLATFORM_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 "third_party/WebKit/public/platform/WebArrayBuffer.h" 10 #include "third_party/WebKit/public/platform/WebArrayBuffer.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const blink::WebCryptoAlgorithm& hash, 84 const blink::WebCryptoAlgorithm& hash,
85 const CryptoData& data, 85 const CryptoData& data,
86 blink::WebArrayBuffer* buffer); 86 blink::WebArrayBuffer* buffer);
87 87
88 // Preconditions: 88 // Preconditions:
89 // * |algorithm| is a SHA function. 89 // * |algorithm| is a SHA function.
90 Status DigestSha(blink::WebCryptoAlgorithmId algorithm, 90 Status DigestSha(blink::WebCryptoAlgorithmId algorithm,
91 const CryptoData& data, 91 const CryptoData& data,
92 blink::WebArrayBuffer* buffer); 92 blink::WebArrayBuffer* buffer);
93 93
94 blink::WebCryptoDigestor* CreateDigestor(
eroman 2014/03/25 23:26:23 * Please add a precondition comment saying that al
jww 2014/03/26 00:42:31 Done.
95 blink::WebCryptoAlgorithmId algorithm_id);
96
94 // Preconditions: 97 // Preconditions:
95 // * |key| is non-null. 98 // * |key| is non-null.
96 // * |hash| is a digest algorithm. 99 // * |hash| is a digest algorithm.
97 Status SignRsaSsaPkcs1v1_5(PrivateKey* key, 100 Status SignRsaSsaPkcs1v1_5(PrivateKey* key,
98 const blink::WebCryptoAlgorithm& hash, 101 const blink::WebCryptoAlgorithm& hash,
99 const CryptoData& data, 102 const CryptoData& data,
100 blink::WebArrayBuffer* buffer); 103 blink::WebArrayBuffer* buffer);
101 104
102 // Preconditions: 105 // Preconditions:
103 // * |key| is non-null. 106 // * |key| is non-null.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 blink::WebCryptoKeyUsageMask usage_mask, 237 blink::WebCryptoKeyUsageMask usage_mask,
235 blink::WebCryptoKey* key); 238 blink::WebCryptoKey* key);
236 239
237 } // namespace platform 240 } // namespace platform
238 241
239 } // namespace webcrypto 242 } // namespace webcrypto
240 243
241 } // namespace content 244 } // namespace content
242 245
243 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_ 246 #endif // CONTENT_CHILD_WEBCRYPTO_PLATFORM_CRYPTO_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/webcrypto/platform_crypto_nss.cc » ('j') | content/child/webcrypto/platform_crypto_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698