| 99 | } |
| 100 | |
| 101 | static void AesDecrypt(BYTE* dst, const BYTE* src, int len, const EmeCryptContext *eme_context) |
| 102 | { |
| 103 | int numBlocks = len / 16; |
| 104 | |
| 105 | for (int i = 0; i < numBlocks; i++) { |
| 106 | eme_context->m_aes_ctx.decrypt(src + i * 16, dst + i * 16); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | // aesTransform - encrypt or decrypt (according to "direction") using block |
| 111 | // cipher "bc" (typically AES) |