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

Side by Side Diff: content/renderer/webcrypto/webcrypto_impl.h

Issue 76363006: [webcrypto] Add JWK import of RSA public key for NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjusted #ifdef to make android (openssl) build pass Created 7 years 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/renderer/webcrypto/webcrypto_impl.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_
6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 unsigned data_size, 127 unsigned data_size,
128 bool* signature_match); 128 bool* signature_match);
129 129
130 bool ImportKeyJwk( 130 bool ImportKeyJwk(
131 const unsigned char* key_data, 131 const unsigned char* key_data,
132 unsigned key_data_size, 132 unsigned key_data_size,
133 const blink::WebCryptoAlgorithm& algorithm_or_null, 133 const blink::WebCryptoAlgorithm& algorithm_or_null,
134 bool extractable, 134 bool extractable,
135 blink::WebCryptoKeyUsageMask usage_mask, 135 blink::WebCryptoKeyUsageMask usage_mask,
136 blink::WebCryptoKey* key); 136 blink::WebCryptoKey* key);
137 bool ImportRsaPublicKeyInternal(
138 const unsigned char* modulus_data,
139 unsigned modulus_size,
140 const unsigned char* exponent_data,
141 unsigned exponent_size,
142 const blink::WebCryptoAlgorithm& algorithm,
143 bool extractable,
144 blink::WebCryptoKeyUsageMask usage_mask,
145 blink::WebCryptoKey* key);
137 146
138 private: 147 private:
139 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 148 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
140 }; 149 };
141 150
142 } // namespace content 151 } // namespace content
143 152
144 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 153 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698