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

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

Issue 34583010: [webcrypto] Add RSA key generation using NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (minor) fixes for eroman 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
« 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool DigestInternal( 85 bool DigestInternal(
86 const WebKit::WebCryptoAlgorithm& algorithm, 86 const WebKit::WebCryptoAlgorithm& algorithm,
87 const unsigned char* data, 87 const unsigned char* data,
88 unsigned data_size, 88 unsigned data_size,
89 WebKit::WebArrayBuffer* buffer); 89 WebKit::WebArrayBuffer* buffer);
90 bool GenerateKeyInternal( 90 bool GenerateKeyInternal(
91 const WebKit::WebCryptoAlgorithm& algorithm, 91 const WebKit::WebCryptoAlgorithm& algorithm,
92 bool extractable, 92 bool extractable,
93 WebKit::WebCryptoKeyUsageMask usage_mask, 93 WebKit::WebCryptoKeyUsageMask usage_mask,
94 WebKit::WebCryptoKey* key); 94 WebKit::WebCryptoKey* key);
95 bool GenerateKeyPairInternal(
96 const WebKit::WebCryptoAlgorithm& algorithm,
97 bool extractable,
98 WebKit::WebCryptoKeyUsageMask usage_mask,
99 WebKit::WebCryptoKey* public_key,
100 WebKit::WebCryptoKey* private_key);
95 bool ImportKeyInternal( 101 bool ImportKeyInternal(
96 WebKit::WebCryptoKeyFormat format, 102 WebKit::WebCryptoKeyFormat format,
97 const unsigned char* key_data, 103 const unsigned char* key_data,
98 unsigned key_data_size, 104 unsigned key_data_size,
99 const WebKit::WebCryptoAlgorithm& algorithm_or_null, 105 const WebKit::WebCryptoAlgorithm& algorithm_or_null,
100 bool extractable, 106 bool extractable,
101 WebKit::WebCryptoKeyUsageMask usage_mask, 107 WebKit::WebCryptoKeyUsageMask usage_mask,
102 WebKit::WebCryptoKey* key); 108 WebKit::WebCryptoKey* key);
103 bool SignInternal( 109 bool SignInternal(
104 const WebKit::WebCryptoAlgorithm& algorithm, 110 const WebKit::WebCryptoAlgorithm& algorithm,
(...skipping 10 matching lines...) Expand all
115 unsigned data_size, 121 unsigned data_size,
116 bool* signature_match); 122 bool* signature_match);
117 123
118 private: 124 private:
119 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 125 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
120 }; 126 };
121 127
122 } // namespace content 128 } // namespace content
123 129
124 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 130 #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