This commit is contained in:
Jeff Becker 2018-02-16 11:26:07 -05:00
parent 7e60069968
commit a618a01b1e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -728,25 +728,7 @@ namespace crypto
if(i2p::cpu::aesni)
{
#ifdef AESNI
ExpandKey (key); // expand encryption key first
// then invert it using aesimc
__asm__
(
CallAESIMC(16)
CallAESIMC(32)
CallAESIMC(48)
CallAESIMC(64)
CallAESIMC(80)
CallAESIMC(96)
CallAESIMC(112)
CallAESIMC(128)
CallAESIMC(144)
CallAESIMC(160)
CallAESIMC(176)
CallAESIMC(192)
CallAESIMC(208)
: : [shed]"r"(GetKeySchedule ()) : "%xmm0", "memory"
);
ExpandKey (key);
#else
AES_set_encrypt_key (key, 256, &m_Key);
#endif