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

Unified Diff: crypto/rsa_private_key.h

Issue 306433003: enterprise.platformKeys: Support the publicExponent parameter. (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 side-by-side diff with in-line comments
Download patch
Index: crypto/rsa_private_key.h
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h
index cb190677b166641443229012d5fa7379eb384806..b1ea507237c86dc97ee2245259f2507ef708c42e 100644
--- a/crypto/rsa_private_key.h
+++ b/crypto/rsa_private_key.h
@@ -181,10 +181,14 @@ class CRYPTO_EXPORT RSAPrivateKey {
const std::vector<uint8>& input);
#if defined(USE_NSS)
+ static uint64 kDefaultPublicExponent;
+
// Create a new random instance in |slot|. Can return NULL if initialization
// fails. The created key is permanent and is not exportable in plaintext
// form.
- static RSAPrivateKey* CreateSensitive(PK11SlotInfo* slot, uint16 num_bits);
+ static RSAPrivateKey* CreateSensitive(PK11SlotInfo* slot,
+ uint16 num_bits,
+ uint64 public_exponent);
// Create a new instance in |slot| by importing an existing private key. The
// format is an ASN.1-encoded PrivateKeyInfo block from PKCS #8. This can
@@ -251,6 +255,7 @@ class CRYPTO_EXPORT RSAPrivateKey {
// Note: |permanent| is only supported when USE_NSS is defined.
static RSAPrivateKey* CreateWithParams(PK11SlotInfo* slot,
uint16 num_bits,
+ uint64 public_exponent,
bool permanent,
bool sensitive);

Powered by Google App Engine
This is Rietveld 408576698