Home
last modified time | relevance | path

Searched refs:KeySpec (Results 1 – 25 of 30) 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.java19 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 …]
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.java30 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/
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()
/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.java28 import java.security.spec.KeySpec;
43 KeySpec ks = in testRSAPublicKeySpec01()
56 KeySpec ks = in testRSAPublicKeySpec02()
DRSAPrivateKeySpecTest.java28 import java.security.spec.KeySpec;
43 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testRSAPrivateKeySpec()
DRSAPrivateCrtKeySpecTest.java28 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/
DSecretKeyFactorySpi.java67 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/
DPBEKeySpec.java28 import java.security.spec.KeySpec;
63 public class PBEKeySpec implements KeySpec {
DSecretKeySpec.java29 import java.security.spec.KeySpec;
50 public class SecretKeySpec implements KeySpec, SecretKey {
DDHPrivateKeySpec.java43 public class DHPrivateKeySpec implements java.security.spec.KeySpec {
DDHPublicKeySpec.java43 public class DHPublicKeySpec implements java.security.spec.KeySpec {
/libcore/ojluni/src/main/java/java/security/spec/
DKeySpec.java62 public interface KeySpec { } interface
DEncodedKeySpec.java43 public abstract class EncodedKeySpec implements KeySpec {
DRSAPrivateKeySpec.java44 public class RSAPrivateKeySpec implements KeySpec {
DRSAPublicKeySpec.java44 public class RSAPublicKeySpec implements KeySpec {
DECPrivateKeySpec.java40 public class ECPrivateKeySpec implements KeySpec {
DECPublicKeySpec.java39 public class ECPublicKeySpec implements KeySpec {
DDSAPrivateKeySpec.java45 public class DSAPrivateKeySpec implements KeySpec {
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java27 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()

12