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
if(i2p::cpu::aesni) if(i2p::cpu::aesni)
{ {
#ifdef AESNI #ifdef AESNI
ExpandKey (key); // expand encryption key first ExpandKey (key);
// 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"
);
#else #else
AES_set_encrypt_key (key, 256, &m_Key); AES_set_encrypt_key (key, 256, &m_Key);
#endif #endif

Loading…
Cancel
Save