Searched refs:secretKey (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | MacTest.java | 135 SecretKey secretKey = secretKeyFactory.generateSecret(pbeKeySpec); in test_PBEWITHHMACSHA_Variants() local 137 mac.init(secretKey); in test_PBEWITHHMACSHA_Variants()
|
D | CipherTest.java | 638 SecretKey secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV() local 644 () -> cipher.init(Cipher.ENCRYPT_MODE, secretKey, paramSpec)); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_noIV() 671 SecretKey secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV() local 674 cipher.init(Cipher.ENCRYPT_MODE, secretKey, new IvParameterSpec(iv)); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV() 677 secretKey = skf.generateSecret(pbeks); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV() 678 cipher.init(Cipher.DECRYPT_MODE, secretKey, new IvParameterSpec(iv)); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyStore.java | 701 public SecretKeyEntry(SecretKey secretKey) { in SecretKeyEntry() argument 702 if (secretKey == null) { in SecretKeyEntry() 705 this.sKey = secretKey; in SecretKeyEntry() 724 public SecretKeyEntry(SecretKey secretKey, Set<Attribute> attributes) { in SecretKeyEntry() argument 726 if (secretKey == null || attributes == null) { in SecretKeyEntry() 729 this.sKey = secretKey; in SecretKeyEntry()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStoreTest.java | 256 SecretKey secretKey = keyGen.generateKey(); in testEngineEntryInstanceOf() local 260 keyStore.setKeyEntry(alias, secretKey, "pwd".toCharArray(), null); in testEngineEntryInstanceOf()
|
/libcore/ojluni/annotations/hiddenapi/java/security/ |
D | KeyStore.java | 448 public SecretKeyEntry(javax.crypto.SecretKey secretKey) { in SecretKeyEntry() argument 453 javax.crypto.SecretKey secretKey, in SecretKeyEntry() argument
|