Home
last modified time | relevance | path

Searched refs:RSAPrivateKey (Results 1 – 25 of 39) sorted by relevance

12

/external/libchrome/crypto/
Drsa_private_key_openssl.cc57 RSAPrivateKey* RSAPrivateKey::Create(uint16_t num_bits) { in Create()
68 scoped_ptr<RSAPrivateKey> result(new RSAPrivateKey); in Create()
77 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfo( in CreateFromPrivateKeyInfo()
93 scoped_ptr<RSAPrivateKey> result(new RSAPrivateKey); in CreateFromPrivateKeyInfo()
102 RSAPrivateKey* RSAPrivateKey::CreateFromKey(EVP_PKEY* key) { in CreateFromKey()
106 RSAPrivateKey* copy = new RSAPrivateKey(); in CreateFromKey()
111 RSAPrivateKey::RSAPrivateKey() in RSAPrivateKey() function in crypto::RSAPrivateKey
115 RSAPrivateKey::~RSAPrivateKey() { in ~RSAPrivateKey()
120 RSAPrivateKey* RSAPrivateKey::Copy() const { in Copy()
121 scoped_ptr<RSAPrivateKey> copy(new RSAPrivateKey()); in Copy()
[all …]
Drsa_private_key_nss.cc44 RSAPrivateKey::~RSAPrivateKey() { in ~RSAPrivateKey()
52 RSAPrivateKey* RSAPrivateKey::Create(uint16_t num_bits) { in Create()
68 RSAPrivateKey* rsa_key = new RSAPrivateKey; in Create()
75 RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfo( in CreateFromPrivateKeyInfo()
88 return RSAPrivateKey::CreateFromKey(key.get()); in CreateFromPrivateKeyInfo()
92 RSAPrivateKey* RSAPrivateKey::CreateFromKey(SECKEYPrivateKey* key) { in CreateFromKey()
96 RSAPrivateKey* copy = new RSAPrivateKey(); in CreateFromKey()
107 RSAPrivateKey* RSAPrivateKey::Copy() const { in Copy()
108 RSAPrivateKey* copy = new RSAPrivateKey(); in Copy()
114 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8_t>* output) const { in ExportPrivateKey()
[all …]
Drsa_private_key_unittest.cc74 scoped_ptr<crypto::RSAPrivateKey> keypair1( in TEST()
75 crypto::RSAPrivateKey::Create(1024)); in TEST()
76 scoped_ptr<crypto::RSAPrivateKey> keypair2( in TEST()
77 crypto::RSAPrivateKey::Create(2048)); in TEST()
91 scoped_ptr<crypto::RSAPrivateKey> keypair3( in TEST()
92 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(privkey1)); in TEST()
93 scoped_ptr<crypto::RSAPrivateKey> keypair4( in TEST()
94 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(privkey2)); in TEST()
116 scoped_ptr<crypto::RSAPrivateKey> key( in TEST()
117 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(input)); in TEST()
[all …]
Dsignature_creator_unittest.cc32 scoped_ptr<crypto::RSAPrivateKey> key_original( in TEST()
33 crypto::RSAPrivateKey::Create(1024)); in TEST()
38 scoped_ptr<crypto::RSAPrivateKey> key( in TEST()
39 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()
70 scoped_ptr<crypto::RSAPrivateKey> key_original( in TEST()
71 crypto::RSAPrivateKey::Create(1024)); in TEST()
76 scoped_ptr<crypto::RSAPrivateKey> key( in TEST()
77 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()
105 scoped_ptr<crypto::RSAPrivateKey> key_original( in TEST()
106 crypto::RSAPrivateKey::Create(1024)); in TEST()
[all …]
Drsa_private_key.h169 class CRYPTO_EXPORT RSAPrivateKey {
171 ~RSAPrivateKey();
174 static RSAPrivateKey* Create(uint16_t num_bits);
179 static RSAPrivateKey* CreateFromPrivateKeyInfo(
186 static RSAPrivateKey* CreateFromKey(EVP_PKEY* key);
190 static RSAPrivateKey* CreateFromKey(SECKEYPrivateKey* key);
201 RSAPrivateKey* Copy() const;
211 RSAPrivateKey();
220 DISALLOW_COPY_AND_ASSIGN(RSAPrivateKey);
Dsignature_creator.h26 class RSAPrivateKey; variable
43 static SignatureCreator* Create(RSAPrivateKey* key, HashAlgorithm hash_alg);
48 static bool Sign(RSAPrivateKey* key,
Dsignature_creator_openssl.cc45 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key, in Create()
62 bool SignatureCreator::Sign(RSAPrivateKey* key, in Sign()
Dsignature_creator_nss.cc51 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key, in Create()
70 bool SignatureCreator::Sign(RSAPrivateKey* key, in Sign()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPrivateKey.java7 import java.security.interfaces.RSAPrivateKey;
22 implements RSAPrivateKey, PKCS12BagAttributeCarrier
52 RSAPrivateKey key) in BCRSAPrivateKey()
58 BCRSAPrivateKey(org.bouncycastle.asn1.pkcs.RSAPrivateKey key) in BCRSAPrivateKey()
86 …iers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), … in getEncoded()
91 if (!(o instanceof RSAPrivateKey)) in equals()
101 RSAPrivateKey key = (RSAPrivateKey)o; in equals()
DKeyFactorySpi.java19 import org.bouncycastle.asn1.pkcs.RSAPrivateKey;
42 …isAssignableFrom(RSAPrivateKeySpec.class) && key instanceof java.security.interfaces.RSAPrivateKey) in engineGetKeySpec()
44 java.security.interfaces.RSAPrivateKey k = (java.security.interfaces.RSAPrivateKey)key; in engineGetKeySpec()
75 else if (key instanceof java.security.interfaces.RSAPrivateKey) in engineTranslateKey()
77 return new BCRSAPrivateKey((java.security.interfaces.RSAPrivateKey)key); in engineTranslateKey()
101 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate()
140 RSAPrivateKey rsaPrivKey = RSAPrivateKey.getInstance(keyInfo.parsePrivateKey()); in generatePrivate()
DRSAUtil.java4 import java.security.interfaces.RSAPrivateKey;
49 RSAPrivateKey key) in generatePrivateKeyParameter()
61 RSAPrivateKey k = key; in generatePrivateKeyParameter()
DBCRSAPrivateCrtKey.java11 import org.bouncycastle.asn1.pkcs.RSAPrivateKey;
94 this(RSAPrivateKey.getInstance(info.parsePrivateKey())); in BCRSAPrivateCrtKey()
101 RSAPrivateKey key) in BCRSAPrivateCrtKey()
131 …dentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), … in getEncoded()
DCipherSpi.java11 import java.security.interfaces.RSAPrivateKey;
114 if (key instanceof RSAPrivateKey) in engineGetKeySize()
116 RSAPrivateKey k = (RSAPrivateKey)key; in engineGetKeySize()
266 else if (key instanceof RSAPrivateKey) in engineInit()
274 param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)key); in engineInit()
DDigestSignatureSpi.java10 import java.security.interfaces.RSAPrivateKey;
97 if (!(privateKey instanceof RSAPrivateKey)) in engineInitSign()
102 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey); in engineInitSign()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DRSAPrivateKey.java14 public class RSAPrivateKey class
28 public static RSAPrivateKey getInstance( in getInstance()
35 public static RSAPrivateKey getInstance( in getInstance()
38 if (obj instanceof RSAPrivateKey) in getInstance()
40 return (RSAPrivateKey)obj; in getInstance()
45 return new RSAPrivateKey(ASN1Sequence.getInstance(obj)); in getInstance()
51 public RSAPrivateKey( in RSAPrivateKey() method in RSAPrivateKey
72 private RSAPrivateKey( in RSAPrivateKey() method in RSAPrivateKey
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLRSAKeyFactory.java26 import java.security.interfaces.RSAPrivateKey;
108 } else if (key instanceof RSAPrivateKey in engineGetKeySpec()
110 RSAPrivateKey rsaKey = (RSAPrivateKey) key; in engineGetKeySpec()
118 RSAPrivateKey privKey = in engineGetKeySpec()
119 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
134 RSAPrivateKey rsaKey = in engineGetKeySpec()
135 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
197 } else if (key instanceof RSAPrivateKey) { in engineTranslateKey()
198 RSAPrivateKey rsaKey = (RSAPrivateKey) key; in engineTranslateKey()
DOpenSSLRSAPrivateKey.java28 import java.security.interfaces.RSAPrivateKey;
32 public class OpenSSLRSAPrivateKey implements RSAPrivateKey, OpenSSLKeyHolder {
95 protected static OpenSSLKey wrapPlatformKey(RSAPrivateKey rsaPrivateKey) in wrapPlatformKey()
126 static OpenSSLKey getInstance(RSAPrivateKey rsaPrivateKey) throws InvalidKeyException { in getInstance()
242 if (o instanceof RSAPrivateKey) { in equals()
244 RSAPrivateKey other = (RSAPrivateKey) o; in equals()
DOpenSSLSignatureRawRSA.java26 import java.security.interfaces.RSAPrivateKey;
92 } else if (privateKey instanceof RSAPrivateKey) { in engineInitSign()
93 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey; in engineInitSign()
DOpenSSLRSAPrivateCrtKey.java26 import java.security.interfaces.RSAPrivateKey;
229 } else if (o instanceof RSAPrivateKey) { in equals()
231 RSAPrivateKey other = (RSAPrivateKey) o; in equals()
DOpenSSLCipherRSA.java29 import java.security.interfaces.RSAPrivateKey;
171 } else if (key instanceof RSAPrivateKey) { in engineInitInternal()
172 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) key; in engineInitInternal()
DOpenSSLKey.java25 import java.security.interfaces.RSAPrivateKey;
224 if (key instanceof RSAPrivateKey) { in wrapPrivateKey()
225 return OpenSSLRSAPrivateKey.wrapPlatformKey((RSAPrivateKey) key); in wrapPrivateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCERSAPrivateKey.java7 import java.security.interfaces.RSAPrivateKey;
22 implements RSAPrivateKey, PKCS12BagAttributeCarrier
52 RSAPrivateKey key) in JCERSAPrivateKey()
80 …iers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), … in getEncoded()
85 if (!(o instanceof RSAPrivateKey)) in equals()
95 RSAPrivateKey key = (RSAPrivateKey)o; in equals()
DJCERSAPrivateCrtKey.java11 import org.bouncycastle.asn1.pkcs.RSAPrivateKey;
94 this(org.bouncycastle.asn1.pkcs.RSAPrivateKey.getInstance(info.parsePrivateKey())); in JCERSAPrivateCrtKey()
101 RSAPrivateKey key) in JCERSAPrivateCrtKey()
131 …dentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), … in getEncoded()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/
DRSAPrivateKeyTest.java26 import java.security.interfaces.RSAPrivateKey;
54 public class checkRSAPrivateKey implements RSAPrivateKey {
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
DPrivateKeyFactory.java19 import org.bouncycastle.asn1.pkcs.RSAPrivateKey;
85 RSAPrivateKey keyStructure = RSAPrivateKey.getInstance(keyInfo.parsePrivateKey()); in createKey()

12