Home
last modified time | relevance | path

Searched refs:SecretKeySpec (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DSecretKeySpecTest.java31 import javax.crypto.spec.SecretKeySpec;
48 new SecretKeySpec(new byte[] {}, algorithm); in testSecretKeySpec1()
55 new SecretKeySpec(null, algorithm); in testSecretKeySpec1()
62 new SecretKeySpec(key, null); in testSecretKeySpec1()
68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testSecretKeySpec1()
88 new SecretKeySpec(new byte[] {}, 0, 0, algorithm); in testSecretKeySpec2()
95 new SecretKeySpec(null, 0, 0, algorithm); in testSecretKeySpec2()
102 new SecretKeySpec(key, offset, len, null); in testSecretKeySpec2()
109 new SecretKeySpec(key, offset, key.length, algorithm); in testSecretKeySpec2()
116 new SecretKeySpec(key, 0, -1, algorithm); in testSecretKeySpec2()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMacTest.java41 import javax.crypto.spec.SecretKeySpec;
90 mac.init(new SecretKeySpec(new byte[64], validAlgorithmsMac[i])); in mac.init()
325 SecretKeySpec sks = new SecretKeySpec(bb, "SHA1"); in testMac09()
387 SecretKeySpec sks = new SecretKeySpec(b, "SHA1"); in testMac10()
432 SecretKeySpec scs = new SecretKeySpec(b, "SHA1"); in testMac11()
457 SecretKeySpec scs = new SecretKeySpec(b, "SHA1"); in testMac12()
488 SecretKeySpec scs = new SecretKeySpec(b, "SHA1"); in testMac13()
531 SecretKeySpec scs = new SecretKeySpec(b, "SHA1"); in testMac14()
592 SecretKeySpec sks = new SecretKeySpec(b, "SHA1"); in testInit()
595 SecretKeySpec sks1 = new SecretKeySpec(b, "RSA"); in testInit()
[all …]
DNullCipherTest.java31 import javax.crypto.spec.SecretKeySpec;
76 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], "algorithm")); in testInitintKey()
84 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeySecureRandom()
93 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeyAlgorithmParameterSpec()
DMacSpiTest.java31 import javax.crypto.spec.SecretKeySpec;
164 SecretKeySpec sks = new SecretKeySpec(bb1, "SHA1"); in testMacSpiTests01()
DSealedObjectTest.java45 import javax.crypto.spec.SecretKeySpec;
279 new SecretKeySpec(new byte[] {0, 0, 0}, "algorithm"), null); in testGetObject3()
287 new SecretKeySpec(new byte[] {0, 0, 0}, "algorithm"), ""); in testGetObject3()
DSecretKeyFactoryTest.java40 import javax.crypto.spec.SecretKeySpec;
360 SecretKeySpec secKeySpec = new SecretKeySpec(bb, defaultAlgorithm); in testSecretKeyFactory10()
DCipherTest.java49 import javax.crypto.spec.SecretKeySpec;
75 CIPHER_KEY_3DES = new SecretKeySpec(encoded_3des, ALGORITHM_3DES);
81 CIPHER_KEY_DES = new SecretKeySpec(encoded_des, ALGORITHM_DES);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DMacThread.java19 import javax.crypto.spec.SecretKeySpec;
41 SecretKeySpec sks = new SecretKeySpec(b, "SHA1"); in test()
/libcore/ojluni/src/main/java/javax/crypto/spec/
DSecretKeySpec.java50 public class SecretKeySpec implements KeySpec, SecretKey { class
91 public SecretKeySpec(byte[] key, String algorithm) { in SecretKeySpec() method in SecretKeySpec
140 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { in SecretKeySpec() method in SecretKeySpec
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyMacSpi.java31 import javax.crypto.spec.SecretKeySpec;
50 if (!(key instanceof SecretKeySpec)) { in engineInit()
/libcore/ojluni/src/main/java/java/security/
DKeyRep.java36 import javax.crypto.spec.SecretKeySpec;
168 return new SecretKeySpec(encoded, algorithm); in readResolve()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherInputStreamTest.java40 import javax.crypto.spec.SecretKeySpec;
76 key = new SecretKeySpec(aesKeyBytes, "AES"); in setUp()
77 rc4Key = new SecretKeySpec(aesKeyBytes, "RC4"); in setUp()
DCipherTest.java43 import javax.crypto.spec.SecretKeySpec;
303 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[16], "FOO")); in testCipher_getInstance_WrongType_Failure()
/libcore/
Dopenjdk_java_files.bp1326 "ojluni/src/main/java/javax/crypto/spec/SecretKeySpec.java",
DEXPECTED_UPSTREAM1323 …rc/main/java/javax/crypto/spec/SecretKeySpec.java,jdk8u/jdk8u121-b13,jdk/src/share/classes/javax/c…
/libcore/api/
Dcurrent.txt19336 public class SecretKeySpec implements java.security.spec.KeySpec javax.crypto.SecretKey {
19337 ctor public SecretKeySpec(byte[], String);
19338 ctor public SecretKeySpec(byte[], int, int, String);