/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLECKeyFactory.java | 45 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 46 if (keySpec == null) { in engineGeneratePublic() 50 if (keySpec instanceof ECPublicKeySpec) { in engineGeneratePublic() 51 return new OpenSSLECPublicKey((ECPublicKeySpec) keySpec); in engineGeneratePublic() 52 } else if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 53 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_EC); in engineGeneratePublic() 56 + keySpec.getClass().getName()); in engineGeneratePublic() 60 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 61 if (keySpec == null) { in engineGeneratePrivate() 65 if (keySpec instanceof ECPrivateKeySpec) { in engineGeneratePrivate() [all …]
|
D | OpenSSLRSAKeyFactory.java | 44 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 45 if (keySpec == null) { in engineGeneratePublic() 49 if (keySpec instanceof RSAPublicKeySpec) { in engineGeneratePublic() 50 return new OpenSSLRSAPublicKey((RSAPublicKeySpec) keySpec); in engineGeneratePublic() 51 } else if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 52 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_RSA); in engineGeneratePublic() 55 + keySpec.getClass().getName()); in engineGeneratePublic() 59 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 60 if (keySpec == null) { in engineGeneratePrivate() 64 if (keySpec instanceof RSAPrivateCrtKeySpec) { in engineGeneratePrivate() [all …]
|
D | OpenSSLXDHKeyFactory.java | 42 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 43 if (keySpec == null) { in engineGeneratePublic() 47 if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 48 return new OpenSSLX25519PublicKey((X509EncodedKeySpec) keySpec); in engineGeneratePublic() 51 + keySpec.getClass().getName()); in engineGeneratePublic() 55 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 56 if (keySpec == null) { in engineGeneratePrivate() 60 if (keySpec instanceof PKCS8EncodedKeySpec) { in engineGeneratePrivate() 61 return new OpenSSLX25519PrivateKey((PKCS8EncodedKeySpec) keySpec); in engineGeneratePrivate() 64 + keySpec.getClass().getName()); in engineGeneratePrivate() [all …]
|
D | DESEDESecretKeyFactory.java | 37 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret() argument 38 if (keySpec == null) { in engineGenerateSecret() 41 if (keySpec instanceof SecretKeySpec) { in engineGenerateSecret() 42 SecretKeySpec key = (SecretKeySpec) keySpec; in engineGenerateSecret() 52 } else if (keySpec instanceof DESedeKeySpec) { in engineGenerateSecret() 53 DESedeKeySpec desKeySpec = (DESedeKeySpec) keySpec; in engineGenerateSecret() 57 "Unsupported KeySpec class: " + keySpec.getClass().getName()); in engineGenerateSecret()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECKeyFactory.java | 47 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 48 if (keySpec == null) { in engineGeneratePublic() 52 if (keySpec instanceof ECPublicKeySpec) { in engineGeneratePublic() 53 return new OpenSSLECPublicKey((ECPublicKeySpec) keySpec); in engineGeneratePublic() 54 } else if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 55 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_EC); in engineGeneratePublic() 58 + keySpec.getClass().getName()); in engineGeneratePublic() 62 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 63 if (keySpec == null) { in engineGeneratePrivate() 67 if (keySpec instanceof ECPrivateKeySpec) { in engineGeneratePrivate() [all …]
|
D | OpenSSLRSAKeyFactory.java | 47 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 48 if (keySpec == null) { in engineGeneratePublic() 52 if (keySpec instanceof RSAPublicKeySpec) { in engineGeneratePublic() 53 return new OpenSSLRSAPublicKey((RSAPublicKeySpec) keySpec); in engineGeneratePublic() 54 } else if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 55 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_RSA); in engineGeneratePublic() 58 + keySpec.getClass().getName()); in engineGeneratePublic() 62 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 63 if (keySpec == null) { in engineGeneratePrivate() 67 if (keySpec instanceof RSAPrivateCrtKeySpec) { in engineGeneratePrivate() [all …]
|
D | OpenSSLXDHKeyFactory.java | 44 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 45 if (keySpec == null) { in engineGeneratePublic() 49 if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 50 return new OpenSSLX25519PublicKey((X509EncodedKeySpec) keySpec); in engineGeneratePublic() 53 + keySpec.getClass().getName()); in engineGeneratePublic() 57 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 58 if (keySpec == null) { in engineGeneratePrivate() 62 if (keySpec instanceof PKCS8EncodedKeySpec) { in engineGeneratePrivate() 63 return new OpenSSLX25519PrivateKey((PKCS8EncodedKeySpec) keySpec); in engineGeneratePrivate() 66 + keySpec.getClass().getName()); in engineGeneratePrivate() [all …]
|
D | DESEDESecretKeyFactory.java | 39 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret() argument 40 if (keySpec == null) { in engineGenerateSecret() 43 if (keySpec instanceof SecretKeySpec) { in engineGenerateSecret() 44 SecretKeySpec key = (SecretKeySpec) keySpec; in engineGenerateSecret() 54 } else if (keySpec instanceof DESedeKeySpec) { in engineGenerateSecret() 55 DESedeKeySpec desKeySpec = (DESedeKeySpec) keySpec; in engineGenerateSecret() 59 "Unsupported KeySpec class: " + keySpec.getClass().getName()); in engineGenerateSecret()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | KeyFactory.java | 26 KeySpec keySpec) in engineGeneratePrivate() argument 29 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 33 … PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePrivate() 49 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 53 KeySpec keySpec) in engineGeneratePublic() argument 56 if (keySpec instanceof X509EncodedKeySpec) in engineGeneratePublic() 60 …tPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePublic() 76 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePublic() 79 protected KeySpec engineGetKeySpec(Key key, Class keySpec) in engineGetKeySpec() argument 82 if (keySpec.isAssignableFrom(PKCS8EncodedKeySpec.class) && key.getFormat().equals("PKCS#8")) in engineGetKeySpec() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | KeyFactory.java | 22 KeySpec keySpec) in engineGeneratePrivate() argument 25 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 29 … PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePrivate() 45 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 49 KeySpec keySpec) in engineGeneratePublic() argument 52 if (keySpec instanceof X509EncodedKeySpec) in engineGeneratePublic() 56 …tPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePublic() 72 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePublic() 75 protected KeySpec engineGetKeySpec(Key key, Class keySpec) in engineGetKeySpec() argument 78 if (keySpec.isAssignableFrom(PKCS8EncodedKeySpec.class) && key.getFormat().equals("PKCS#8")) in engineGetKeySpec() [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | KeyFactory.java | 26 KeySpec keySpec) in engineGeneratePrivate() argument 29 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 33 … PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePrivate() 49 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 53 KeySpec keySpec) in engineGeneratePublic() argument 56 if (keySpec instanceof X509EncodedKeySpec) in engineGeneratePublic() 60 …tPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePublic() 76 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePublic() 79 protected KeySpec engineGetKeySpec(Key key, Class keySpec) in engineGetKeySpec() argument 82 if (keySpec.isAssignableFrom(PKCS8EncodedKeySpec.class) && key.getFormat().equals("PKCS#8")) in engineGetKeySpec() [all …]
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/ |
D | SignatureTest.java | 285 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(PK_BYTES); in test18566_AlgorithmOid_MissingNull_Failure() local 287 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure() 1604 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA1withRSA_Key_Success() local 1605 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() 1614 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA256withRSA_Key_Success() local 1615 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() 1624 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA384withRSA_Key_Success() local 1625 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() 1634 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA512withRSA_Key_Success() local 1635 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() [all …]
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/ |
D | SignatureTest.java | 280 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(PK_BYTES); in test18566_AlgorithmOid_MissingNull_Failure() local 282 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure() 1599 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA1withRSA_Key_Success() local 1600 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() 1609 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA256withRSA_Key_Success() local 1610 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() 1619 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA384withRSA_Key_Success() local 1620 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() 1629 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA512withRSA_Key_Success() local 1630 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() [all …]
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd_parser.y | 200 KeySpec * keySpec; variable 202 keySpec = ( KeySpec* ) malloc( sizeof( KeySpec ) ); 204 if ( !keySpec ) 210 strncpy( keySpec->name, $2, sizeof( keySpec->name ) ); 211 strncpy( keySpec->secret, $5, sizeof( keySpec->secret ) ); 213 keySpec->next = g_keys; 214 g_keys = keySpec; 402 KeySpec * keySpec; in ParseConfig() local 478 for ( keySpec = g_keys; keySpec; keySpec = keySpec->next ) in ParseConfig() 480 if ( strcmp( elem->string, keySpec->name ) == 0 ) in ParseConfig() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | KeyFactorySpi.java | 177 KeySpec keySpec) in engineGeneratePrivate() argument 180 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 184 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 194 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 202 else if (keySpec instanceof RSAPrivateCrtKeySpec) in engineGeneratePrivate() 204 return new BCRSAPrivateCrtKey((RSAPrivateCrtKeySpec)keySpec); in engineGeneratePrivate() 206 else if (keySpec instanceof RSAPrivateKeySpec) in engineGeneratePrivate() 208 return new BCRSAPrivateKey((RSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 226 throw new InvalidKeySpecException("unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 230 KeySpec keySpec) in engineGeneratePublic() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | KeyFactorySpi.java | 173 KeySpec keySpec) in engineGeneratePrivate() argument 176 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 180 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 190 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 198 else if (keySpec instanceof RSAPrivateCrtKeySpec) in engineGeneratePrivate() 200 return new BCRSAPrivateCrtKey((RSAPrivateCrtKeySpec)keySpec); in engineGeneratePrivate() 202 else if (keySpec instanceof RSAPrivateKeySpec) in engineGeneratePrivate() 204 return new BCRSAPrivateKey((RSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 222 throw new InvalidKeySpecException("unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 226 KeySpec keySpec) in engineGeneratePublic() argument [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | KeyFactorySpi.java | 177 KeySpec keySpec) in engineGeneratePrivate() argument 180 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 184 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 194 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 202 else if (keySpec instanceof RSAPrivateCrtKeySpec) in engineGeneratePrivate() 204 return new BCRSAPrivateCrtKey((RSAPrivateCrtKeySpec)keySpec); in engineGeneratePrivate() 206 else if (keySpec instanceof RSAPrivateKeySpec) in engineGeneratePrivate() 208 return new BCRSAPrivateKey((RSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 226 throw new InvalidKeySpecException("unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 230 KeySpec keySpec) in engineGeneratePublic() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseSecretKeyFactory.java | 30 KeySpec keySpec) in engineGenerateSecret() argument 33 if (keySpec instanceof SecretKeySpec) in engineGenerateSecret() 35 return new SecretKeySpec(((SecretKeySpec)keySpec).getEncoded(), algName); in engineGenerateSecret() 43 Class keySpec) in engineGetKeySpec() argument 46 if (keySpec == null) in engineGetKeySpec() 55 if (SecretKeySpec.class.isAssignableFrom(keySpec)) in engineGetKeySpec() 64 Constructor c = keySpec.getConstructor(parameters); in engineGetKeySpec()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseSecretKeyFactory.java | 34 KeySpec keySpec) in engineGenerateSecret() argument 37 if (keySpec instanceof SecretKeySpec) in engineGenerateSecret() 39 return new SecretKeySpec(((SecretKeySpec)keySpec).getEncoded(), algName); in engineGenerateSecret() 47 Class keySpec) in engineGetKeySpec() argument 50 if (keySpec == null) in engineGetKeySpec() 59 if (SecretKeySpec.class.isAssignableFrom(keySpec)) in engineGetKeySpec() 68 Constructor c = keySpec.getConstructor(parameters); in engineGetKeySpec()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseSecretKeyFactory.java | 34 KeySpec keySpec) in engineGenerateSecret() argument 37 if (keySpec instanceof SecretKeySpec) in engineGenerateSecret() 39 return new SecretKeySpec(((SecretKeySpec)keySpec).getEncoded(), algName); in engineGenerateSecret() 47 Class keySpec) in engineGetKeySpec() argument 50 if (keySpec == null) in engineGetKeySpec() 59 if (SecretKeySpec.class.isAssignableFrom(keySpec)) in engineGetKeySpec() 68 Constructor c = keySpec.getConstructor(parameters); in engineGetKeySpec()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | KeyFactorySpi.java | 157 KeySpec keySpec) in engineGeneratePrivate() argument 160 if (keySpec instanceof DSAPrivateKeySpec) in engineGeneratePrivate() 162 return new BCDSAPrivateKey((DSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 187 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 191 KeySpec keySpec) in engineGeneratePublic() argument 194 if (keySpec instanceof DSAPublicKeySpec) in engineGeneratePublic() 198 return new BCDSAPublicKey((DSAPublicKeySpec)keySpec); in engineGeneratePublic() 232 return super.engineGeneratePublic(keySpec); in engineGeneratePublic()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyFactorySpi.java | 69 KeySpec keySpec) in engineGeneratePrivate() argument 72 if (keySpec instanceof DHPrivateKeySpec) in engineGeneratePrivate() 74 return new BCDHPrivateKey((DHPrivateKeySpec)keySpec); in engineGeneratePrivate() 77 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 81 KeySpec keySpec) in engineGeneratePublic() argument 84 if (keySpec instanceof DHPublicKeySpec) in engineGeneratePublic() 88 return new BCDHPublicKey((DHPublicKeySpec)keySpec); in engineGeneratePublic() 96 return super.engineGeneratePublic(keySpec); in engineGeneratePublic()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | BaseKeyFactorySpi.java | 20 KeySpec keySpec) in engineGeneratePrivate() argument 23 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 27 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 41 KeySpec keySpec) in engineGeneratePublic() argument 44 if (keySpec instanceof X509EncodedKeySpec) in engineGeneratePublic() 48 …return generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded())… in engineGeneratePublic()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyFactorySpi.java | 73 KeySpec keySpec) in engineGeneratePrivate() argument 76 if (keySpec instanceof DHPrivateKeySpec) in engineGeneratePrivate() 78 return new BCDHPrivateKey((DHPrivateKeySpec)keySpec); in engineGeneratePrivate() 81 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 85 KeySpec keySpec) in engineGeneratePublic() argument 88 if (keySpec instanceof DHPublicKeySpec) in engineGeneratePublic() 92 return new BCDHPublicKey((DHPublicKeySpec)keySpec); in engineGeneratePublic() 100 return super.engineGeneratePublic(keySpec); in engineGeneratePublic()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | BaseKeyFactorySpi.java | 24 KeySpec keySpec) in engineGeneratePrivate() argument 27 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 31 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 45 KeySpec keySpec) in engineGeneratePublic() argument 48 if (keySpec instanceof X509EncodedKeySpec) in engineGeneratePublic() 52 …return generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded())… in engineGeneratePublic()
|