CBC encryption through AES-NI

This commit is contained in:
orignal 2014-05-12 22:51:59 -04:00
parent 3eb4cc9eed
commit e9fc2492dd
2 changed files with 67 additions and 37 deletions

4
aes.h
View file

@ -28,7 +28,8 @@ namespace crypto
public:
ECBCryptoAESNI ();
uint8_t * GetKeySchedule () { return m_KeySchedule; };
protected:
void ExpandKey (const uint8_t * key);
@ -114,6 +115,7 @@ namespace crypto
private:
ChipherBlock m_LastBlock;
ECBEncryption m_ECBEncryption;
};