Home
last modified time | relevance | path

Searched refs:IV (Results 1 – 25 of 179) sorted by relevance

12345678

/external/dropbear/libtomcrypt/src/modes/f8/
Df8_encrypt.c40 if (f8->blocklen < 0 || f8->blocklen > (int)sizeof(f8->IV) || in f8_encrypt()
41 f8->padlen < 0 || f8->padlen > (int)sizeof(f8->IV)) { in f8_encrypt()
53 f8->IV[x] ^= f8->MIV[x] ^ buf[x]; in f8_encrypt()
55 if ((err = cipher_descriptor[f8->cipher].ecb_encrypt(f8->IV, f8->IV, &f8->key)) != CRYPT_OK) { in f8_encrypt()
67 … *((LTC_FAST_TYPE*)(&ct[x])) = *((LTC_FAST_TYPE*)(&pt[x])) ^ *((LTC_FAST_TYPE*)(&f8->IV[x])); in f8_encrypt()
68 …*((LTC_FAST_TYPE*)(&f8->IV[x])) ^= *((LTC_FAST_TYPE*)(&f8->MIV[x])) ^ *((LTC_FAST_TYPE*)(&buf[x])); in f8_encrypt()
70 … if ((err = cipher_descriptor[f8->cipher].ecb_encrypt(f8->IV, f8->IV, &f8->key)) != CRYPT_OK) { in f8_encrypt()
86 f8->IV[x] ^= f8->MIV[x] ^ buf[x]; in f8_encrypt()
88 … if ((err = cipher_descriptor[f8->cipher].ecb_encrypt(f8->IV, f8->IV, &f8->key)) != CRYPT_OK) { in f8_encrypt()
93 *ct++ = *pt++ ^ f8->IV[f8->padlen++]; in f8_encrypt()
Df8_getiv.c27 int f8_getiv(unsigned char *IV, unsigned long *len, symmetric_F8 *f8) in f8_getiv() argument
29 LTC_ARGCHK(IV != NULL); in f8_getiv()
36 XMEMCPY(IV, f8->IV, f8->blocklen); in f8_getiv()
Df8_setiv.c27 int f8_setiv(const unsigned char *IV, unsigned long len, symmetric_F8 *f8) in f8_setiv() argument
31 LTC_ARGCHK(IV != NULL); in f8_setiv()
44 return cipher_descriptor[f8->cipher].ecb_encrypt(IV, f8->IV, &f8->key); in f8_setiv()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DOFBBlockCipher.java14 private byte[] IV; field in OFBBlockCipher
35 this.IV = new byte[cipher.getBlockSize()]; in OFBBlockCipher()
71 if (iv.length < IV.length) in init()
74 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length); in init()
75 for (int i = 0; i < IV.length - iv.length; i++) in init()
77 IV[i] = 0; in init()
82 System.arraycopy(iv, 0, IV, 0, IV.length); in init()
183 System.arraycopy(IV, 0, ofbV, 0, IV.length); in reset()
DCFBBlockCipher.java14 private byte[] IV; field in CFBBlockCipher
36 this.IV = new byte[cipher.getBlockSize()]; in CFBBlockCipher()
74 if (iv.length < IV.length) in init()
77 System.arraycopy(iv, 0, IV, IV.length - iv.length, iv.length); in init()
78 for (int i = 0; i < IV.length - iv.length; i++) in init()
80 IV[i] = 0; in init()
85 System.arraycopy(iv, 0, IV, 0, IV.length); in init()
254 System.arraycopy(IV, 0, cfbV, 0, IV.length); in reset()
/external/dropbear/libtomcrypt/src/modes/lrw/
Dlrw_setiv.c27 int lrw_setiv(const unsigned char *IV, unsigned long len, symmetric_LRW *lrw) in lrw_setiv() argument
34 LTC_ARGCHK(IV != NULL); in lrw_setiv()
46 XMEMCPY(lrw->IV, IV, 16); in lrw_setiv()
55 XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16); in lrw_setiv()
59 *((LTC_FAST_TYPE *)(T + y)) ^= *((LTC_FAST_TYPE *)(&lrw->PC[x][IV[x]][y])); in lrw_setiv()
63 T[y] ^= lrw->PC[x][IV[x]][y]; in lrw_setiv()
69 gcm_gf_mult(lrw->tweak, IV, lrw->pad); in lrw_setiv()
Dlrw_process.c51 lrw->IV[x] = (lrw->IV[x] + 1) & 255; in lrw_process()
52 if (lrw->IV[x]) { in lrw_process()
63 …ad + y)) ^= *((LTC_FAST_TYPE *)(&lrw->PC[x][lrw->IV[x]][y])) ^ *((LTC_FAST_TYPE *)(&lrw->PC[x][(lr… in lrw_process()
67 lrw->pad[y] ^= lrw->PC[x][lrw->IV[x]][y] ^ lrw->PC[x][(lrw->IV[x]-1)&255][y]; in lrw_process()
72 gcm_gf_mult(lrw->tweak, lrw->IV, lrw->pad); in lrw_process()
Dlrw_getiv.c27 int lrw_getiv(unsigned char *IV, unsigned long *len, symmetric_LRW *lrw) in lrw_getiv() argument
29 LTC_ARGCHK(IV != NULL); in lrw_getiv()
37 XMEMCPY(IV, lrw->IV, 16); in lrw_getiv()
/external/dropbear/libtomcrypt/src/mac/f9/
Df9_process.c47 *((LTC_FAST_TYPE*)&(f9->IV[x])) ^= *((LTC_FAST_TYPE*)&(in[x])); in f9_process()
49 cipher_descriptor[f9->cipher].ecb_encrypt(f9->IV, f9->IV, &f9->key); in f9_process()
51 *((LTC_FAST_TYPE*)&(f9->ACC[x])) ^= *((LTC_FAST_TYPE*)&(f9->IV[x])); in f9_process()
61 cipher_descriptor[f9->cipher].ecb_encrypt(f9->IV, f9->IV, &f9->key); in f9_process()
63 f9->ACC[x] ^= f9->IV[x]; in f9_process()
67 f9->IV[f9->buflen++] ^= *in++; in f9_process()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_cipher.h212 unsigned char IV[MAXBLOCKSIZE], member
230 unsigned char IV[MAXBLOCKSIZE]; member
244 unsigned char IV[MAXBLOCKSIZE]; member
279 unsigned char IV[16], member
307 unsigned char IV[MAXBLOCKSIZE], member
396 …unsigned char *pt, unsigned char *ct, unsigned long blocks, unsigned char *IV, symmetric_key *skey…
406 …unsigned char *ct, unsigned char *pt, unsigned long blocks, unsigned char *IV, symmetric_key *skey…
417 …unsigned char *pt, unsigned char *ct, unsigned long blocks, unsigned char *IV, int mode, symmetric…
428 …unsigned char *pt, unsigned char *ct, unsigned long blocks, unsigned char *IV, const unsigned char…
439 …unsigned char *ct, unsigned char *pt, unsigned long blocks, unsigned char *IV, const unsigned char…
[all …]
/external/ipsec-tools/src/racoon/missing/crypto/rijndael/
Drijndael-api-fst.c79 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) { in rijndael_cipherInit() argument
85 if (IV != NULL) { in rijndael_cipherInit()
86 bcopy(IV, cipher->IV, MAX_IV_SIZE); in rijndael_cipherInit()
88 bzero(cipher->IV, MAX_IV_SIZE); in rijndael_cipherInit()
120 bcopy(cipher->IV, block, 16); in rijndael_blockEncrypt()
127 ((word32*)block)[0] = ((word32*)cipher->IV)[0] ^ ((word32*)input)[0]; in rijndael_blockEncrypt()
128 ((word32*)block)[1] = ((word32*)cipher->IV)[1] ^ ((word32*)input)[1]; in rijndael_blockEncrypt()
129 ((word32*)block)[2] = ((word32*)cipher->IV)[2] ^ ((word32*)input)[2]; in rijndael_blockEncrypt()
130 ((word32*)block)[3] = ((word32*)cipher->IV)[3] ^ ((word32*)input)[3]; in rijndael_blockEncrypt()
156 bcopy(cipher->IV, iv, 16); in rijndael_blockEncrypt()
[all …]
/external/dropbear/libtomcrypt/src/modes/cfb/
Dcfb_start.c31 int cfb_start(int cipher, const unsigned char *IV, const unsigned char *key, in cfb_start() argument
36 LTC_ARGCHK(IV != NULL); in cfb_start()
49 cfb->IV[x] = IV[x]; in cfb_start()
58 return cipher_descriptor[cfb->cipher].ecb_encrypt(cfb->IV, cfb->IV, &cfb->key); in cfb_start()
Dcfb_getiv.c27 int cfb_getiv(unsigned char *IV, unsigned long *len, symmetric_CFB *cfb) in cfb_getiv() argument
29 LTC_ARGCHK(IV != NULL); in cfb_getiv()
36 XMEMCPY(IV, cfb->IV, cfb->blocklen); in cfb_getiv()
Dcfb_setiv.c27 int cfb_setiv(const unsigned char *IV, unsigned long len, symmetric_CFB *cfb) in cfb_setiv() argument
31 LTC_ARGCHK(IV != NULL); in cfb_setiv()
44 return cipher_descriptor[cfb->cipher].ecb_encrypt(IV, cfb->IV, &cfb->key); in cfb_setiv()
/external/dropbear/libtomcrypt/src/modes/cbc/
Dcbc_encrypt.c42 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { in cbc_encrypt()
56 …return cipher_descriptor[cbc->cipher].accel_cbc_encrypt(pt, ct, len / cbc->blocklen, cbc->IV, &cbc… in cbc_encrypt()
62 … *((LTC_FAST_TYPE*)((unsigned char *)cbc->IV + x)) ^= *((LTC_FAST_TYPE*)((unsigned char *)pt + x)); in cbc_encrypt()
66 cbc->IV[x] ^= pt[x]; in cbc_encrypt()
71 … if ((err = cipher_descriptor[cbc->cipher].ecb_encrypt(cbc->IV, ct, &cbc->key)) != CRYPT_OK) { in cbc_encrypt()
78 … *((LTC_FAST_TYPE*)((unsigned char *)cbc->IV + x)) = *((LTC_FAST_TYPE*)((unsigned char *)ct + x)); in cbc_encrypt()
82 cbc->IV[x] = ct[x]; in cbc_encrypt()
Dcbc_decrypt.c48 if (cbc->blocklen < 1 || cbc->blocklen > (int)sizeof(cbc->IV)) { in cbc_decrypt()
62 …return cipher_descriptor[cbc->cipher].accel_cbc_decrypt(ct, pt, len / cbc->blocklen, cbc->IV, &cbc… in cbc_decrypt()
73 …tmpy = *((LTC_FAST_TYPE*)((unsigned char *)cbc->IV + x)) ^ *((LTC_FAST_TYPE*)((unsigned char *)tmp… in cbc_decrypt()
74 … *((LTC_FAST_TYPE*)((unsigned char *)cbc->IV + x)) = *((LTC_FAST_TYPE*)((unsigned char *)ct + x)); in cbc_decrypt()
79 tmpy = tmp[x] ^ cbc->IV[x]; in cbc_decrypt()
80 cbc->IV[x] = ct[x]; in cbc_decrypt()
Dcbc_setiv.c28 int cbc_setiv(const unsigned char *IV, unsigned long len, symmetric_CBC *cbc) in cbc_setiv() argument
30 LTC_ARGCHK(IV != NULL); in cbc_setiv()
35 XMEMCPY(cbc->IV, IV, len); in cbc_setiv()
Dcbc_getiv.c27 int cbc_getiv(unsigned char *IV, unsigned long *len, symmetric_CBC *cbc) in cbc_getiv() argument
29 LTC_ARGCHK(IV != NULL); in cbc_getiv()
36 XMEMCPY(IV, cbc->IV, cbc->blocklen); in cbc_getiv()
/external/dropbear/libtomcrypt/src/mac/xcbc/
Dxcbc_process.c50 *((LTC_FAST_TYPE*)&(xcbc->IV[x])) ^= *((LTC_FAST_TYPE*)&(in[x])); in xcbc_process()
52 cipher_descriptor[xcbc->cipher].ecb_encrypt(xcbc->IV, xcbc->IV, &xcbc->key); in xcbc_process()
61 cipher_descriptor[xcbc->cipher].ecb_encrypt(xcbc->IV, xcbc->IV, &xcbc->key); in xcbc_process()
64 xcbc->IV[xcbc->buflen++] ^= *in++; in xcbc_process()
Dxcbc_done.c46 xcbc->IV[x] ^= xcbc->K[1][x]; in xcbc_done()
49 xcbc->IV[xcbc->buflen] ^= 0x80; in xcbc_done()
52 xcbc->IV[x] ^= xcbc->K[2][x]; in xcbc_done()
57 cipher_descriptor[xcbc->cipher].ecb_encrypt(xcbc->IV, xcbc->IV, &xcbc->key); in xcbc_done()
62 out[x] = xcbc->IV[x]; in xcbc_done()
/external/dropbear/libtomcrypt/src/modes/ofb/
Dofb_encrypt.c39 if (ofb->blocklen < 0 || ofb->blocklen > (int)sizeof(ofb->IV) || in ofb_encrypt()
40 ofb->padlen < 0 || ofb->padlen > (int)sizeof(ofb->IV)) { in ofb_encrypt()
46 … if ((err = cipher_descriptor[ofb->cipher].ecb_encrypt(ofb->IV, ofb->IV, &ofb->key)) != CRYPT_OK) { in ofb_encrypt()
51 *ct++ = *pt++ ^ ofb->IV[(ofb->padlen)++]; in ofb_encrypt()
Dofb_getiv.c27 int ofb_getiv(unsigned char *IV, unsigned long *len, symmetric_OFB *ofb) in ofb_getiv() argument
29 LTC_ARGCHK(IV != NULL); in ofb_getiv()
36 XMEMCPY(IV, ofb->IV, ofb->blocklen); in ofb_getiv()
Dofb_setiv.c27 int ofb_setiv(const unsigned char *IV, unsigned long len, symmetric_OFB *ofb) in ofb_setiv() argument
31 LTC_ARGCHK(IV != NULL); in ofb_setiv()
44 return cipher_descriptor[ofb->cipher].ecb_encrypt(IV, ofb->IV, &ofb->key); in ofb_setiv()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp229 LatticeVal &IV = TrackedGlobals[GV]; in TrackValueOfGlobalVariable() local
231 IV.markConstant(GV->getInitializer()); in TrackValueOfGlobalVariable()
306 void markConstant(LatticeVal &IV, Value *V, Constant *C) { in markConstant() argument
307 if (!IV.markConstant(C)) return; in markConstant()
309 if (IV.isOverdefined()) in markConstant()
322 LatticeVal &IV = ValueState[V]; in markForcedConstant() local
323 IV.markForcedConstant(C); in markForcedConstant()
325 if (IV.isOverdefined()) in markForcedConstant()
335 void markOverdefined(LatticeVal &IV, Value *V) { in markOverdefined() argument
336 if (!IV.markOverdefined()) return; in markOverdefined()
[all …]
/external/dropbear/libtomcrypt/src/encauth/gcm/
Dgcm_add_iv.c28 const unsigned char *IV, unsigned long IVlen) in gcm_add_iv() argument
35 LTC_ARGCHK(IV != NULL); in gcm_add_iv()
62 *((LTC_FAST_TYPE*)(&gcm->X[y])) ^= *((LTC_FAST_TYPE*)(&IV[x + y])); in gcm_add_iv()
67 IV += x; in gcm_add_iv()
73 gcm->buf[gcm->buflen++] = *IV++; in gcm_add_iv()

12345678