/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 | 22 import java.security.spec.KeySpec; 202 KeySpec[] keySpecs = { in testGeneratePublic() 215 KeySpec keySpec = keySpecs[i]; in testGeneratePublic() 251 KeySpec[] keySpecs = { in testGeneratePrivate() 264 KeySpec keySpec = keySpecs[i]; in testGeneratePrivate() 309 KeySpec spec = factory.getKeySpec(key, keySpec); in testGetKeySpec() 327 KeySpec.class, in testGetKeySpec() 436 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) in engineGeneratePrivate() 446 protected PublicKey engineGeneratePublic(KeySpec keySpec) in engineGeneratePublic() 455 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 | 33 import java.security.spec.KeySpec; 364 public final PublicKey generatePublic(KeySpec keySpec) in generatePublic() 402 public final PrivateKey generatePrivate(KeySpec keySpec) in generatePrivate() 451 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()
|
D | SecretKeyFactoryTest.java | 32 import java.security.spec.KeySpec; 357 KeySpec ks = (defaultAlgorithm.equals(defaultAlgorithm2) ? (KeySpec)new DESKeySpec(bb) : in testSecretKeyFactory10() 358 (KeySpec)new DESedeKeySpec(bb)); in testSecretKeyFactory10() 359 KeySpec rks = null; in testSecretKeyFactory10()
|
/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 | 29 import java.security.spec.KeySpec; 45 KeySpec ks = in testRSAPublicKeySpec01() 58 KeySpec ks = in testRSAPublicKeySpec02()
|
D | RSAPrivateKeySpecTest.java | 29 import java.security.spec.KeySpec; 45 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testRSAPrivateKeySpec()
|
D | DSAPublicKeySpecTest.java | 29 import java.security.spec.KeySpec; 41 KeySpec ks = new DSAPublicKeySpec( in testDSAPublicKeySpec()
|
D | DSAPrivateKeySpecTest.java | 29 import java.security.spec.KeySpec; 41 KeySpec ks = new DSAPrivateKeySpec( in testDSAPrivateKeySpec()
|
D | RSAPrivateCrtKeySpecTest.java | 29 import java.security.spec.KeySpec; 46 KeySpec ks = new RSAPrivateCrtKeySpec( in testRSAPrivateCrtKeySpec01() 64 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/test/java/security/KeyAgreement/ |
D | KeySpecTest.java | 53 import java.security.spec.KeySpec; 138 KeySpec pubSpec = kf.getKeySpec(kp.getPublic(), pubSpecType); in testKeySpecs() 141 KeySpec priSpec = kf.getKeySpec(kp.getPrivate(), priSpecType); in testKeySpecs() 269 private static void testParamName(KeySpec priSpec, KeySpec pubSpec) { in testParamName()
|
D | NegativeTest.java | 56 import java.security.spec.KeySpec; 284 KeySpec privateSpec = new XECPrivateKeySpec(spec, scalarBytes); in testInvalidSpec() 307 KeySpec publicSpec = new XECPublicKeySpec(spec, coordinate); in testInvalidSpec() 324 KeySpec privateSpec = new XECPrivateKeySpec(spec, new byte[validLen]); in testInCompatibleSpec() 325 KeySpec publicSpec = new XECPublicKeySpec(spec, BigInteger.ONE); in testInCompatibleSpec()
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | PBEKeySpec.java | 28 import java.security.spec.KeySpec; 64 public class PBEKeySpec implements KeySpec {
|
D | SecretKeySpec.java | 29 import java.security.spec.KeySpec; 50 public class SecretKeySpec implements KeySpec, SecretKey {
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | KeySpec.java | 62 public interface KeySpec { } interface
|
D | XECPrivateKeySpec.java | 40 public class XECPrivateKeySpec implements KeySpec {
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 28 import java.security.spec.KeySpec; 785 private static final Map<String, Class<? extends KeySpec>> PRIVATE_KEY_SPEC_CLASSES; 786 private static final Map<String, Class<? extends KeySpec>> PUBLIC_KEY_SPEC_CLASSES; 806 public static Class<? extends KeySpec> getPrivateKeySpecClass(String algName) { in getPrivateKeySpecClass() 810 public static Class<? extends KeySpec> getPublicKeySpecClass(String algName) { in getPublicKeySpecClass()
|
/libcore/ojluni/annotations/sdk/nullability/java/security/spec/ |
D | EdECPrivateKeySpec.annotated.java | 29 public final class EdECPrivateKeySpec implements KeySpec {
|
D | EdECPublicKeySpec.annotated.java | 29 public final class EdECPublicKeySpec implements KeySpec {
|