/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyFactorySpiTest.java | 22 import java.security.spec.KeySpec; 43 KeySpec ks = new MyKeySpec(); in testKeyFactorySpi() 44 KeySpec kss = new MyKeySpec(); in testKeyFactorySpi() 56 protected PrivateKey engineGeneratePrivate(KeySpec keySpec){ in engineGeneratePrivate() 59 protected PublicKey engineGeneratePublic(KeySpec keySpec){ in engineGeneratePublic() 62 protected KeySpec engineGetKeySpec(Key key, Class keySpec){ in engineGetKeySpec() 70 class MyKeySpec implements KeySpec {}
|
D | KeyFactoryTest.java | 19 import java.security.spec.KeySpec; 198 KeySpec[] keySpecs = { in testGeneratePublic() 211 KeySpec keySpec = keySpecs[i]; in testGeneratePublic() 247 KeySpec[] keySpecs = { in testGeneratePrivate() 260 KeySpec keySpec = keySpecs[i]; in testGeneratePrivate() 305 KeySpec spec = factory.getKeySpec(key, keySpec); in testGetKeySpec() 323 KeySpec.class, in testGetKeySpec() 432 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) in engineGeneratePrivate() 442 protected PublicKey engineGeneratePublic(KeySpec keySpec) in engineGeneratePublic() 451 protected <T extends KeySpec> T engineGetKeySpec(Key key, in engineGetKeySpec() [all …]
|
D | KeyFactory2Test.java | 34 import java.security.spec.KeySpec; 122 KeySpec privateKeySpec = fact.getKeySpec(keys.getPrivate(), in test_generatePrivateLjava_security_spec_KeySpec() 151 KeySpec publicKeySpec = fact.getKeySpec(keys.getPublic(), in test_generatePublicLjava_security_spec_KeySpec() 243 KeySpec privateKeySpec = fact.getKeySpec(keys.getPrivate(), in test_getKeySpecLjava_security_KeyLjava_lang_Class() 245 KeySpec publicKeySpec = fact.getKeySpec(keys.getPublic(), in test_getKeySpecLjava_security_KeyLjava_lang_Class() 261 KeySpec encodedSpec = fact.getKeySpec(keys.getPublic(), in test_getKeySpecLjava_security_KeyLjava_lang_Class() 358 public PrivateKey engineGeneratePrivate(KeySpec keySpec) { in engineGeneratePrivate() 362 public PublicKey engineGeneratePublic(KeySpec keySpec) { in engineGeneratePublic() 366 public <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) { in engineGetKeySpec()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | SecretKeyFactoryTest.java | 22 import java.security.spec.KeySpec; 55 KeySpec ks = new PBEKeySpec(null); in test_PBKDF2_required_parameters() 61 KeySpec ks = new PBEKeySpec(new char[0]); in test_PBKDF2_required_parameters() 67 KeySpec ks = new PBEKeySpec(PASSWORD); in test_PBKDF2_required_parameters() 76 KeySpec ks = new PBEKeySpec(null, SALT, ITERATIONS); in test_PBKDF2_required_parameters() 82 KeySpec ks = new PBEKeySpec(new char[0], SALT, ITERATIONS); in test_PBKDF2_required_parameters() 88 KeySpec ks = new PBEKeySpec(PASSWORD, SALT, ITERATIONS); in test_PBKDF2_required_parameters() 95 KeySpec ks = new PBEKeySpec(null, SALT, ITERATIONS, KEY_LENGTH); in test_PBKDF2_required_parameters() 102 KeySpec ks = new PBEKeySpec(new char[0], SALT, ITERATIONS, KEY_LENGTH); in test_PBKDF2_required_parameters() 108 KeySpec ks = new PBEKeySpec(PASSWORD, SALT, ITERATIONS, KEY_LENGTH); in test_PBKDF2_required_parameters() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyFactorySpi.java | 28 import java.security.spec.KeySpec; 83 protected abstract PublicKey engineGeneratePublic(KeySpec keySpec) in engineGeneratePublic() 97 protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec) in engineGeneratePrivate() 123 protected abstract <T extends KeySpec>
|
D | KeyFactory.java | 30 import java.security.spec.KeySpec; 352 public final PublicKey generatePublic(KeySpec keySpec) in generatePublic() 390 public final PrivateKey generatePrivate(KeySpec keySpec) in generatePrivate() 439 public final <T extends KeySpec> T getKeySpec(Key key, Class<T> keySpec) in getKeySpec()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | SecretKeyFactorySpiTest.java | 27 import java.security.spec.KeySpec; 41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret() 46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) in engineGetKeySpec() 67 KeySpec kspec = null; in testSecretKeyFactorySpi01()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | MySecretKeyFactorySpi.java | 27 import java.security.spec.KeySpec; 40 protected SecretKey engineGenerateSecret(KeySpec keySpec) in engineGenerateSecret() 47 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) in engineGetKeySpec()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | SecretKeyFactoryThread.java | 18 import java.security.spec.KeySpec; 34 KeySpec ks = (KeySpec) ((algName == "DES") ? new DESKeySpec(b) : in test()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | RSAPublicKeySpecTest.java | 28 import java.security.spec.KeySpec; 43 KeySpec ks = in testRSAPublicKeySpec01() 56 KeySpec ks = in testRSAPublicKeySpec02()
|
D | RSAPrivateKeySpecTest.java | 28 import java.security.spec.KeySpec; 43 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testRSAPrivateKeySpec()
|
D | RSAPrivateCrtKeySpecTest.java | 28 import java.security.spec.KeySpec; 44 KeySpec ks = new RSAPrivateCrtKeySpec( in testRSAPrivateCrtKeySpec01() 62 KeySpec ks = new RSAPrivateCrtKeySpec( in testRSAPrivateCrtKeySpec02()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | SecretKeyFactorySpi.java | 67 protected abstract SecretKey engineGenerateSecret(KeySpec keySpec) in engineGenerateSecret() 91 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class<?> keySpec) in engineGetKeySpec()
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | PBEKeySpec.java | 28 import java.security.spec.KeySpec; 63 public class PBEKeySpec implements KeySpec {
|
D | SecretKeySpec.java | 29 import java.security.spec.KeySpec; 50 public class SecretKeySpec implements KeySpec, SecretKey {
|
D | DHPrivateKeySpec.java | 43 public class DHPrivateKeySpec implements java.security.spec.KeySpec {
|
D | DHPublicKeySpec.java | 43 public class DHPublicKeySpec implements java.security.spec.KeySpec {
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | KeySpec.java | 62 public interface KeySpec { } interface
|
D | EncodedKeySpec.java | 43 public abstract class EncodedKeySpec implements KeySpec {
|
D | RSAPrivateKeySpec.java | 44 public class RSAPrivateKeySpec implements KeySpec {
|
D | RSAPublicKeySpec.java | 44 public class RSAPublicKeySpec implements KeySpec {
|
D | ECPrivateKeySpec.java | 40 public class ECPrivateKeySpec implements KeySpec {
|
D | ECPublicKeySpec.java | 39 public class ECPublicKeySpec implements KeySpec {
|
D | DSAPrivateKeySpec.java | 45 public class DSAPrivateKeySpec implements KeySpec {
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 27 import java.security.spec.KeySpec; 771 private static final Map<String, Class<? extends KeySpec>> PRIVATE_KEY_SPEC_CLASSES; 772 private static final Map<String, Class<? extends KeySpec>> PUBLIC_KEY_SPEC_CLASSES; 792 public static Class<? extends KeySpec> getPrivateKeySpecClass(String algName) { in getPrivateKeySpecClass() 796 public static Class<? extends KeySpec> getPublicKeySpecClass(String algName) { in getPublicKeySpecClass()
|