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

1 2 3 4 5 6 7 8 9

  /libcore/luni/src/main/java/javax/crypto/spec/
IvParameterSpec.java 31 private final byte[] iv; field in class:IvParameterSpec
35 * the specified buffer <i>iv</i> used as <i>initialization vector</i>.
37 * @param iv
42 public IvParameterSpec(byte[] iv) {
43 if (iv == null) {
44 throw new NullPointerException("iv == null");
46 this.iv = new byte[iv.length];
47 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...]
ofb_enc.c 76 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);
  /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...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
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 = new byte[] {1, 2, 3, 4, 5}
    [all...]
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, int offset) metho
    [all...]
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 specified in the constructor
    [all...]
  /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/openssl/crypto/modes/
cbc128.c 75 const unsigned char *iv = ivec; local
84 out[n] = in[n] ^ iv[n];
86 iv = out;
95 *(size_t*)(in+n) ^ *(size_t*)(iv+n);
97 iv = out;
106 out[n] = in[n] ^ iv[n];
108 out[n] = iv[n];
110 iv = out;
116 memcpy(ivec,iv,16);
130 const unsigned char *iv = ivec local
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/
OFBBlockCipher.java 14 private byte[] IV;
35 this.IV = new byte[cipher.getBlockSize()];
51 * Initialise the cipher and, possibly, the initialisation vector (IV).
52 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
53 * An IV which is too short is handled in FIPS compliant fashion.
69 byte[] iv = ivParam.getIV();
71 if (iv.length < IV.length)
73 // prepend the supplied IV with zeros (per FIPS PUB 81
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
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);
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/pkcs/
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);

Completed in 553 milliseconds

1 2 3 4 5 6 7 8 9