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

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: fixes for rsleevi Created 7 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 unsigned data_size, 119 unsigned data_size,
120 bool* signature_match); 120 bool* signature_match);
121 121
122 bool ImportKeyJwk( 122 bool ImportKeyJwk(
123 const unsigned char* key_data, 123 const unsigned char* key_data,
124 unsigned key_data_size, 124 unsigned key_data_size,
125 const blink::WebCryptoAlgorithm& algorithm_or_null, 125 const blink::WebCryptoAlgorithm& algorithm_or_null,
126 bool extractable, 126 bool extractable,
127 blink::WebCryptoKeyUsageMask usage_mask, 127 blink::WebCryptoKeyUsageMask usage_mask,
128 blink::WebCryptoKey* key); 128 blink::WebCryptoKey* key);
129 bool ImportRsaPublicKeyInternal(
130 const unsigned char* modulus_data,
131 unsigned modulus_size,
132 const unsigned char* exponent_data,
133 unsigned exponent_size,
134 const blink::WebCryptoAlgorithm& algorithm,
135 bool extractable,
136 blink::WebCryptoKeyUsageMask usage_mask,
137 blink::WebCryptoKey* key);
129 138
130 private: 139 private:
131 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 140 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
132 }; 141 };
133 142
134 } // namespace content 143 } // namespace content
135 144
136 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 145 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/webcrypto/webcrypto_impl.cc » ('j') | content/renderer/webcrypto/webcrypto_impl_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698