Home
last modified time | relevance | path

Searched refs:IvParameterSpec (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DIvParameterSpecTest.java29 import javax.crypto.spec.IvParameterSpec;
46 new IvParameterSpec(null); in testIvParameterSpec1()
53 IvParameterSpec ivps = new IvParameterSpec(iv); in testIvParameterSpec1()
66 new IvParameterSpec(null, 1, 1); in testIvParameterSpec2()
77 new IvParameterSpec(new byte[] {1, 2, 3}, 2, 2); in testIvParameterSpec2()
88 new IvParameterSpec(new byte[] {1, 2, 3}, -1, 1); in testIvParameterSpec2()
112 IvParameterSpec ivps = new IvParameterSpec(iv, 0, iv.length); in testIvParameterSpec2()
119 new IvParameterSpec(new byte[2], 2, -1); in testIvParameterSpec2()
128 IvParameterSpec ivps = new IvParameterSpec(iv); in testGetIV()
DPBEParameterSpecTest.java27 import javax.crypto.spec.IvParameterSpec;
110 AlgorithmParameterSpec aps = new IvParameterSpec(new byte[16]); in testGetAlgorithmParameterSpec()
/libcore/ojluni/src/main/java/javax/crypto/spec/
DIvParameterSpec.java40 public class IvParameterSpec implements AlgorithmParameterSpec { class
52 public IvParameterSpec(byte[] iv) { in IvParameterSpec() method in IvParameterSpec
75 public IvParameterSpec(byte[] iv, int offset, int len) { in IvParameterSpec() method in IvParameterSpec
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherSymmetricKeyThread.java25 import javax.crypto.spec.IvParameterSpec;
54 IvParameterSpec ivspec = new IvParameterSpec(iv); in crypt()
60 ivspec = new IvParameterSpec(iv); in crypt()
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java26 import javax.crypto.spec.IvParameterSpec;
38 new IvParameterSpec(new byte[] {
191 assertTrue(encodedSpec.getParameterSpec() instanceof IvParameterSpec); in test_encodeAndDecode()
194 ((IvParameterSpec) TEST_PBE_PARAMETER_SPEC.getParameterSpec()).getIV()), in test_encodeAndDecode()
195 Arrays.toString(((IvParameterSpec) encodedSpec.getParameterSpec()).getIV())); in test_encodeAndDecode()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSPasswordProtectionTest.java28 import javax.crypto.spec.IvParameterSpec;
85 AlgorithmParameterSpec protectionParameters = new IvParameterSpec(new byte[]{}); in testGetProtectionAlgorithm()
109 AlgorithmParameterSpec protectionParameters = new IvParameterSpec(new byte[]{}); in testGetProtectionParameters()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DSealedObjectTest.java44 import javax.crypto.spec.IvParameterSpec;
106 IvParameterSpec ips = new IvParameterSpec(new byte[] { in testSealedObject1()
205 IvParameterSpec ips = new IvParameterSpec(new byte[] { in testGetObject1()
249 IvParameterSpec ips = new IvParameterSpec(new byte[] { in testGetObject2()
DCipherTest.java48 import javax.crypto.spec.IvParameterSpec;
266 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithAlgorithmParameterSpec()
295 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
334 IvParameterSpec iv = new IvParameterSpec(ivMaterial); in test_update$BII()
392 IvParameterSpec iv = new IvParameterSpec(ivMaterial); in test_doFinal()
427 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_doFinal()
513 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in testDoFinalbyteArrayintintbyteArrayint()
629 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_doFinalLjava_nio_ByteBufferLjava_nio_ByteBuffer()
694 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithKeyAlgorithmParameters()
714 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithKeyAlgorithmParametersSecureRandom()
[all …]
DKeyGeneratorTest.java40 import javax.crypto.spec.IvParameterSpec;
508 IvParameterSpec aps = null; in test_initLjava_security_spec_AlgorithmParameterSpec()
514 aps = new IvParameterSpec(iv); in test_initLjava_security_spec_AlgorithmParameterSpec()
/libcore/benchmarks/src/benchmarks/regression/
DCipherInputStreamBenchmark.java27 import javax.crypto.spec.IvParameterSpec;
63 spec = new IvParameterSpec(IV); in setUp()
DCipherBenchmark.java27 import javax.crypto.spec.IvParameterSpec;
124 spec = new IvParameterSpec(IV); in setUp()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java40 import javax.crypto.spec.IvParameterSpec;
331 c.init(Cipher.ENCRYPT_MODE, new MockKey(), new IvParameterSpec(new byte[12])); in testCipher_init_CallsInitWithParams_AlgorithmParameterSpec()
674 cipher.init(Cipher.ENCRYPT_MODE, secretKey, new IvParameterSpec(iv)); 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()
DCipherInputStreamTest.java39 import javax.crypto.spec.IvParameterSpec;
78 iv = new IvParameterSpec(aesIvBytes); in setUp()
/libcore/ojluni/src/main/java/javax/crypto/
DCipher.java2486 return params.getParameterSpec(IvParameterSpec.class); in getAlgorithmParameterSpec()
/libcore/
Dopenjdk_java_files.bp1319 "ojluni/src/main/java/javax/crypto/spec/IvParameterSpec.java",
DEXPECTED_UPSTREAM1316 …n/java/javax/crypto/spec/IvParameterSpec.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jav…
/libcore/api/
Dcurrent.txt19273 public class IvParameterSpec implements java.security.spec.AlgorithmParameterSpec {
19274 ctor public IvParameterSpec(byte[]);
19275 ctor public IvParameterSpec(byte[], int, int);