Skip to content

Commit

Permalink
AES-NI encrypt and decrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed May 7, 2014
1 parent 236c606 commit 54e042b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions aes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__
(
Expand Down Expand Up @@ -72,7 +72,7 @@ namespace crypto
);
}

void ECNCryptoAESNI::Encrypt (const ChipherBlock * in, ChipherBlock * out)
void ECBCryptoAESNI::Encrypt (const ChipherBlock * in, ChipherBlock * out)
{
__asm__
(
Expand All @@ -99,7 +99,7 @@ namespace crypto
);
}

void ECNCryptoAESNI::Decrypt (const ChipherBlock * in, ChipherBlock * out)
void ECBCryptoAESNI::Decrypt (const ChipherBlock * in, ChipherBlock * out)
{
__asm__
(
Expand Down
2 changes: 1 addition & 1 deletion aes.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace crypto

#ifdef __x86_64__
// AES-NI assumed
class ECNCryptoAESNI
class ECBCryptoAESNI
{
public:

Expand Down

0 comments on commit 54e042b

Please sign in to comment.