Lines Matching refs:dOut
72 // This function performs AES encryption in CBC chain mode. The input dIn buffer is encrypted into dOut.
83 BYTE *dOut, // OUT:
97 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
119 *dOut++ = *pIv++;
127 // This function performs AES decryption in CBC chain mode. The input dIn buffer is decrypted into dOut.
138 BYTE *dOut, // OUT: the decrypted data
154 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
174 AES_decrypt(tmp, dOut, &AesKey);
179 *dOut++ ^= *pIv;
189 // This function performs AES encryption in CFB chain mode. The dOut buffer receives the values
199 BYTE *dOut, // OUT: the encrypted
212 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
229 *dOut++ = *pIv++ ^= *dIn++;
242 // This function performs AES decrypt in CFB chain mode. The dOut buffer receives the values decrypted
253 BYTE *dOut, // OUT: the decrypted data
268 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
285 *dOut++ = *pT++ ^ (*pIv++ = *dIn++);
300 // dOut. The input iv buffer is assumed to have a size equal to the AES block size (16 bytes). The iv will be
309 BYTE *dOut, // OUT: the encrypted data
323 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
342 *dOut++ = *dIn++ ^ *pT++;
357 BYTE *dOut, // OUT: encrypted data
367 pAssert(dOut != NULL && key != NULL && dIn != NULL);
381 AES_encrypt(dIn, dOut, &AesKey);
383 dOut = &dOut[16];
392 // into dOut.
400 BYTE *dOut, // OUT: the clear text data
410 pAssert(dOut != NULL && key != NULL && dIn != NULL);
424 AES_decrypt(dIn, dOut, &AesKey);
426 dOut = &dOut[16];
448 BYTE *dOut, // OUT: the encrypted/decrypted data
462 dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
470 // This is written so that dIn and dOut may be the same
475 // XOR the encrypted IV into dIn to create the cipher text (dOut)
478 *dOut++ = (*pIv++ ^ *dIn++);
489 // This function performs SM4 encryption in CBC chain mode. The input dIn buffer is encrypted into dOut.
500 BYTE *dOut, // OUT:
514 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
536 *dOut++ = *pIv++;
544 // This function performs SM4 decryption in CBC chain mode. The input dIn buffer is decrypted into dOut.
555 BYTE *dOut, // OUT: the decrypted data
571 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
590 SM4_decrypt(tmp, dOut, &Sm4Key);
595 *dOut++ ^= *pIv;
606 // This function performs SM4 encryption in CFB chain mode. The dOut buffer receives the values
616 BYTE *dOut, // OUT: the encrypted
629 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
646 *dOut++ = *pIv++ ^= *dIn++;
654 // This function performs SM4 decrypt in CFB chain mode. The dOut buffer receives the values decrypted
666 BYTE *dOut, // OUT: the decrypted data
681 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
698 *dOut++ = *pT++ ^ (*pIv++ = *dIn++);
713 // dOut. The input iv buffer is assumed to have a size equal to the SM4 block size (16 bytes). The iv will be
722 BYTE *dOut, // OUT: the encrypted data
736 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
755 *dOut++ = *dIn++ ^ *pT++;
770 BYTE *dOut, // OUT: encrypted data
780 pAssert(dOut != NULL && key != NULL && dIn != NULL);
794 SM4_encrypt(dIn, dOut, &Sm4Key);
796 dOut = &dOut[16];
805 // into dOut.
816 BYTE *dOut, // OUT: the clear text data
826 pAssert(dOut != NULL && key != NULL && dIn != NULL);
840 SM4_decrypt(dIn, dOut, &Sm4Key);
842 dOut = &dOut[16];
861 BYTE *dOut, // OUT: the encrypted/decrypted data
875 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL);
883 // This is written so that dIn and dOut may be the same
888 // XOR the encrypted IV into dIn to create the cipher text (dOut)
891 *dOut++ = (*pIv++ ^ *dIn++);