aes key expansion

This commit is contained in:
orignal 2014-05-07 14:48:37 -04:00
parent 6bf5d98c4d
commit 527ac413b1
2 changed files with 85 additions and 0 deletions

15
aes.h
View file

@ -15,6 +15,21 @@ namespace crypto
uint64_t ll[2];
};
#ifdef __x86_64__
// AES-NI assumed
class ECNEncryptionAESNI
{
public:
void SetKey (const uint8_t * key);
private:
uint32_t m_KeySchedule[4*(14+1)]; // 14 rounds for AES-256
};
#endif
class CBCEncryption
{
public: