/external/libchrome/crypto/ |
D | rsa_private_key_openssl.cc | 57 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 …]
|
D | rsa_private_key_nss.cc | 44 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 …]
|
D | rsa_private_key_unittest.cc | 74 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 …]
|
D | signature_creator_unittest.cc | 32 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 …]
|
D | rsa_private_key.h | 169 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);
|
D | signature_creator.h | 26 class RSAPrivateKey; variable 43 static SignatureCreator* Create(RSAPrivateKey* key, HashAlgorithm hash_alg); 48 static bool Sign(RSAPrivateKey* key,
|
D | signature_creator_openssl.cc | 45 SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key, in Create() 62 bool SignatureCreator::Sign(RSAPrivateKey* key, in Sign()
|
D | signature_creator_nss.cc | 51 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/ |
D | BCRSAPrivateKey.java | 7 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()
|
D | KeyFactorySpi.java | 19 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()
|
D | RSAUtil.java | 4 import java.security.interfaces.RSAPrivateKey; 49 RSAPrivateKey key) in generatePrivateKeyParameter() 61 RSAPrivateKey k = key; in generatePrivateKeyParameter()
|
D | BCRSAPrivateCrtKey.java | 11 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()
|
D | CipherSpi.java | 11 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()
|
D | DigestSignatureSpi.java | 10 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/ |
D | RSAPrivateKey.java | 14 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/ |
D | OpenSSLRSAKeyFactory.java | 26 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()
|
D | OpenSSLRSAPrivateKey.java | 28 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()
|
D | OpenSSLSignatureRawRSA.java | 26 import java.security.interfaces.RSAPrivateKey; 92 } else if (privateKey instanceof RSAPrivateKey) { in engineInitSign() 93 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey; in engineInitSign()
|
D | OpenSSLRSAPrivateCrtKey.java | 26 import java.security.interfaces.RSAPrivateKey; 229 } else if (o instanceof RSAPrivateKey) { in equals() 231 RSAPrivateKey other = (RSAPrivateKey) o; in equals()
|
D | OpenSSLCipherRSA.java | 29 import java.security.interfaces.RSAPrivateKey; 171 } else if (key instanceof RSAPrivateKey) { in engineInitInternal() 172 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) key; in engineInitInternal()
|
D | OpenSSLKey.java | 25 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/ |
D | JCERSAPrivateKey.java | 7 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()
|
D | JCERSAPrivateCrtKey.java | 11 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/ |
D | RSAPrivateKeyTest.java | 26 import java.security.interfaces.RSAPrivateKey; 54 public class checkRSAPrivateKey implements RSAPrivateKey {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PrivateKeyFactory.java | 19 import org.bouncycastle.asn1.pkcs.RSAPrivateKey; 85 RSAPrivateKey keyStructure = RSAPrivateKey.getInstance(keyInfo.parsePrivateKey()); in createKey()
|