HomeSort by relevance Sort by last modified time
    Searched defs:IV (Results 1 - 13 of 13) sorted by null

  /external/dropbear/libtomcrypt/src/prngs/
fortuna.c 52 /* update the IV */
56 unsigned char *IV;
57 /* update IV */
58 IV = prng->fortuna.IV;
60 IV[x] = (IV[x] + 1) & 255;
61 if (IV[x] != 0) break;
157 zeromem(prng->fortuna.IV, 16);
250 /* encrypt the IV and store it *
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
CBCBlockCipher.java 14 private byte[] IV;
33 this.IV = new byte[blockSize];
49 * Initialise the cipher and, possibly, the initialisation vector (IV).
50 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
68 byte[] iv = ivParam.getIV();
70 if (iv.length != blockSize)
75 System.arraycopy(iv, 0, IV, 0, iv.length)
    [all...]
CFBBlockCipher.java 14 private byte[] IV;
36 this.IV = new byte[cipher.getBlockSize()];
52 * Initialise the cipher and, possibly, the initialisation vector (IV).
53 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
54 * An IV which is too short is handled in FIPS compliant fashion.
72 byte[] iv = ivParam.getIV();
74 if (iv.length < IV.length)
76 // prepend the supplied IV with zeros (per FIPS PUB 81
    [all...]
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...]
SICBlockCipher.java 17 private byte[] IV;
31 this.IV = new byte[blockSize];
56 byte[] iv = ivParam.getIV();
57 System.arraycopy(iv, 0, IV, 0, IV.length);
112 System.arraycopy(IV, 0, counter, 0, counter.length);
GOFBBlockCipher.java 14 private byte[] IV;
45 this.IV = new byte[cipher.getBlockSize()];
61 * Initialise the cipher and, possibly, the initialisation vector (IV).
62 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
63 * An IV which is too short is handled in FIPS compliant fashion.
83 byte[] iv = ivParam.getIV();
85 if (iv.length < IV.length)
87 // prepend the supplied IV with zeros (per FIPS PUB 81
    [all...]
  /external/dropbear/libtomcrypt/demos/
encrypt.c 98 unsigned char tmpkey[512], key[MAXBLOCKSIZE], IV[MAXBLOCKSIZE];
167 /* Need to read in IV */
168 if (fread(IV,1,ivsize,fdin) != ivsize) {
169 printf("Error reading IV from input.\n");
173 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) {
178 /* IV done */
196 /* Setup yarrow for random bytes for IV */
203 /* x = rng_get_bytes(IV,ivsize,NULL);*/
204 x = yarrow_read(IV,ivsize,&prng);
206 printf("Error reading PRNG for IV required.\n")
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
CFBBlockCipherMac.java 15 private byte[] IV;
36 this.IV = new byte[cipher.getBlockSize()];
42 * Initialise the cipher and, possibly, the initialisation vector (IV).
43 * If an IV isn't passed as part of the parameter, the IV will be all zeros.
44 * An IV which is too short is handled in FIPS compliant fashion.
57 byte[] iv = ivParam.getIV();
59 if (iv.length < IV.length)
61 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length)
    [all...]
  /external/ipsec-tools/src/racoon/missing/crypto/rijndael/
rijndael-api-fst.h 44 #define MAX_IV_SIZE 16 /* # bytes needed to represent an IV */
70 u_int8_t IV[MAX_IV_SIZE]; /* A possible Initialization Vector for ciphering */
86 int rijndael_cipherInit(cipherInstance *cipher, u_int8_t mode, char *IV);
  /external/dropbear/libtomcrypt/src/headers/
tomcrypt_mac.h 243 ivmode, /* Which mode is the IV in? */
247 ulong64 totlen, /* 64-bit counter used for IV and AAD */
267 const unsigned char *IV, unsigned long IVlen);
282 const unsigned char *IV, unsigned long IVlen,
316 IV[MAXBLOCKSIZE];
349 IV[MAXBLOCKSIZE];
tomcrypt_prng.h 25 IV[16]; /* IV for CTR mode */
tomcrypt_cipher.h 211 /** The current IV */
212 unsigned char IV[MAXBLOCKSIZE],
229 /** The current IV */
230 unsigned char IV[MAXBLOCKSIZE];
243 /** The current IV */
244 unsigned char IV[MAXBLOCKSIZE];
278 /** The current IV */
279 unsigned char IV[16],
306 /** The current IV */
307 unsigned char IV[MAXBLOCKSIZE]
    [all...]
  /external/dropbear/libtomcrypt/testprof/
x86_prof.c     [all...]

Completed in 3017 milliseconds