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

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

Issue 670773003: Cleanup: rename usage_mask --> usages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | content/child/webcrypto/algorithm_dispatch.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_ALGORITHM_DISPATCH_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_ALGORITHM_DISPATCH_H_
6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_DISPATCH_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_ALGORITHM_DISPATCH_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 const blink::WebCryptoKey& key, 38 const blink::WebCryptoKey& key,
39 const CryptoData& data, 39 const CryptoData& data,
40 std::vector<uint8_t>* buffer); 40 std::vector<uint8_t>* buffer);
41 41
42 CONTENT_EXPORT Status Digest(const blink::WebCryptoAlgorithm& algorithm, 42 CONTENT_EXPORT Status Digest(const blink::WebCryptoAlgorithm& algorithm,
43 const CryptoData& data, 43 const CryptoData& data,
44 std::vector<uint8_t>* buffer); 44 std::vector<uint8_t>* buffer);
45 45
46 CONTENT_EXPORT Status GenerateKey(const blink::WebCryptoAlgorithm& algorithm, 46 CONTENT_EXPORT Status GenerateKey(const blink::WebCryptoAlgorithm& algorithm,
47 bool extractable, 47 bool extractable,
48 blink::WebCryptoKeyUsageMask usage_mask, 48 blink::WebCryptoKeyUsageMask usages,
49 GenerateKeyResult* result); 49 GenerateKeyResult* result);
50 50
51 CONTENT_EXPORT Status ImportKey(blink::WebCryptoKeyFormat format, 51 CONTENT_EXPORT Status ImportKey(blink::WebCryptoKeyFormat format,
52 const CryptoData& key_data, 52 const CryptoData& key_data,
53 const blink::WebCryptoAlgorithm& algorithm, 53 const blink::WebCryptoAlgorithm& algorithm,
54 bool extractable, 54 bool extractable,
55 blink::WebCryptoKeyUsageMask usage_mask, 55 blink::WebCryptoKeyUsageMask usages,
56 blink::WebCryptoKey* key); 56 blink::WebCryptoKey* key);
57 57
58 CONTENT_EXPORT Status ExportKey(blink::WebCryptoKeyFormat format, 58 CONTENT_EXPORT Status ExportKey(blink::WebCryptoKeyFormat format,
59 const blink::WebCryptoKey& key, 59 const blink::WebCryptoKey& key,
60 std::vector<uint8_t>* buffer); 60 std::vector<uint8_t>* buffer);
61 61
62 CONTENT_EXPORT Status Sign(const blink::WebCryptoAlgorithm& algorithm, 62 CONTENT_EXPORT Status Sign(const blink::WebCryptoAlgorithm& algorithm,
63 const blink::WebCryptoKey& key, 63 const blink::WebCryptoKey& key,
64 const CryptoData& data, 64 const CryptoData& data,
65 std::vector<uint8_t>* buffer); 65 std::vector<uint8_t>* buffer);
(...skipping 11 matching lines...) Expand all
77 const blink::WebCryptoAlgorithm& wrapping_algorithm, 77 const blink::WebCryptoAlgorithm& wrapping_algorithm,
78 std::vector<uint8_t>* buffer); 78 std::vector<uint8_t>* buffer);
79 79
80 CONTENT_EXPORT Status 80 CONTENT_EXPORT Status
81 UnwrapKey(blink::WebCryptoKeyFormat format, 81 UnwrapKey(blink::WebCryptoKeyFormat format,
82 const CryptoData& wrapped_key_data, 82 const CryptoData& wrapped_key_data,
83 const blink::WebCryptoKey& wrapping_key, 83 const blink::WebCryptoKey& wrapping_key,
84 const blink::WebCryptoAlgorithm& wrapping_algorithm, 84 const blink::WebCryptoAlgorithm& wrapping_algorithm,
85 const blink::WebCryptoAlgorithm& algorithm, 85 const blink::WebCryptoAlgorithm& algorithm,
86 bool extractable, 86 bool extractable,
87 blink::WebCryptoKeyUsageMask usage_mask, 87 blink::WebCryptoKeyUsageMask usages,
88 blink::WebCryptoKey* key); 88 blink::WebCryptoKey* key);
89 89
90 CONTENT_EXPORT scoped_ptr<blink::WebCryptoDigestor> CreateDigestor( 90 CONTENT_EXPORT scoped_ptr<blink::WebCryptoDigestor> CreateDigestor(
91 blink::WebCryptoAlgorithmId algorithm); 91 blink::WebCryptoAlgorithmId algorithm);
92 92
93 } // namespace webcrypto 93 } // namespace webcrypto
94 94
95 } // namespace content 95 } // namespace content
96 96
97 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_DISPATCH_H_ 97 #endif // CONTENT_CHILD_WEBCRYPTO_ALGORITHM_DISPATCH_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/webcrypto/algorithm_dispatch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698