mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-16 02:56:52 +02:00
explicit AESNI flag
This commit is contained in:
parent
6518727270
commit
a728d9db5b
3 changed files with 16 additions and 12 deletions
7
aes.h
7
aes.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue