/libcore/ojluni/src/main/java/javax/crypto/spec/ |
D | RC2ParameterSpec.java | 47 private byte[] iv = null; field in RC2ParameterSpec 72 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv) { in RC2ParameterSpec() argument 73 this(effectiveKeyBits, iv, 0); in RC2ParameterSpec() 93 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) { in RC2ParameterSpec() argument 95 if (iv == null) throw new IllegalArgumentException("IV missing"); in RC2ParameterSpec() 97 if (iv.length - offset < blockSize) { in RC2ParameterSpec() 100 this.iv = new byte[blockSize]; in RC2ParameterSpec() 101 System.arraycopy(iv, offset, this.iv, 0, blockSize); in RC2ParameterSpec() 120 return (iv == null? null:iv.clone()); in getIV() 144 java.util.Arrays.equals(iv, other.iv)); in equals() [all …]
|
D | RC5ParameterSpec.java | 49 private byte[] iv = null; field in RC5ParameterSpec 85 public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) { in RC5ParameterSpec() argument 86 this(version, rounds, wordSize, iv, 0); in RC5ParameterSpec() 113 byte[] iv, int offset) { in RC5ParameterSpec() argument 117 if (iv == null) throw new IllegalArgumentException("IV missing"); in RC5ParameterSpec() 119 if (iv.length - offset < blockSize) { in RC5ParameterSpec() 122 this.iv = new byte[blockSize]; in RC5ParameterSpec() 123 System.arraycopy(iv, offset, this.iv, 0, blockSize); in RC5ParameterSpec() 160 return (iv == null? null:iv.clone()); in getIV() 186 java.util.Arrays.equals(iv, other.iv)); in equals() [all …]
|
D | IvParameterSpec.java | 42 private byte[] iv; field in IvParameterSpec 52 public IvParameterSpec(byte[] iv) { in IvParameterSpec() argument 53 this(iv, 0, iv.length); in IvParameterSpec() 75 public IvParameterSpec(byte[] iv, int offset, int len) { in IvParameterSpec() argument 76 if (iv == null) { in IvParameterSpec() 79 if (iv.length - offset < len) { in IvParameterSpec() 86 this.iv = new byte[len]; in IvParameterSpec() 87 System.arraycopy(iv, offset, this.iv, 0, len); in IvParameterSpec() 97 return this.iv.clone(); in getIV()
|
D | GCMParameterSpec.java | 67 private byte[] iv; field in GCMParameterSpec 127 iv = new byte[len]; in init() 128 System.arraycopy(src, offset, iv, 0, len); in init() 147 return iv.clone(); in getIV()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | RC2ParameterSpecTest.java | 46 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8}; in testRC2ParameterSpec1() 62 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv); in testRC2ParameterSpec1() 63 iv[0] ++; in testRC2ParameterSpec1() 66 iv[0] == ps.getIV()[0]); in testRC2ParameterSpec1() 77 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; in testRC2ParameterSpec2() 88 new RC2ParameterSpec(effectiveKeyBits, iv, 4); in testRC2ParameterSpec2() 94 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv, offset); in testRC2ParameterSpec2() 95 iv[offset] ++; in testRC2ParameterSpec2() 98 iv[offset] == ps.getIV()[0]); in testRC2ParameterSpec2() 107 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8}; in testGetEffectiveKeyBits() [all …]
|
D | IvParameterSpecTest.java | 52 byte[] iv = new byte[] {1, 2, 3, 4, 5}; in testIvParameterSpec1() 53 IvParameterSpec ivps = new IvParameterSpec(iv); in testIvParameterSpec1() 54 iv[0] ++; in testIvParameterSpec1() 56 + "the change of internal array", iv[0] == ivps.getIV()[0]); in testIvParameterSpec1() 111 byte[] iv = new byte[] {1, 2, 3, 4, 5}; in testIvParameterSpec2() 112 IvParameterSpec ivps = new IvParameterSpec(iv, 0, iv.length); in testIvParameterSpec2() 113 iv[0] ++; in testIvParameterSpec2() 115 + "the change of internal array", iv[0] == ivps.getIV()[0]); in testIvParameterSpec2() 127 byte[] iv = new byte[] {1, 2, 3, 4, 5}; in testGetIV() 128 IvParameterSpec ivps = new IvParameterSpec(iv); in testGetIV() [all …]
|
D | RC5ParameterSpecTest.java | 47 byte[] iv = {1, 2, 3, 4}; in testRC5ParameterSpec1() 57 new RC5ParameterSpec(version, rounds, wordSize+8, iv); in testRC5ParameterSpec1() 71 wordSize, iv); in testRC5ParameterSpec1() 72 iv[0] ++; in testRC5ParameterSpec1() 75 iv[0] == ps.getIV()[0]); in testRC5ParameterSpec1() 88 byte[] iv = {1, 2, 3, 4, 5, 6}; in testRC5ParameterSpec2() 99 new RC5ParameterSpec(version, rounds, wordSize+8, iv, offset); in testRC5ParameterSpec2() 106 new RC5ParameterSpec(version, rounds, wordSize, iv, offset+1); in testRC5ParameterSpec2() 121 iv, offset); in testRC5ParameterSpec2() 122 iv[offset] ++; in testRC5ParameterSpec2() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherSymmetricKeyThread.java | 39 byte[] iv = null;//new byte[16]; in crypt() 49 iv = new byte[8]; in crypt() 51 iv = new byte[16]; in crypt() 53 sr.nextBytes(iv); in crypt() 54 IvParameterSpec ivspec = new IvParameterSpec(iv); in crypt() 59 iv = cip.getIV(); in crypt() 60 ivspec = new IvParameterSpec(iv); in crypt()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherInputStreamTest.java | 73 private AlgorithmParameterSpec iv; field in CipherInputStreamTest 78 iv = new IvParameterSpec(aesIvBytes); in setUp() 111 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testAvailable() 120 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt_NullInput_Discarded() 133 cipher.init(Cipher.ENCRYPT_MODE, key, iv); in testEncrypt() 157 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt() 173 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testSkip() 190 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_TruncatedInput_Failure() 198 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_NullInputStream_Failure() 223 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCloseTwice() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyGeneratorTest.java | 511 byte[] iv = null; in test_initLjava_security_spec_AlgorithmParameterSpec() 512 iv = new byte[8]; in test_initLjava_security_spec_AlgorithmParameterSpec() 513 sr.nextBytes(iv); in test_initLjava_security_spec_AlgorithmParameterSpec() 514 aps = new IvParameterSpec(iv); in test_initLjava_security_spec_AlgorithmParameterSpec()
|
D | CipherTest.java | 334 IvParameterSpec iv = new IvParameterSpec(ivMaterial); in test_update$BII() local 336 c.init(Cipher.DECRYPT_MODE, k, iv); in test_update$BII() 392 IvParameterSpec iv = new IvParameterSpec(ivMaterial); in test_doFinal() local 394 c.init(Cipher.ENCRYPT_MODE, k, iv); in test_doFinal()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FDBigInteger.java | 1233 private /*@ helper @*/ void multAddMe(int iv, int addend) { in multAddMe() argument 1234 long v = iv & LONG_MASK; in multAddMe()
|