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