Home
last modified time | relevance | path

Searched refs:keySpec (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java190 TestPublicKeySpec keySpec = new TestPublicKeySpec(key); in testGeneratePublic() local
191 PublicKey publicKey = factory.generatePublic(keySpec); in testGeneratePublic()
211 KeySpec keySpec = keySpecs[i]; in testGeneratePublic() local
213 (keySpec == null ? "null" : keySpec.toString()) + ")"; in testGeneratePublic()
216 PublicKey generatePublic = factory.generatePublic(keySpec); in testGeneratePublic()
239 TestPrivateKeySpec keySpec = new TestPrivateKeySpec(key); in testGeneratePrivate() local
240 PrivateKey privateKey = factory.generatePrivate(keySpec); in testGeneratePrivate()
260 KeySpec keySpec = keySpecs[i]; in testGeneratePrivate() local
263 (keySpec == null ? "null" : keySpec.toString()) + ")"; in testGeneratePrivate()
265 factory.generatePrivate(keySpec); in testGeneratePrivate()
[all …]
DKeyFactorySpiTest.java56 protected PrivateKey engineGeneratePrivate(KeySpec keySpec){ in engineGeneratePrivate() argument
59 protected PublicKey engineGeneratePublic(KeySpec keySpec){ in engineGeneratePublic() argument
62 protected KeySpec engineGetKeySpec(Key key, Class keySpec){ in engineGetKeySpec() argument
DKeyFactory2Test.java351 public PrivateKey engineGeneratePrivate(KeySpec keySpec) { in engineGeneratePrivate() argument
355 public PublicKey engineGeneratePublic(KeySpec keySpec) { in engineGeneratePublic() argument
359 public <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) { in engineGetKeySpec() argument
/libcore/ojluni/src/main/java/java/security/
DKeyFactory.java352 public final PublicKey generatePublic(KeySpec keySpec) in generatePublic() argument
355 return spi.engineGeneratePublic(keySpec); in generatePublic()
361 return mySpi.engineGeneratePublic(keySpec); in generatePublic()
390 public final PrivateKey generatePrivate(KeySpec keySpec) in generatePrivate() argument
393 return spi.engineGeneratePrivate(keySpec); in generatePrivate()
399 return mySpi.engineGeneratePrivate(keySpec); in generatePrivate()
439 public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) in getKeySpec() argument
442 return spi.engineGetKeySpec(key, keySpec); in getKeySpec()
448 return mySpi.engineGetKeySpec(key, keySpec); in getKeySpec()
DKeyFactorySpi.java83 protected abstract PublicKey engineGeneratePublic(KeySpec keySpec) in engineGeneratePublic() argument
97 protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec) in engineGeneratePrivate() argument
124 T engineGetKeySpec(Key key, Class<T> keySpec) in engineGetKeySpec() argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactorySpiTest.java41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret() argument
42 return super.engineGenerateSecret(keySpec); in engineGenerateSecret()
46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) in engineGetKeySpec() argument
48 return super.engineGetKeySpec(key, keySpec); in engineGetKeySpec()
DCipherTest.java328 DESedeKeySpec keySpec = new DESedeKeySpec(keyMaterial); in test_update$BII() local
330 Key k = skf.generateSecret(keySpec); in test_update$BII()
386 DESedeKeySpec keySpec = new DESedeKeySpec(keyMaterial); in test_doFinal() local
388 Key k = skf.generateSecret(keySpec); in test_doFinal()
/libcore/ojluni/src/main/java/javax/crypto/
DSecretKeyFactory.java515 public final SecretKey generateSecret(KeySpec keySpec) in generateSecret() argument
518 return spi.engineGenerateSecret(keySpec); in generateSecret()
524 return mySpi.engineGenerateSecret(keySpec); in generateSecret()
559 public final KeySpec getKeySpec(SecretKey key, Class<?> keySpec) in getKeySpec() argument
562 return spi.engineGetKeySpec(key, keySpec); in getKeySpec()
568 return mySpi.engineGetKeySpec(key, keySpec); in getKeySpec()
DSecretKeyFactorySpi.java67 protected abstract SecretKey engineGenerateSecret(KeySpec keySpec) in engineGenerateSecret() argument
91 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class<?> keySpec) in engineGetKeySpec() argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMySecretKeyFactorySpi.java40 protected SecretKey engineGenerateSecret(KeySpec keySpec) in engineGenerateSecret() argument
47 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) in engineGetKeySpec() argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherPBEThread.java42 PBEKeySpec keySpec = new PBEKeySpec("top sicret password".toCharArray()); in crypt() local
44 SecretKey key = skf.generateSecret(keySpec); in crypt()
/libcore/luni/src/test/java/libcore/java/security/
DSignatureTest.java313 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(PK_BYTES); in createPublicKey() local
315 return keyFactory.generatePublic(keySpec); in createPublicKey()