HomeSort by relevance Sort by last modified time
    Searched refs:iv (Results 1 - 25 of 316) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/javax/crypto/spec/
IvParameterSpec.java 32 private final byte[] iv; field in class:IvParameterSpec
36 * the specified buffer <i>iv</i> used as <i>initialization vector</i>.
38 * @param iv
43 public IvParameterSpec(byte[] iv) {
44 if (iv == null) {
45 throw new NullPointerException("iv == null");
47 this.iv = new byte[iv.length];
48 System.arraycopy(iv, 0, this.iv, 0, iv.length)
    [all...]
RC2ParameterSpec.java 30 private final byte[] iv; field in class:RC2ParameterSpec
41 iv = null;
53 * @param iv
58 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv) {
59 if (iv == null) {
60 throw new IllegalArgumentException("iv == null");
62 if (iv.length < 8) {
63 throw new IllegalArgumentException("iv.length < 8");
66 this.iv = new byte[8];
67 System.arraycopy(iv, 0, this.iv, 0, 8)
    [all...]
RC5ParameterSpec.java 32 private final byte[] iv; field in class:RC5ParameterSpec
49 this.iv = null;
67 * @param iv
73 public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) {
74 if (iv == null) {
75 throw new IllegalArgumentException("iv == null");
77 if (iv.length < 2 * (wordSize / 8)) {
78 throw new IllegalArgumentException("iv.length < 2 * (wordSize / 8)");
83 this.iv = new byte[2*(wordSize/8)];
84 System.arraycopy(iv, 0, this.iv, 0, 2*(wordSize/8))
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
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;
  /cts/tools/dasm/src/java_cup/runtime/
int_token.java 16 public int_token(int term_num, int iv)
21 int_val = iv;
  /external/openssl/crypto/bf/
bf_cfb64.c 74 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[n]=c
    [all...]
bf_ofb64.c 75 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/
cfb64enc.c 74 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[n]=c
    [all...]
cfb64ede.c 76 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[n]=c
158 unsigned char *iv; local
    [all...]
cfb_enc.c 79 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=&ovec[0]
    [all...]
ofb64ede.c 77 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);
ofb64enc.c 75 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);
ncbc_enc.c 78 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 = &(*ivec)[0]
    [all...]
  /external/openssl/crypto/rc2/
rc2cfb64.c 75 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[n]=c
    [all...]
rc2ofb64.c 76 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/
rijndael-api-fst.c 79 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) {
85 if (IV != NULL) {
86 bcopy(IV, cipher->IV, MAX_IV_SIZE);
88 bzero(cipher->IV, MAX_IV_SIZE);
96 word8 block[16], iv[4][4]; local
120 bcopy(cipher->IV, block, 16);
121 bcopy(input, iv, 16);
122 ((word32*)block)[0] ^= ((word32*)iv)[0];
123 ((word32*)block)[1] ^= ((word32*)iv)[1]
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/
IvParameterSpecTest.java 40 * 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 = new byte[] {1, 2, 3, 4, 5}
    [all...]
RC2ParameterSpecTest.java 39 * 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, int offset) metho
    [all...]
RC5ParameterSpecTest.java 38 * 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 specified in the constructor
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
IvParameterSpecTest.java 40 * 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 = new byte[] {1, 2, 3, 4, 5}
    [all...]
RC2ParameterSpecTest.java 39 * 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, int offset) metho
    [all...]
  /external/javassist/sample/vector/
Test.j 26 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/src/main/java/org/bouncycastle/crypto/engines/
RFC3394WrapEngine.java 27 private byte[] iv = { field in class:RFC3394WrapEngine
53 this.iv = ((ParametersWithIV)param).getIV();
55 if (this.iv.length != 8)
57 throw new IllegalArgumentException("IV not equal to 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)
    [all...]
  /external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/
CTRMode.java 28 public CTRMode(BlockCipher tc, byte[] iv, boolean doEnc) throws IllegalArgumentException
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/
cbc128.c 71 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 = ivec local
    [all...]

Completed in 514 milliseconds

1 2 3 4 5 6 7 8 91011>>