Home
last modified time | relevance | path

Searched refs:KeySpec (Results 1 – 25 of 48) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactorySpiTest.java22 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 {}
DKeyFactoryTest.java22 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 …]
DKeyFactory2Test.java34 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/
DSecretKeyFactoryTest.java22 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/
DKeyFactorySpi.java28 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>
DKeyFactory.java33 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/
DSecretKeyFactorySpiTest.java27 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()
DSecretKeyFactoryTest.java32 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/
DMySecretKeyFactorySpi.java27 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/
DSecretKeyFactoryThread.java18 import java.security.spec.KeySpec;
34 KeySpec ks = (KeySpec) ((algName == "DES") ? new DESKeySpec(b) : in test()
/libcore/luni/src/test/java/tests/security/spec/
DRSAPublicKeySpecTest.java29 import java.security.spec.KeySpec;
45 KeySpec ks = in testRSAPublicKeySpec01()
58 KeySpec ks = in testRSAPublicKeySpec02()
DRSAPrivateKeySpecTest.java29 import java.security.spec.KeySpec;
45 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testRSAPrivateKeySpec()
DDSAPublicKeySpecTest.java29 import java.security.spec.KeySpec;
41 KeySpec ks = new DSAPublicKeySpec( in testDSAPublicKeySpec()
DDSAPrivateKeySpecTest.java29 import java.security.spec.KeySpec;
41 KeySpec ks = new DSAPrivateKeySpec( in testDSAPrivateKeySpec()
DRSAPrivateCrtKeySpecTest.java29 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/
DSecretKeyFactorySpi.java67 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/
DKeySpecTest.java53 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()
DNegativeTest.java56 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/
DPBEKeySpec.java28 import java.security.spec.KeySpec;
64 public class PBEKeySpec implements KeySpec {
DSecretKeySpec.java29 import java.security.spec.KeySpec;
50 public class SecretKeySpec implements KeySpec, SecretKey {
/libcore/ojluni/src/main/java/java/security/spec/
DKeySpec.java62 public interface KeySpec { } interface
DXECPrivateKeySpec.java40 public class XECPrivateKeySpec implements KeySpec {
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java28 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/
DEdECPrivateKeySpec.annotated.java29 public final class EdECPrivateKeySpec implements KeySpec {
DEdECPublicKeySpec.annotated.java29 public final class EdECPublicKeySpec implements KeySpec {

12