Lines Matching refs:RIJNDAEL_BLOCKSIZE
42 #define RIJNDAEL_BLOCKSIZE 16
46 u_char r_iv[RIJNDAEL_BLOCKSIZE];
66 memcpy(c->r_iv, iv, RIJNDAEL_BLOCKSIZE);
75 u_char buf[RIJNDAEL_BLOCKSIZE];
77 int i, j, blocks = len / RIJNDAEL_BLOCKSIZE;
81 if (len % RIJNDAEL_BLOCKSIZE)
91 for (i = 0; i < blocks; i++, plain+=RIJNDAEL_BLOCKSIZE,
92 cnow+=RIJNDAEL_BLOCKSIZE) {
93 for (j = 0; j < RIJNDAEL_BLOCKSIZE; j++)
98 memcpy(c->r_iv, cprev, RIJNDAEL_BLOCKSIZE);
100 cnow = (u_char *) (src+len-RIJNDAEL_BLOCKSIZE);
101 plain = dest+len-RIJNDAEL_BLOCKSIZE;
103 memcpy(buf, cnow, RIJNDAEL_BLOCKSIZE);
104 for (i = blocks; i > 0; i--, cnow-=RIJNDAEL_BLOCKSIZE,
105 plain-=RIJNDAEL_BLOCKSIZE) {
107 ivp = (i == 1) ? c->r_iv : cnow-RIJNDAEL_BLOCKSIZE;
108 for (j = 0; j < RIJNDAEL_BLOCKSIZE; j++)
111 memcpy(c->r_iv, buf, RIJNDAEL_BLOCKSIZE);
149 rijndal_cbc.block_size = RIJNDAEL_BLOCKSIZE;
150 rijndal_cbc.iv_len = RIJNDAEL_BLOCKSIZE;