Lines Matching refs:IV
79 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()
158 *((word32*)iv[0]) = *((word32*)(cipher->IV )); in rijndael_blockEncrypt()
159 *((word32*)iv[1]) = *((word32*)(cipher->IV+ 4)); in rijndael_blockEncrypt()
160 *((word32*)iv[2]) = *((word32*)(cipher->IV+ 8)); in rijndael_blockEncrypt()
161 *((word32*)iv[3]) = *((word32*)(cipher->IV+12)); in rijndael_blockEncrypt()
240 iv = cipher->IV; in rijndael_padEncrypt()
297 bcopy(cipher->IV, iv, 16); in rijndael_blockDecrypt()
299 *((word32*)iv[0]) = *((word32*)(cipher->IV )); in rijndael_blockDecrypt()
300 *((word32*)iv[1]) = *((word32*)(cipher->IV+ 4)); in rijndael_blockDecrypt()
301 *((word32*)iv[2]) = *((word32*)(cipher->IV+ 8)); in rijndael_blockDecrypt()
302 *((word32*)iv[3]) = *((word32*)(cipher->IV+12)); in rijndael_blockDecrypt()
326 bcopy(cipher->IV, iv, 16); in rijndael_blockDecrypt()
328 *((word32*)iv[0]) = *((word32*)(cipher->IV)); in rijndael_blockDecrypt()
329 *((word32*)iv[1]) = *((word32*)(cipher->IV+ 4)); in rijndael_blockDecrypt()
330 *((word32*)iv[2]) = *((word32*)(cipher->IV+ 8)); in rijndael_blockDecrypt()
331 *((word32*)iv[3]) = *((word32*)(cipher->IV+12)); in rijndael_blockDecrypt()
411 bcopy(cipher->IV, iv, 16); in rijndael_padDecrypt()