mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 04:07:49 +02:00
CBC encryption through AES-NI
This commit is contained in:
parent
3eb4cc9eed
commit
e9fc2492dd
2 changed files with 67 additions and 37 deletions
4
aes.h
4
aes.h
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue