/libcore/luni/src/main/java/javax/crypto/interfaces/ |
PBEKey.java | 20 import javax.crypto.SecretKey; 25 public interface PBEKey extends SecretKey {
|
/libcore/luni/src/main/java/javax/crypto/ |
SecretKey.java | 33 public interface SecretKey extends Key {
|
SecretKeyFactorySpi.java | 46 protected abstract SecretKey engineGenerateSecret(KeySpec keySpec) 62 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class keySpec) 76 protected abstract SecretKey engineTranslateKey(SecretKey key)
|
KeyGeneratorSpi.java | 43 protected abstract SecretKey engineGenerateKey();
|
SecretKeyFactory.java | 35 * <li>convert {@link SecretKey} objects to and from {@link KeySpec} objects</li> 36 * <li>translate {@link SecretKey} objects from one provider implementation to 184 public final SecretKey generateSecret(KeySpec keySpec) 202 public final KeySpec getKeySpec(SecretKey key, Class keySpec) 218 public final SecretKey translateKey(SecretKey key)
|
/libcore/support/src/test/java/tests/security/ |
CipherSymmetricCryptHelper.java | 20 import javax.crypto.SecretKey; 22 public class CipherSymmetricCryptHelper extends CipherHelper<SecretKey/*, U*/> { 31 public void test(SecretKey key) {
|
/external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/ |
MySecretKeyFactorySpi.java | 28 import javax.crypto.SecretKey; 39 protected SecretKey engineGenerateSecret(KeySpec keySpec) 46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) 52 protected SecretKey engineTranslateKey(SecretKey key)
|
MyKeyGeneratorSpi.java | 29 import javax.crypto.SecretKey; 40 protected SecretKey engineGenerateKey() {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
MySecretKeyFactorySpi.java | 29 import javax.crypto.SecretKey; 40 protected SecretKey engineGenerateSecret(KeySpec keySpec) 47 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) 53 protected SecretKey engineTranslateKey(SecretKey key)
|
MyKeyGeneratorSpi.java | 30 import javax.crypto.SecretKey; 41 protected SecretKey engineGenerateKey() {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/ |
RepeatedSecretKeySpec.java | 4 import javax.crypto.SecretKey; 11 implements SecretKey
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyTest.java | 25 import javax.crypto.SecretKey; 31 * Tests for <code>SecretKey</code> class field 42 sk.getSerVerUID(), //SecretKey.serialVersionUID 46 public class checkSecretKey implements SecretKey { 48 return "SecretKey";
|
SecretKeyFactorySpiTest.java | 29 import javax.crypto.SecretKey; 41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { 46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec) 52 protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException { 64 SecretKey sk = null;
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KSSecretKeyEntryTest.java | 25 import javax.crypto.SecretKey; 44 * Test for <code>SecretKeyEntry(SecretKey secretKey)</code> constructor 45 * Assertion: throws NullPointerException when secretKey is null 48 SecretKey sk = null; 51 fail("NullPointerException must be thrown when secretKey is null"); 58 * Assertion: returns SecretKey from the given entry 61 SecretKey sk = new tmpSecretKey(); 63 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); 71 SecretKey sk = new tmpSecretKey() [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KSSecretKeyEntryTest.java | 27 import javax.crypto.SecretKey; 38 * Test for <code>SecretKeyEntry(SecretKey secretKey)</code> constructor 39 * Assertion: throws NullPointerException when secretKey is null 42 SecretKey sk = null; 45 fail("NullPointerException must be thrown when secretKey is null"); 56 fail("Unexpected exception was thrown when secretKey is not null"); 62 * Assertion: returns SecretKey from the given entry 65 SecretKey sk = new tmpSecretKey(); 67 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()) [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyTest.java | 24 import javax.crypto.SecretKey; 30 * Tests for <code>SecretKey</code> class field 50 sk.getSerVerUID(), //SecretKey.serialVersionUID 54 public class checkSecretKey implements SecretKey { 56 return "SecretKey";
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseSecretKeyFactory.java | 8 import javax.crypto.SecretKey; 29 protected SecretKey engineGenerateSecret( 35 return (SecretKey)keySpec; 42 SecretKey key, 77 protected SecretKey engineTranslateKey( 78 SecretKey key)
|
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLSecretKey.java | 26 import javax.crypto.SecretKey; 28 public class OpenSSLSecretKey implements SecretKey, OpenSSLKeyHolder { 53 public static OpenSSLKey getInstance(SecretKey key) throws InvalidKeyException { 96 if (!(o instanceof SecretKey)) { 100 SecretKey other = (SecretKey) o;
|
/libcore/crypto/src/test/java/org/conscrypt/ |
MacTest.java | 24 import javax.crypto.SecretKey; 42 SecretKey key1 = engine.getSecretKeyById(secret, "HmacSHA256"); 43 SecretKey key1dupe = engine.getSecretKeyById(secret, "HmacSHA256"); 45 /* Non-ENGINE-based SecretKey */ 46 SecretKey key2 = new SecretKeySpec(secret.getBytes(), "HmacSHA256");
|
/development/samples/Vault/src/com/example/android/vault/ |
SecretKeyWrapper.java | 32 import javax.crypto.SecretKey; 36 * Wraps {@link SecretKey} instances using a public/private key pair stored in 91 * Wrap a {@link SecretKey} using the public key assigned to this wrapper. 93 * {@link SecretKey}. 95 * @return a wrapped version of the given {@link SecretKey} that can be 98 public byte[] wrap(SecretKey key) throws GeneralSecurityException { 104 * Unwrap a {@link SecretKey} using the private key assigned to this 107 * @param blob a wrapped {@link SecretKey} as previously returned by 108 * {@link #wrap(SecretKey)}. 110 public SecretKey unwrap(byte[] blob) throws GeneralSecurityException [all...] |
/frameworks/base/core/java/android/content/pm/ |
ContainerEncryptionParams.java | 28 import javax.crypto.SecretKey; 58 private final SecretKey mEncryptionKey; 67 private final SecretKey mMacKey; 85 AlgorithmParameterSpec encryptionSpec, SecretKey encryptionKey) 112 AlgorithmParameterSpec encryptionSpec, SecretKey encryptionKey, String macAlgorithm, 113 AlgorithmParameterSpec macSpec, SecretKey macKey, byte[] macTag, 157 public SecretKey getEncryptionKey() { 169 public SecretKey getMacKey() { 233 private static final boolean isSecretKeyEqual(SecretKey key1, SecretKey key2) [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
WebappAuthenticator.java | 23 import javax.crypto.SecretKey; 42 private static FutureTask<SecretKey> sMacKeyGenerator; 43 private static SecretKey sKey = null; 89 private static SecretKey readKeyFromFile( 124 private static boolean writeKeyToFile(Context context, String basename, SecretKey key) { 144 private static SecretKey getKey(Context context) { 147 SecretKey key = readKeyFromFile(context, MAC_KEY_BASENAME, MAC_ALGORITHM_NAME); 181 sMacKeyGenerator = new FutureTask<SecretKey>(new Callable<SecretKey>() { 183 public SecretKey call() throws Exception [all...] |
/external/oauth/core/src/main/java/net/oauth/signature/ |
HMAC_SHA1.java | 24 import javax.crypto.SecretKey; 64 SecretKey key = null; 85 private SecretKey key = null;
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
SecretKeyFactorySpiTest.java | 57 SecretKey sk = null;
|
/libcore/benchmarks/src/benchmarks/regression/ |
CipherBenchmark.java | 26 import javax.crypto.SecretKey; 89 private static Map<Integer, SecretKey> KEY_SIZES = new HashMap<Integer, SecretKey>(); 92 private SecretKey key;
|