/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECKeyFactory.java | 49 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 50 if (keySpec == null) { in engineGeneratePublic() 54 if (keySpec instanceof ECPublicKeySpec) { in engineGeneratePublic() 55 return new OpenSSLECPublicKey((ECPublicKeySpec) keySpec); in engineGeneratePublic() 56 } else if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 57 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_EC); in engineGeneratePublic() 60 + keySpec.getClass().getName()); in engineGeneratePublic() 64 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 65 if (keySpec == null) { in engineGeneratePrivate() 69 if (keySpec instanceof ECPrivateKeySpec) { in engineGeneratePrivate() [all …]
|
D | OpenSSLRSAKeyFactory.java | 49 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePublic() argument 50 if (keySpec == null) { in engineGeneratePublic() 54 if (keySpec instanceof RSAPublicKeySpec) { in engineGeneratePublic() 55 return new OpenSSLRSAPublicKey((RSAPublicKeySpec) keySpec); in engineGeneratePublic() 56 } else if (keySpec instanceof X509EncodedKeySpec) { in engineGeneratePublic() 57 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_RSA); in engineGeneratePublic() 60 + keySpec.getClass().getName()); in engineGeneratePublic() 64 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate() argument 65 if (keySpec == null) { in engineGeneratePrivate() 69 if (keySpec instanceof RSAPrivateCrtKeySpec) { in engineGeneratePrivate() [all …]
|
D | DESEDESecretKeyFactory.java | 41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret() argument 42 if (keySpec == null) { in engineGenerateSecret() 45 if (keySpec instanceof SecretKeySpec) { in engineGenerateSecret() 46 SecretKeySpec key = (SecretKeySpec) keySpec; in engineGenerateSecret() 56 } else if (keySpec instanceof DESedeKeySpec) { in engineGenerateSecret() 57 DESedeKeySpec desKeySpec = (DESedeKeySpec) keySpec; in engineGenerateSecret() 61 "Unsupported KeySpec class: " + keySpec.getClass().getName()); in engineGenerateSecret()
|
/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 | 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/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/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/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | SignatureTest.java | 279 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(PK_BYTES); in test18566_AlgorithmOid_MissingNull_Failure() local 281 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure() 1573 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA1withRSA_Key_Success() local 1574 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() 1587 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA256withRSA_Key_Success() local 1588 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() 1601 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA384withRSA_Key_Success() local 1602 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() 1615 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA512withRSA_Key_Success() local 1616 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | SignatureTest.java | 275 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(PK_BYTES); in test18566_AlgorithmOid_MissingNull_Failure() local 277 PublicKey pk = keyFactory.generatePublic(keySpec); in test18566_AlgorithmOid_MissingNull_Failure() 1569 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA1withRSA_Key_Success() local 1570 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() 1583 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA256withRSA_Key_Success() local 1584 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() 1597 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA384withRSA_Key_Success() local 1598 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() 1611 RSAPublicKeySpec keySpec = new RSAPublicKeySpec(RSA_2048_modulus, RSA_2048_publicExponent); in testVerify_SHA512withRSA_Key_Success() local 1612 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/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | KeyFactorySpi.java | 135 KeySpec keySpec) in engineGeneratePrivate() argument 138 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 142 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 152 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 160 else if (keySpec instanceof RSAPrivateCrtKeySpec) in engineGeneratePrivate() 162 return new BCRSAPrivateCrtKey((RSAPrivateCrtKeySpec)keySpec); in engineGeneratePrivate() 164 else if (keySpec instanceof RSAPrivateKeySpec) in engineGeneratePrivate() 166 return new BCRSAPrivateKey((RSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 184 throw new InvalidKeySpecException("unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 188 KeySpec keySpec) in engineGeneratePublic() argument [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | KeyFactorySpi.java | 139 KeySpec keySpec) in engineGeneratePrivate() argument 142 if (keySpec instanceof PKCS8EncodedKeySpec) in engineGeneratePrivate() 146 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 156 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate() 164 else if (keySpec instanceof RSAPrivateCrtKeySpec) in engineGeneratePrivate() 166 return new BCRSAPrivateCrtKey((RSAPrivateCrtKeySpec)keySpec); in engineGeneratePrivate() 168 else if (keySpec instanceof RSAPrivateKeySpec) in engineGeneratePrivate() 170 return new BCRSAPrivateKey((RSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 188 throw new InvalidKeySpecException("unknown KeySpec type: " + keySpec.getClass().getName()); in engineGeneratePrivate() 192 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()
|
D | PBE.java | 408 PBEKeySpec keySpec, in makePBEMacParameters() argument 417 key = convertPassword(type, keySpec); in makePBEMacParameters() 419 generator.init(key, keySpec.getSalt(), keySpec.getIterationCount()); in makePBEMacParameters() 436 PBEKeySpec keySpec, in makePBEParameters() argument 446 key = convertPassword(type, keySpec); in makePBEParameters() 448 generator.init(key, keySpec.getSalt(), keySpec.getIterationCount()); in makePBEParameters() 518 private static byte[] convertPassword(int type, PBEKeySpec keySpec) in convertPassword() argument 524 key = PBEParametersGenerator.PKCS12PasswordToBytes(keySpec.getPassword()); in convertPassword() 528 key = PBEParametersGenerator.PKCS5PasswordToUTF8Bytes(keySpec.getPassword()); in convertPassword() 532 key = PBEParametersGenerator.PKCS5PasswordToBytes(keySpec.getPassword()); in convertPassword()
|
/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/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyFactorySpi.java | 179 KeySpec keySpec) in engineGeneratePrivate() argument 182 if (keySpec instanceof ECPrivateKeySpec) in engineGeneratePrivate() 184 return new BCECPrivateKey(algorithm, (ECPrivateKeySpec)keySpec, configuration); in engineGeneratePrivate() 186 else if (keySpec instanceof java.security.spec.ECPrivateKeySpec) in engineGeneratePrivate() 188 … return new BCECPrivateKey(algorithm, (java.security.spec.ECPrivateKeySpec)keySpec, configuration); in engineGeneratePrivate() 208 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 212 KeySpec keySpec) in engineGeneratePublic() argument 217 if (keySpec instanceof ECPublicKeySpec) in engineGeneratePublic() 219 return new BCECPublicKey(algorithm, (ECPublicKeySpec)keySpec, configuration); in engineGeneratePublic() 221 else if (keySpec instanceof java.security.spec.ECPublicKeySpec) in engineGeneratePublic() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | KeyFactorySpi.java | 133 KeySpec keySpec) in engineGeneratePrivate() argument 136 if (keySpec instanceof DSAPrivateKeySpec) in engineGeneratePrivate() 138 return new BCDSAPrivateKey((DSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 163 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 167 KeySpec keySpec) in engineGeneratePublic() argument 170 if (keySpec instanceof DSAPublicKeySpec) in engineGeneratePublic() 174 return new BCDSAPublicKey((DSAPublicKeySpec)keySpec); in engineGeneratePublic() 208 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/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/ec/ |
D | KeyFactorySpi.java | 183 KeySpec keySpec) in engineGeneratePrivate() argument 186 if (keySpec instanceof ECPrivateKeySpec) in engineGeneratePrivate() 188 return new BCECPrivateKey(algorithm, (ECPrivateKeySpec)keySpec, configuration); in engineGeneratePrivate() 190 else if (keySpec instanceof java.security.spec.ECPrivateKeySpec) in engineGeneratePrivate() 192 … return new BCECPrivateKey(algorithm, (java.security.spec.ECPrivateKeySpec)keySpec, configuration); in engineGeneratePrivate() 212 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 216 KeySpec keySpec) in engineGeneratePublic() argument 221 if (keySpec instanceof ECPublicKeySpec) in engineGeneratePublic() 223 return new BCECPublicKey(algorithm, (ECPublicKeySpec)keySpec, configuration); in engineGeneratePublic() 225 else if (keySpec instanceof java.security.spec.ECPublicKeySpec) in engineGeneratePublic() [all …]
|
/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/dsa/ |
D | KeyFactorySpi.java | 137 KeySpec keySpec) in engineGeneratePrivate() argument 140 if (keySpec instanceof DSAPrivateKeySpec) in engineGeneratePrivate() 142 return new BCDSAPrivateKey((DSAPrivateKeySpec)keySpec); in engineGeneratePrivate() 167 return super.engineGeneratePrivate(keySpec); in engineGeneratePrivate() 171 KeySpec keySpec) in engineGeneratePublic() argument 174 if (keySpec instanceof DSAPublicKeySpec) in engineGeneratePublic() 178 return new BCDSAPublicKey((DSAPublicKeySpec)keySpec); in engineGeneratePublic() 212 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()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/ |
D | DES.java | 252 Class keySpec) in engineGetKeySpec() argument 255 if (keySpec == null) in engineGetKeySpec() 264 if (SecretKeySpec.class.isAssignableFrom(keySpec)) in engineGetKeySpec() 268 else if (DESKeySpec.class.isAssignableFrom(keySpec)) in engineGetKeySpec() 286 KeySpec keySpec) in engineGenerateSecret() argument 289 if (keySpec instanceof DESKeySpec) in engineGenerateSecret() 291 DESKeySpec desKeySpec = (DESKeySpec)keySpec; in engineGenerateSecret() 295 return super.engineGenerateSecret(keySpec); in engineGenerateSecret() 327 KeySpec keySpec) in engineGenerateSecret() argument 330 if (keySpec instanceof PBEKeySpec) in engineGenerateSecret() [all …]
|