diff --git a/aes.cpp b/aes.cpp index 7c2ff36c..1e75b76d 100644 --- a/aes.cpp +++ b/aes.cpp @@ -33,7 +33,7 @@ namespace crypto "add $32, %%rcx \n" - void ECNCryptoAESNI::SetKey (const uint8_t * key) + void ECBCryptoAESNI::SetKey (const uint8_t * key) { __asm__ ( @@ -72,7 +72,7 @@ namespace crypto ); } - void ECNCryptoAESNI::Encrypt (const ChipherBlock * in, ChipherBlock * out) + void ECBCryptoAESNI::Encrypt (const ChipherBlock * in, ChipherBlock * out) { __asm__ ( @@ -99,7 +99,7 @@ namespace crypto ); } - void ECNCryptoAESNI::Decrypt (const ChipherBlock * in, ChipherBlock * out) + void ECBCryptoAESNI::Decrypt (const ChipherBlock * in, ChipherBlock * out) { __asm__ ( diff --git a/aes.h b/aes.h index 24533eeb..2fbe5b0d 100644 --- a/aes.h +++ b/aes.h @@ -17,7 +17,7 @@ namespace crypto #ifdef __x86_64__ // AES-NI assumed - class ECNCryptoAESNI + class ECBCryptoAESNI { public: