Lines Matching refs:outBuffer
94 BYTE *input, int inputLen, BYTE *outBuffer) { in rijndael_blockEncrypt() argument
112 rijndaelEncrypt(input, outBuffer, key->keySched, key->ROUNDS); in rijndael_blockEncrypt()
114 outBuffer += 16; in rijndael_blockEncrypt()
132 rijndaelEncrypt(block, outBuffer, key->keySched, key->ROUNDS); in rijndael_blockEncrypt()
136 bcopy(outBuffer, block, 16); in rijndael_blockEncrypt()
143 ((word32*)block)[0] = ((word32*)outBuffer)[0] ^ ((word32*)input)[0]; in rijndael_blockEncrypt()
144 ((word32*)block)[1] = ((word32*)outBuffer)[1] ^ ((word32*)input)[1]; in rijndael_blockEncrypt()
145 ((word32*)block)[2] = ((word32*)outBuffer)[2] ^ ((word32*)input)[2]; in rijndael_blockEncrypt()
146 ((word32*)block)[3] = ((word32*)outBuffer)[3] ^ ((word32*)input)[3]; in rijndael_blockEncrypt()
148 outBuffer += 16; in rijndael_blockEncrypt()
149 rijndaelEncrypt(block, outBuffer, key->keySched, key->ROUNDS); in rijndael_blockEncrypt()
170 outBuffer[k/8] ^= (block[0] & 0x80) >> (k & 7); in rijndael_blockEncrypt()
186 iv[3][3] = (iv[3][3] << 1) | ((outBuffer[k/8] >> (7-(k&7))) & 1); in rijndael_blockEncrypt()
208 BYTE *input, int inputOctets, BYTE *outBuffer) { in rijndael_padEncrypt() argument
226 rijndaelEncrypt(input, outBuffer, key->keySched, key->ROUNDS); in rijndael_padEncrypt()
228 outBuffer += 16; in rijndael_padEncrypt()
236 rijndaelEncrypt(block, outBuffer, key->keySched, key->ROUNDS); in rijndael_padEncrypt()
246 rijndaelEncrypt(block, outBuffer, key->keySched, key->ROUNDS); in rijndael_padEncrypt()
247 iv = outBuffer; in rijndael_padEncrypt()
249 outBuffer += 16; in rijndael_padEncrypt()
260 rijndaelEncrypt(block, outBuffer, key->keySched, key->ROUNDS); in rijndael_padEncrypt()
271 BYTE *input, int inputLen, BYTE *outBuffer) { in rijndael_blockDecrypt() argument
289 rijndaelDecrypt(input, outBuffer, key->keySched, key->ROUNDS); in rijndael_blockDecrypt()
291 outBuffer += 16; in rijndael_blockDecrypt()
312 bcopy(block, outBuffer, 16); in rijndael_blockDecrypt()
314 *((word32*)iv[0]) = ((word32*)input)[0]; ((word32*)outBuffer)[0] = ((word32*)block)[0]; in rijndael_blockDecrypt()
315 *((word32*)iv[1]) = ((word32*)input)[1]; ((word32*)outBuffer)[1] = ((word32*)block)[1]; in rijndael_blockDecrypt()
316 *((word32*)iv[2]) = ((word32*)input)[2]; ((word32*)outBuffer)[2] = ((word32*)block)[2]; in rijndael_blockDecrypt()
317 *((word32*)iv[3]) = ((word32*)input)[3]; ((word32*)outBuffer)[3] = ((word32*)block)[3]; in rijndael_blockDecrypt()
320 outBuffer += 16; in rijndael_blockDecrypt()
356 outBuffer[k/8] ^= (block[0] & 0x80) >> (k & 7); in rijndael_blockDecrypt()
369 BYTE *input, int inputOctets, BYTE *outBuffer) { in rijndael_padDecrypt() argument
392 rijndaelDecrypt(input, outBuffer, key->keySched, key->ROUNDS); in rijndael_padDecrypt()
394 outBuffer += 16; in rijndael_padDecrypt()
407 bcopy(block, outBuffer, 16 - padLen); in rijndael_padDecrypt()
420 bcopy(block, outBuffer, 16); in rijndael_padDecrypt()
422 outBuffer += 16; in rijndael_padDecrypt()
439 bcopy(block, outBuffer, 16 - padLen); in rijndael_padDecrypt()
461 BYTE *input, int inputLen, BYTE *outBuffer, int rounds) { in rijndael_cipherUpdateRounds() argument
489 *((word32*)(outBuffer+4*j)) = *((word32*)block[j]); in rijndael_cipherUpdateRounds()