/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/ |
H A D | IvParameterSpec.java | 33 private final byte[] iv; field in class:IvParameterSpec 37 * the specified buffer <i>iv</i> used as <i>initialization vector</i>. 39 * @param iv 44 public IvParameterSpec(byte[] iv) { argument 45 if (iv == null) { 48 this.iv = new byte[iv.length]; 49 System.arraycopy(iv, 0, this.iv, 0, iv 70 IvParameterSpec(byte[] iv, int offset, int len) argument [all...] |
H A D | RC2ParameterSpec.java | 32 private final byte[] iv; field in class:RC2ParameterSpec 43 iv = null; 55 * @param iv 60 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv) { argument 61 if (iv == null) { 64 if (iv.length < 8) { 68 this.iv = new byte[8]; 69 System.arraycopy(iv, 0, this.iv, 0, 8); 82 * @param iv 90 RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) argument [all...] |
H A D | RC5ParameterSpec.java | 34 private final byte[] iv; field in class:RC5ParameterSpec 51 this.iv = null; 69 * @param iv 75 public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) { argument 76 if (iv == null) { 79 if (iv.length < 2 * (wordSize / 8)) { 86 this.iv = new byte[2*(wordSize/8)]; 87 System.arraycopy(iv, 0, this.iv, 0, 2*(wordSize/8)); 105 * @param iv 115 RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) argument [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/ |
H A D | ParametersWithIV.java | 8 private byte[] iv; field in class:ParametersWithIV 13 byte[] iv) 15 this(parameters, iv, 0, iv.length); 20 byte[] iv, 24 this.iv = new byte[ivLen]; 27 System.arraycopy(iv, ivOff, this.iv, 0, ivLen); 32 return iv; 11 ParametersWithIV( CipherParameters parameters, byte[] iv) argument 18 ParametersWithIV( CipherParameters parameters, byte[] iv, int ivOff, int ivLen) argument
|
H A D | KDFParameters.java | 11 byte[] iv; field in class:KDFParameters 16 byte[] iv) 19 this.iv = iv; 29 return iv; 14 KDFParameters( byte[] shared, byte[] iv) argument
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/misc/ |
H A D | IDEACBCPar.java | 8 ASN1OctetString iv; field in class:IDEACBCPar 26 byte[] iv) 28 this.iv = new DEROctetString(iv); 36 iv = (ASN1OctetString)seq.getObjectAt(0); 40 iv = null; 46 if (iv != null) 48 return iv.getOctets(); 60 * iv OCTET STRING OPTIONAL -- exactly 8 octets 68 if (iv ! 25 IDEACBCPar( byte[] iv) argument [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/pkcs/ |
H A D | RC2CBCParameter.java | 18 ASN1OctetString iv; field in class:RC2CBCParameter 32 byte[] iv) 35 this.iv = new DEROctetString(iv); 40 byte[] iv) 43 this.iv = new DEROctetString(iv); 52 iv = (ASN1OctetString)seq.getObjectAt(0); 57 iv = (ASN1OctetString)seq.getObjectAt(1); 73 return iv 31 RC2CBCParameter( byte[] iv) argument 38 RC2CBCParameter( int parameterVersion, byte[] iv) argument [all...] |
H A D | PKCS12PBEParams.java | 18 ASN1OctetString iv; field in class:PKCS12PBEParams 24 this.iv = new DEROctetString(salt); 31 iv = (ASN1OctetString)seq.getObjectAt(0); 57 return iv.getOctets(); 64 v.add(iv);
|
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | IvParameterSpecTest.java | 47 * IvParameterSpec(byte[] iv) constructor testing. Checks that 65 byte[] iv = new byte[] {1, 2, 3, 4, 5}; 66 IvParameterSpec ivps = new IvParameterSpec(iv); 67 iv[0] ++; 69 + "the change of internal array", iv[0] == ivps.getIV()[0]); 73 * IvParameterSpec(byte[] iv) constructor testing. Checks that 98 + "if (iv.length - offset < len)."); 109 + "if offset index bytes outside the iv."); 121 + "if len index bytes outside the iv."); 130 byte[] iv [all...] |
H A D | RC2ParameterSpecTest.java | 46 * RC2ParameterSpec(int effectiveKeyBits, byte[] iv) method testing. 48 * inappropriate constructor parameters and that input iv array is 59 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8}; 64 + "in the case of null iv."); 71 + "in the case of short iv."); 75 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv); 76 iv[0] ++; 77 assertFalse("The change of iv specified in the constructor " 79 iv[0] == ps.getIV()[0]); 83 * RC2ParameterSpec(int effectiveKeyBits, byte[] iv, in [all...] |
H A D | RC5ParameterSpecTest.java | 45 * RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) method 47 * inappropriate constructor parameters and that input iv array is 60 byte[] iv = {1, 2, 3, 4}; 65 + "in the case of null iv."); 70 new RC5ParameterSpec(version, rounds, wordSize+8, iv); 72 + "in the case of short iv."); 79 + "in the case of short iv."); 84 wordSize, iv); 85 iv[0] ++; 86 assertFalse("The change of iv specifie [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/engines/ |
H A D | AESWrapEngine.java | 24 private byte[] iv = { field in class:AESWrapEngine 40 this.iv = ((ParametersWithIV) param).getIV(); 42 if (this.iv.length != 8) 71 byte[] block = new byte[inLen + iv.length]; 72 byte[] buf = new byte[8 + iv.length]; 74 System.arraycopy(iv, 0, block, 0, iv.length); 75 System.arraycopy(in, 0, block, iv.length, inLen); 83 System.arraycopy(block, 0, buf, 0, iv.length); 84 System.arraycopy(block, 8 * i, buf, iv [all...] |
H A D | DESedeWrapEngine.java | 39 /** Field iv */ 40 private byte[] iv; field in class:DESedeWrapEngine 77 this.iv = new byte[8]; 81 sr.nextBytes(iv); 83 this.paramPlusIV = new ParametersWithIV(this.param, this.iv); 89 this.iv = this.paramPlusIV.getIV(); 94 if ((this.iv == null) || (this.iv.length != 8)) 169 byte[] TEMP2 = new byte[this.iv.length + TEMP1.length]; 171 System.arraycopy(this.iv, [all...] |
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherSymmetricKeyThread.java | 39 byte[] iv = null;//new byte[16]; 49 iv = new byte[8]; 51 iv = new byte[16]; 53 sr.nextBytes(iv); 54 IvParameterSpec ivspec = new IvParameterSpec(iv); 59 iv = cip.getIV(); 60 ivspec = new IvParameterSpec(iv);
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/ |
H A D | OFBBlockCipher.java | 69 byte[] iv = ivParam.getIV(); 71 if (iv.length < IV.length) 74 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length); 75 for (int i = 0; i < IV.length - iv.length; i++) 82 System.arraycopy(iv, 0, IV, 0, IV.length);
|
H A D | CFBBlockCipher.java | 72 byte[] iv = ivParam.getIV(); 74 if (iv.length < IV.length) 77 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length); 78 for (int i = 0; i < IV.length - iv.length; i++) 85 System.arraycopy(iv, 0, IV, 0, IV.length);
|
H A D | GOFBBlockCipher.java | 83 byte[] iv = ivParam.getIV(); 85 if (iv.length < IV.length) 88 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length); 89 for (int i = 0; i < IV.length - iv.length; i++) 96 System.arraycopy(iv, 0, IV, 0, IV.length);
|
H A D | CBCBlockCipher.java | 68 byte[] iv = ivParam.getIV(); 70 if (iv.length != blockSize) 75 System.arraycopy(iv, 0, IV, 0, iv.length);
|
H A D | SICBlockCipher.java | 56 byte[] iv = ivParam.getIV(); 57 System.arraycopy(iv, 0, IV, 0, IV.length);
|
H A D | CCMBlockCipher.java | 95 byte[] iv = new byte[blockSize]; 100 iv[0] = (byte)(((15 - nonce.length) - 1) & 0x7); 102 System.arraycopy(nonce, 0, iv, 1, nonce.length); 104 ctrCipher.init(forEncryption, new ParametersWithIV(params.getKey(), iv));
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/ |
H A D | BaseKDFBytesGenerator.java | 21 private byte[] iv; field in class:BaseKDFBytesGenerator 45 iv = p.getIV(); 52 iv = null; 117 if (iv != null) 119 digest.update(iv, 0, iv.length);
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
H A D | JDKAlgorithmParameterGenerator.java | 247 byte[] iv = new byte[8]; 254 random.nextBytes(iv); 261 params.init(new IvParameterSpec(iv)); 297 byte[] iv = new byte[8]; 304 random.nextBytes(iv); 309 params.init(new IvParameterSpec(iv)); 346 byte[] iv = new byte[16]; 353 random.nextBytes(iv); 360 params.init(new IvParameterSpec(iv)); 384 byte[] iv [all...] |
H A D | BrokenKDF2BytesGenerator.java | 21 private byte[] iv; field in class:BrokenKDF2BytesGenerator 51 iv = p.getIV(); 108 digest.update(iv, 0, iv.length);
|
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherTest.java | 434 byte[] iv = null; 437 iv = new byte[8]; 438 sr.nextBytes(iv); 439 ap = new IvParameterSpec(iv); 447 assertTrue("IVs differ", Arrays.equals(cipherIV, iv)); 493 byte[] iv = null; 496 iv = new byte[8]; 497 sr.nextBytes(iv); 498 ap = new IvParameterSpec(iv); 506 assertTrue("IVs differ", Arrays.equals(cipherIV, iv)); [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/ |
H A D | CFBBlockCipherMac.java | 57 byte[] iv = ivParam.getIV(); 59 if (iv.length < IV.length) 61 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length); 65 System.arraycopy(iv, 0, IV, 0, IV.length);
|