Browse Source

don

pull/1115/head
Jeff Becker 7 years ago
parent
commit
a618a01b1e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  1. 20
      libi2pd/Crypto.cpp

20
libi2pd/Crypto.cpp

@ -728,25 +728,7 @@ namespace crypto @@ -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

Loading…
Cancel
Save