/external/libchrome/crypto/ |
rsa_private_key.h | 24 class CRYPTO_EXPORT RSAPrivateKey { 26 ~RSAPrivateKey(); 29 static std::unique_ptr<RSAPrivateKey> Create(uint16_t num_bits); 34 static std::unique_ptr<RSAPrivateKey> CreateFromPrivateKeyInfo( 40 static std::unique_ptr<RSAPrivateKey> CreateFromKey(EVP_PKEY* key); 45 std::unique_ptr<RSAPrivateKey> Copy() const; 55 RSAPrivateKey(); 59 DISALLOW_COPY_AND_ASSIGN(RSAPrivateKey);
|
rsa_private_key.cc | 23 std::unique_ptr<RSAPrivateKey> RSAPrivateKey::Create(uint16_t num_bits) { 34 std::unique_ptr<RSAPrivateKey> result(new RSAPrivateKey); 43 std::unique_ptr<RSAPrivateKey> RSAPrivateKey::CreateFromPrivateKeyInfo( 53 std::unique_ptr<RSAPrivateKey> result(new RSAPrivateKey); 59 std::unique_ptr<RSAPrivateKey> RSAPrivateKey::CreateFromKey(EVP_PKEY* key) [all...] |
signature_creator.h | 22 class RSAPrivateKey; 39 static std::unique_ptr<SignatureCreator> Create(RSAPrivateKey* key, 44 static bool Sign(RSAPrivateKey* key,
|
signature_creator_unittest.cc | 21 std::unique_ptr<crypto::RSAPrivateKey> key_original( 22 crypto::RSAPrivateKey::Create(1024)); 27 std::unique_ptr<crypto::RSAPrivateKey> key( 28 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); 58 std::unique_ptr<crypto::RSAPrivateKey> key_original( 59 crypto::RSAPrivateKey::Create(1024)); 64 std::unique_ptr<crypto::RSAPrivateKey> key( 65 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); 92 std::unique_ptr<crypto::RSAPrivateKey> key_original( 93 crypto::RSAPrivateKey::Create(1024)) [all...] |
rsa_private_key_unittest.cc | 75 std::unique_ptr<crypto::RSAPrivateKey> keypair1( 76 crypto::RSAPrivateKey::Create(1024)); 77 std::unique_ptr<crypto::RSAPrivateKey> keypair2( 78 crypto::RSAPrivateKey::Create(2048)); 92 std::unique_ptr<crypto::RSAPrivateKey> keypair3( 93 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(privkey1)); 94 std::unique_ptr<crypto::RSAPrivateKey> keypair4( 95 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(privkey2)); 115 std::unique_ptr<crypto::RSAPrivateKey> key( 116 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(input)) [all...] |
/libcore/luni/src/test/java/tests/security/interfaces/ |
RSAPrivateKeyTest.java | 22 import java.security.interfaces.RSAPrivateKey; 28 * java.security.interfaces.RSAPrivateKey 35 RSAPrivateKey key = (RSAPrivateKey) gen.generatePrivate(new RSAPrivateKeySpec(
|
/libcore/ojluni/src/main/java/java/security/interfaces/ |
RSAPrivateKey.java | 39 public interface RSAPrivateKey extends java.security.PrivateKey, RSAKey
|
RSAMultiPrimePrivateCrtKey.java | 41 * @see RSAPrivateKey 47 public interface RSAMultiPrimePrivateCrtKey extends RSAPrivateKey {
|
RSAPrivateCrtKey.java | 37 * @see RSAPrivateKey 40 public interface RSAPrivateCrtKey extends RSAPrivateKey {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
BCRSAPrivateKey.java | 7 import java.security.interfaces.RSAPrivateKey; 22 implements RSAPrivateKey, PKCS12BagAttributeCarrier 52 RSAPrivateKey key) 58 BCRSAPrivateKey(org.bouncycastle.asn1.pkcs.RSAPrivateKey key) 86 return KeyUtil.getEncodedPrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPrivateExponent(), ZERO, ZERO, ZERO, ZERO, ZERO)); 91 if (!(o instanceof RSAPrivateKey)) 101 RSAPrivateKey key = (RSAPrivateKey)o;
|
KeyFactorySpi.java | 19 import org.bouncycastle.asn1.pkcs.RSAPrivateKey; 42 else if (spec.isAssignableFrom(RSAPrivateKeySpec.class) && key instanceof java.security.interfaces.RSAPrivateKey) 44 java.security.interfaces.RSAPrivateKey k = (java.security.interfaces.RSAPrivateKey)key; 75 else if (key instanceof java.security.interfaces.RSAPrivateKey) 77 return new BCRSAPrivateKey((java.security.interfaces.RSAPrivateKey)key); 96 // in case it's just a RSAPrivateKey object... -- openSSL produces these 101 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); 140 RSAPrivateKey rsaPrivKey = RSAPrivateKey.getInstance(keyInfo.parsePrivateKey()) [all...] |
RSAUtil.java | 4 import java.security.interfaces.RSAPrivateKey; 49 RSAPrivateKey key) 61 RSAPrivateKey k = key;
|
BCRSAPrivateCrtKey.java | 11 import org.bouncycastle.asn1.pkcs.RSAPrivateKey; 94 this(RSAPrivateKey.getInstance(info.parsePrivateKey())); 101 RSAPrivateKey key) 131 return KeyUtil.getEncodedPrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExponent(), getPrivateExponent(), getPrimeP(), getPrimeQ(), getPrimeExponentP(), getPrimeExponentQ(), getCrtCoefficient()));
|
CipherSpi.java | 11 import java.security.interfaces.RSAPrivateKey; 118 if (key instanceof RSAPrivateKey) 120 RSAPrivateKey k = (RSAPrivateKey)key; 285 "mode 1 requires RSAPrivateKey"); 290 else if (key instanceof RSAPrivateKey) 298 param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)key);
|
DigestSignatureSpi.java | 10 import java.security.interfaces.RSAPrivateKey; 88 if (!(privateKey instanceof RSAPrivateKey)) 90 throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey instance"); 93 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
RSAPrivateKey.java | 14 public class RSAPrivateKey 28 public static RSAPrivateKey getInstance( 35 public static RSAPrivateKey getInstance( 38 if (obj instanceof RSAPrivateKey) 40 return (RSAPrivateKey)obj; 45 return new RSAPrivateKey(ASN1Sequence.getInstance(obj)); 51 public RSAPrivateKey( 72 private RSAPrivateKey( 147 * RSAPrivateKey ::= SEQUENCE {
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLRSAKeyFactory.java | 26 import java.security.interfaces.RSAPrivateKey; 123 } else if (key instanceof RSAPrivateKey 125 RSAPrivateKey rsaKey = (RSAPrivateKey) key; 135 RSAPrivateKey privKey = 136 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); 153 RSAPrivateKey rsaKey = 154 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); 220 } else if (key instanceof RSAPrivateKey) { 221 RSAPrivateKey rsaKey = (RSAPrivateKey) key [all...] |
OpenSSLRSAPrivateKey.java | 27 import java.security.interfaces.RSAPrivateKey; 37 class OpenSSLRSAPrivateKey implements RSAPrivateKey, OpenSSLKeyHolder { 100 static OpenSSLKey wrapPlatformKey(RSAPrivateKey rsaPrivateKey) 102 OpenSSLKey wrapper = Platform.wrapRsaKey(rsaPrivateKey); 106 return new OpenSSLKey(NativeCrypto.getRSAPrivateKeyWrapper(rsaPrivateKey, rsaPrivateKey 131 static OpenSSLKey getInstance(RSAPrivateKey rsaPrivateKey) throws InvalidKeyException { 136 if (rsaPrivateKey.getFormat() == null) [all...] |
OpenSSLSignatureRawRSA.java | 26 import java.security.interfaces.RSAPrivateKey; 91 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey; 92 key = rsaPrivateKey.getOpenSSLKey(); 94 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey; 95 key = OpenSSLRSAPrivateCrtKey.getInstance(rsaPrivateKey); 96 } else if (privateKey instanceof RSAPrivateKey) { 97 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey; 98 key = OpenSSLRSAPrivateKey.getInstance(rsaPrivateKey); [all...] |
OpenSSLRSAPrivateCrtKey.java | 25 import java.security.interfaces.RSAPrivateKey; 98 static OpenSSLKey getInstance(RSAPrivateCrtKey rsaPrivateKey) throws InvalidKeyException { 103 if (rsaPrivateKey.getFormat() == null) { 104 return wrapPlatformKey(rsaPrivateKey); 107 BigInteger modulus = rsaPrivateKey.getModulus(); 108 BigInteger privateExponent = rsaPrivateKey.getPrivateExponent(); 123 final BigInteger publicExponent = rsaPrivateKey.getPublicExponent(); 124 final BigInteger primeP = rsaPrivateKey.getPrimeP(); 125 final BigInteger primeQ = rsaPrivateKey.getPrimeQ(); 126 final BigInteger primeExponentP = rsaPrivateKey.getPrimeExponentP() [all...] |
OpenSSLKey.java | 25 import java.security.interfaces.RSAPrivateKey; 210 if (key instanceof RSAPrivateKey) { 211 return OpenSSLRSAPrivateKey.wrapPlatformKey((RSAPrivateKey) key);
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
RsaKeyTest.java | 24 import java.security.interfaces.RSAPrivateKey; [all...] |
RsaSignatureTest.java | 27 import java.security.interfaces.RSAPrivateKey; [all...] |
/external/boringssl/src/crypto/pem/ |
pem_all.c | 172 IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, 173 RSAPrivateKey)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
PrivateKeyFactory.java | 18 import org.bouncycastle.asn1.pkcs.RSAPrivateKey; 83 RSAPrivateKey keyStructure = RSAPrivateKey.getInstance(keyInfo.parsePrivateKey());
|