decrypt single AES block (16 bytes)
| 119 | |
| 120 | // decrypt single AES block (16 bytes) |
| 121 | void AES::decrypt(const unsigned char *cipher, unsigned char *plain) const |
| 122 | { |
| 123 | #ifdef USE_AES_NI |
| 124 | if (m_use_aes_ni) { |
| 125 | aesni_decrypt(cipher, plain, m_key_decrypt); |
| 126 | } else |
| 127 | #endif |
| 128 | { |
| 129 | // low-level AES functions are deprecated in Openssl 3.0 |
| 130 | #pragma warning( push ) |
| 131 | #pragma warning(disable : 4996) |
| 132 | AES_decrypt(cipher, plain, m_key_decrypt); |
| 133 | #pragma warning( pop ) |
| 134 | } |
| 135 | } |
| 136 |