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

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

Issue 272033003: [refactor] Change ordering of wrapkey parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 CONTENT_EXPORT Status 125 CONTENT_EXPORT Status
126 VerifySignature(const blink::WebCryptoAlgorithm& algorithm, 126 VerifySignature(const blink::WebCryptoAlgorithm& algorithm,
127 const blink::WebCryptoKey& key, 127 const blink::WebCryptoKey& key,
128 const CryptoData& signature, 128 const CryptoData& signature,
129 const CryptoData& data, 129 const CryptoData& data,
130 bool* signature_match); 130 bool* signature_match);
131 131
132 CONTENT_EXPORT Status 132 CONTENT_EXPORT Status
133 WrapKey(blink::WebCryptoKeyFormat format, 133 WrapKey(blink::WebCryptoKeyFormat format,
134 const blink::WebCryptoKey& key_to_wrap,
134 const blink::WebCryptoKey& wrapping_key, 135 const blink::WebCryptoKey& wrapping_key,
135 const blink::WebCryptoKey& key_to_wrap,
136 const blink::WebCryptoAlgorithm& wrapping_algorithm, 136 const blink::WebCryptoAlgorithm& wrapping_algorithm,
137 std::vector<uint8>* buffer); 137 std::vector<uint8>* buffer);
138 138
139 CONTENT_EXPORT Status 139 CONTENT_EXPORT Status
140 UnwrapKey(blink::WebCryptoKeyFormat format, 140 UnwrapKey(blink::WebCryptoKeyFormat format,
141 const CryptoData& wrapped_key_data, 141 const CryptoData& wrapped_key_data,
142 const blink::WebCryptoKey& wrapping_key, 142 const blink::WebCryptoKey& wrapping_key,
143 const blink::WebCryptoAlgorithm& wrapping_algorithm, 143 const blink::WebCryptoAlgorithm& wrapping_algorithm,
144 const blink::WebCryptoAlgorithm& algorithm, 144 const blink::WebCryptoAlgorithm& algorithm,
145 bool extractable, 145 bool extractable,
(...skipping 11 matching lines...) Expand all
157 bool extractable, 157 bool extractable,
158 blink::WebCryptoKeyUsageMask usage_mask, 158 blink::WebCryptoKeyUsageMask usage_mask,
159 const CryptoData& key_data, 159 const CryptoData& key_data,
160 blink::WebCryptoKey* key); 160 blink::WebCryptoKey* key);
161 161
162 } // namespace webcrypto 162 } // namespace webcrypto
163 163
164 } // namespace content 164 } // namespace content
165 165
166 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 166 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698