explicit AESNI flag

This commit is contained in:
orignal 2014-06-02 10:05:04 -04:00
parent 6518727270
commit a728d9db5b
3 changed files with 16 additions and 12 deletions

7
aes.h
View file

@ -21,8 +21,7 @@ namespace crypto
}
};
#ifdef __x86_64__
// AES-NI assumed
#ifdef AESNI
class ECBCryptoAESNI
{
public:
@ -154,7 +153,7 @@ namespace crypto
private:
ECBEncryption m_IVEncryption;
#ifdef __x86_64__
#ifdef AESNI
ECBEncryption m_LayerEncryption;
#else
CBCEncryption m_LayerEncryption;
@ -176,7 +175,7 @@ namespace crypto
private:
ECBDecryption m_IVDecryption;
#ifdef __x86_64__
#ifdef AESNI
ECBDecryption m_LayerDecryption;
#else
CBCDecryption m_LayerDecryption;