Searched refs:iv (Results 1 - 25 of 282) sorted by relevance

1234567891011>>

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DParametersWithIV.java8 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
/external/openssl/crypto/bf/
H A Dbf_cfb64.c74 unsigned char *iv,c,cc; local
76 iv=(unsigned char *)ivec;
83 n2l(iv,v0); ti[0]=v0;
84 n2l(iv,v1); ti[1]=v1;
86 iv=(unsigned char *)ivec;
87 t=ti[0]; l2n(t,iv);
88 t=ti[1]; l2n(t,iv);
89 iv=(unsigned char *)ivec;
91 c= *(in++)^iv[n];
93 iv[
[all...]
H A Dbf_ofb64.c75 unsigned char *iv; local
78 iv=(unsigned char *)ivec;
79 n2l(iv,v0);
80 n2l(iv,v1);
103 iv=(unsigned char *)ivec;
104 l2n(v0,iv);
105 l2n(v1,iv);
/external/openssl/crypto/des/
H A Dcfb64enc.c74 unsigned char *iv,c,cc; local
76 iv = &(*ivec)[0];
83 c2l(iv,v0); ti[0]=v0;
84 c2l(iv,v1); ti[1]=v1;
86 iv = &(*ivec)[0];
87 v0=ti[0]; l2c(v0,iv);
88 v0=ti[1]; l2c(v0,iv);
89 iv = &(*ivec)[0];
91 c= *(in++)^iv[n];
93 iv[
[all...]
H A Dcfb64ede.c76 unsigned char *iv,c,cc; local
78 iv=&(*ivec)[0];
85 c2l(iv,v0);
86 c2l(iv,v1);
94 iv = &(*ivec)[0];
95 l2c(v0,iv);
96 l2c(v1,iv);
97 iv = &(*ivec)[0];
99 c= *(in++)^iv[n];
101 iv[
158 unsigned char *iv; local
[all...]
H A Dcfb_enc.c79 unsigned char *iv; local
93 iv = &(*ivec)[0];
94 c2l(iv,v0);
95 c2l(iv,v1);
119 iv=&ovec[0];
120 l2c(v0,iv);
121 l2c(v1,iv);
122 l2c(d0,iv);
123 l2c(d1,iv);
136 iv
[all...]
H A Dofb64ede.c77 unsigned char *iv; local
80 iv = &(*ivec)[0];
81 c2l(iv,v0);
82 c2l(iv,v1);
110 iv = &(*ivec)[0];
111 l2c(v0,iv);
112 l2c(v1,iv);
H A Dofb64enc.c75 unsigned char *iv; local
78 iv = &(*ivec)[0];
79 c2l(iv,v0);
80 c2l(iv,v1);
103 iv = &(*ivec)[0];
104 l2c(v0,iv);
105 l2c(v1,iv);
H A Dncbc_enc.c78 unsigned char *iv; local
80 iv = &(*ivec)[0];
84 c2l(iv,tout0);
85 c2l(iv,tout1);
106 iv = &(*ivec)[0];
107 l2c(tout0,iv);
108 l2c(tout1,iv);
113 c2l(iv,xor0);
114 c2l(iv,xor1);
141 iv
[all...]
H A Dofb_enc.c76 unsigned char *iv; local
96 iv = &(*ivec)[0];
97 c2l(iv,v0);
98 c2l(iv,v1);
130 iv = &(*ivec)[0];
131 l2c(v0,iv);
132 l2c(v1,iv);
H A Dpcbc_enc.c68 unsigned char *out,*iv; local
72 iv = &(*ivec)[0];
76 c2l(iv,xor0);
77 c2l(iv,xor1);
100 c2l(iv,xor0); c2l(iv,xor1);
/external/openssl/crypto/rc2/
H A Drc2cfb64.c75 unsigned char *iv,c,cc; local
77 iv=(unsigned char *)ivec;
84 c2l(iv,v0); ti[0]=v0;
85 c2l(iv,v1); ti[1]=v1;
87 iv=(unsigned char *)ivec;
88 t=ti[0]; l2c(t,iv);
89 t=ti[1]; l2c(t,iv);
90 iv=(unsigned char *)ivec;
92 c= *(in++)^iv[n];
94 iv[
[all...]
H A Drc2ofb64.c76 unsigned char *iv; local
79 iv=(unsigned char *)ivec;
80 c2l(iv,v0);
81 c2l(iv,v1);
104 iv=(unsigned char *)ivec;
105 l2c(v0,iv);
106 l2c(v1,iv);
/external/ipsec-tools/src/racoon/missing/crypto/rijndael/
H A Drijndael-api-fst.c96 word8 block[16], iv[4][4]; local
121 bcopy(input, iv, 16);
122 ((word32*)block)[0] ^= ((word32*)iv)[0];
123 ((word32*)block)[1] ^= ((word32*)iv)[1];
124 ((word32*)block)[2] ^= ((word32*)iv)[2];
125 ((word32*)block)[3] ^= ((word32*)iv)[3];
137 bcopy(input, iv, 16);
138 ((word32*)block)[0] ^= ((word32*)iv)[0];
139 ((word32*)block)[1] ^= ((word32*)iv)[1];
140 ((word32*)block)[2] ^= ((word32*)iv)[
210 word8 block[16], *iv, *cp; local
273 word8 block[16], iv[4][4]; local
372 word32 iv[4]; local
[all...]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DIvParameterSpecTest.java40 * IvParameterSpec(byte[] iv) constructor testing. Checks that
52 byte[] iv = new byte[] {1, 2, 3, 4, 5};
53 IvParameterSpec ivps = new IvParameterSpec(iv);
54 iv[0] ++;
56 + "the change of internal array", iv[0] == ivps.getIV()[0]);
60 * IvParameterSpec(byte[] iv) constructor testing. Checks that
79 + "if (iv.length - offset < len).");
90 + "if offset index bytes outside the iv.");
102 + "if len index bytes outside the iv.");
111 byte[] iv
[all...]
H A DRC2ParameterSpecTest.java39 * RC2ParameterSpec(int effectiveKeyBits, byte[] iv) method testing.
41 * inappropriate constructor parameters and that input iv array is
46 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8};
51 + "in the case of null iv.");
58 + "in the case of short iv.");
62 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
63 iv[0] ++;
64 assertFalse("The change of iv specified in the constructor "
66 iv[0] == ps.getIV()[0]);
70 * RC2ParameterSpec(int effectiveKeyBits, byte[] iv, in
[all...]
H A DRC5ParameterSpecTest.java38 * RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) method
40 * inappropriate constructor parameters and that input iv array is
47 byte[] iv = {1, 2, 3, 4};
52 + "in the case of null iv.");
57 new RC5ParameterSpec(version, rounds, wordSize+8, iv);
59 + "in the case of short iv.");
66 + "in the case of short iv.");
71 wordSize, iv);
72 iv[0] ++;
73 assertFalse("The change of iv specifie
[all...]
/external/javassist/sample/vector/
H A DTest.j26 intVector iv = new intVector();
27 iv.add(3);
28 iv.add(4);
29 for (int i = 0; i < iv.size(); ++i)
30 System.out.println(iv.at(i));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
H A DRFC3394WrapEngine.java27 private byte[] iv = { field in class:RFC3394WrapEngine
53 this.iv = ((ParametersWithIV)param).getIV();
55 if (this.iv.length != 8)
84 byte[] block = new byte[inLen + iv.length];
85 byte[] buf = new byte[8 + iv.length];
87 System.arraycopy(iv, 0, block, 0, iv.length);
88 System.arraycopy(in, 0, block, iv.length, inLen);
96 System.arraycopy(block, 0, buf, 0, iv.length);
97 System.arraycopy(block, 8 * i, buf, iv
[all...]
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/
H A DCTRMode.java28 public CTRMode(BlockCipher tc, byte[] iv, boolean doEnc) throws IllegalArgumentException argument
34 if (blockSize != iv.length)
35 throw new IllegalArgumentException("IV must be " + blockSize + " bytes long! (currently " + iv.length + ")");
40 System.arraycopy(iv, 0, X, 0, blockSize);
/external/openssl/crypto/modes/
H A Dcbc128.c71 const unsigned char *iv = ivec; local
80 out[n] = in[n] ^ iv[n];
82 iv = out;
91 *(size_t*)(in+n) ^ *(size_t*)(iv+n);
93 iv = out;
102 out[n] = in[n] ^ iv[n];
104 out[n] = iv[n];
106 iv = out;
112 memcpy(ivec,iv,16);
126 const unsigned char *iv local
[all...]
/external/openssh/
H A Dcipher-3des1.c63 ssh1_3des_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, argument
145 ssh1_3des_iv(EVP_CIPHER_CTX *evp, int doset, u_char *iv, int len) argument
150 fatal("%s: bad 3des iv length: %d", __func__, len);
155 memcpy(c->k1.iv, iv, 8);
156 memcpy(c->k2.iv, iv + 8, 8);
157 memcpy(c->k3.iv, iv + 16, 8);
160 memcpy(iv,
[all...]
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipher_Impl1Test.java59 byte[] iv = new byte[8];
60 sr.nextBytes(iv);
62 ap.init(iv, "RAW");
69 assertTrue("IVs differ", Arrays.equals(cipherIV, iv));
89 byte[] iv = new byte[8];
90 sr.nextBytes(iv);
93 ap.init(iv, "RAW");
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DPKCS12PBEParams.java18 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);
/external/clang/test/CodeGen/
H A Doverloadable.c15 int iv = 17; local
21 iv = f(iv);

Completed in 371 milliseconds

1234567891011>>