RIJNDAEL_BLOCKSIZE
cnow = (u_char *) (src+len-RIJNDAEL_BLOCKSIZE);
plain = dest+len-RIJNDAEL_BLOCKSIZE;
memcpy(buf, cnow, RIJNDAEL_BLOCKSIZE);
for (i = blocks; i > 0; i--, cnow-=RIJNDAEL_BLOCKSIZE,
plain-=RIJNDAEL_BLOCKSIZE) {
ivp = (i == 1) ? c->r_iv : cnow-RIJNDAEL_BLOCKSIZE;
for (j = 0; j < RIJNDAEL_BLOCKSIZE; j++)
memcpy(c->r_iv, buf, RIJNDAEL_BLOCKSIZE);
rijndal_cbc.block_size = RIJNDAEL_BLOCKSIZE;
rijndal_cbc.iv_len = RIJNDAEL_BLOCKSIZE;
u_char r_iv[RIJNDAEL_BLOCKSIZE];
memcpy(c->r_iv, iv, RIJNDAEL_BLOCKSIZE);
u_char buf[RIJNDAEL_BLOCKSIZE];
int i, j, blocks = len / RIJNDAEL_BLOCKSIZE;
if (len % RIJNDAEL_BLOCKSIZE)
for (i = 0; i < blocks; i++, plain+=RIJNDAEL_BLOCKSIZE,
cnow+=RIJNDAEL_BLOCKSIZE) {
for (j = 0; j < RIJNDAEL_BLOCKSIZE; j++)
memcpy(c->r_iv, cprev, RIJNDAEL_BLOCKSIZE);