tunnel encryption using AES-NI

This commit is contained in:
orignal 2014-05-15 12:59:07 -04:00
parent 6d1d816153
commit b4b3ba16cc
2 changed files with 31 additions and 0 deletions

4
aes.h
View file

@ -154,7 +154,11 @@ namespace crypto
private:
ECBEncryption m_IVEncryption;
#ifdef __x86_64__
ECBEncryption m_LayerEncryption;
#else
CBCEncryption m_LayerEncryption;
#endif
};
class TunnelDecryption // with double IV encryption