Home
last modified time | relevance | path

Searched refs:SecretKey (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMySecretKeyFactorySpi.java29 import javax.crypto.SecretKey;
40 protected SecretKey engineGenerateSecret(KeySpec keySpec) in engineGenerateSecret()
47 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) in engineGetKeySpec()
53 protected SecretKey engineTranslateKey(SecretKey key) in engineTranslateKey()
DMyKeyGeneratorSpi.java30 import javax.crypto.SecretKey;
41 protected SecretKey engineGenerateKey() { in engineGenerateKey()
DMyKeyAgreementSpi.java33 import javax.crypto.SecretKey;
65 protected SecretKey engineGenerateSecret(String algorithm) in engineGenerateSecret()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactorySpiTest.java29 import javax.crypto.SecretKey;
41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret()
46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) in engineGetKeySpec()
52 protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException { in engineTranslateKey()
64 SecretKey sk = null; in testSecretKeyFactorySpi01()
DSecretKeyTest.java25 import javax.crypto.SecretKey;
46 public class checkSecretKey implements SecretKey {
DKeyGeneratorSpiTest.java29 import javax.crypto.SecretKey;
43 protected SecretKey engineGenerateKey() { in engineGenerateKey()
DMockKeyAgreementSpi.java26 import javax.crypto.SecretKey;
74 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, in engineGenerateSecret()
DKeyAgreementSpiTest.java33 import javax.crypto.SecretKey;
59 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, in engineGenerateSecret()
/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()
106 protected abstract SecretKey engineTranslateKey(SecretKey key) in engineTranslateKey()
DSecretKeyFactory.java515 public final SecretKey generateSecret(KeySpec keySpec) in generateSecret()
559 public final KeySpec getKeySpec(SecretKey key, Class<?> keySpec) in getKeySpec()
594 public final SecretKey translateKey(SecretKey key) in translateKey()
DSecretKey.java60 public interface SecretKey extends interface
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSSecretKeyEntryTest.java29 import javax.crypto.SecretKey;
44 SecretKey sk = null; in testSecretKeyEntry()
69 SecretKey sk = new tmpSecretKey(); in testSecretKeyEntry_nullAttributes()
82 SecretKey sk = new tmpSecretKey(); in testGetSecretKey()
92 SecretKey sk = new tmpSecretKey(); in testGetAttributes()
126 SecretKey sk = new tmpSecretKey(); in testToString()
132 class tmpSecretKey implements SecretKey {
/libcore/ojluni/src/main/java/javax/crypto/spec/
DSecretKeySpec.java31 import javax.crypto.SecretKey;
50 public class SecretKeySpec implements KeySpec, SecretKey {
218 if (!(obj instanceof SecretKey)) in equals()
221 String thatAlg = ((SecretKey)obj).getAlgorithm(); in equals()
230 byte[] thatKey = ((SecretKey)obj).getEncoded(); in equals()
/libcore/ojluni/src/main/java/sun/security/util/
DKeyUtil.java36 import javax.crypto.SecretKey;
68 if (key instanceof SecretKey) { in getKeySize()
69 SecretKey sk = (SecretKey)key; in getKeySize()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java26 import javax.crypto.SecretKey;
85 private static Map<Integer, SecretKey> KEY_SIZES = new HashMap<Integer, SecretKey>();
88 private SecretKey key;
DCipherInputStreamBenchmark.java26 import javax.crypto.SecretKey;
49 private SecretKey key;
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherOutputStreamTest.java31 import javax.crypto.SecretKey;
46 SecretKey key; in testDecryptCorruptGCM()
89 private static SecretKey getAndroidKeyStoreSecretKey() throws Exception { in getAndroidKeyStoreSecretKey()
DMockKeyAgreementSpi.java26 import javax.crypto.SecretKey;
76 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, in engineGenerateSecret()
DSecretKeyFactoryTest.java24 import javax.crypto.SecretKey;
200 SecretKey key = factory.generateSecret(ks); in test_PBKDF2_8BIT()
210 SecretKey key = factory.generateSecret(ks); in test_PBKDF2_UTF8()
DMacTest.java26 import javax.crypto.SecretKey;
135 SecretKey secretKey = secretKeyFactory.generateSecret(pbeKeySpec); in test_PBEWITHHMACSHA_Variants()
DCipherInputStreamTest.java36 import javax.crypto.SecretKey;
71 private SecretKey key;
72 private SecretKey rc4Key;
303 SecretKey key; in testDecryptCorruptGCM()
347 private static SecretKey getAndroidKeyStoreSecretKey() throws Exception { in getAndroidKeyStoreSecretKey()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherPBEThread.java23 import javax.crypto.SecretKey;
44 SecretKey key = skf.generateSecret(keySpec); in crypt()
/libcore/ojluni/src/main/java/java/security/
DKeyStoreSpi.java36 import javax.crypto.SecretKey;
486 } else if (key instanceof SecretKey) { in engineGetEntry()
487 return new KeyStore.SecretKeyEntry((SecretKey)key); in engineGetEntry()
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java32 import javax.crypto.SecretKey;
171 …@Override public SecretKey getKey(String identityHint, String identity, Socket socket) { return nu… in getKey()
172 …@Override public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { return… in getKey()
/libcore/ojluni/src/main/java/javax/crypto/interfaces/
DPBEKey.java39 public interface PBEKey extends javax.crypto.SecretKey {

12