encrypt/decrypt same buffer
This commit is contained in:
2
aes.h
2
aes.h
@@ -25,6 +25,7 @@ namespace crypto
|
||||
void SetIV (uint8_t * iv) { memcpy (m_LastBlock.buf, iv, 16); }; // 16 bytes
|
||||
|
||||
void Encrypt (int numBlocks, const ChipherBlock * in, ChipherBlock * out);
|
||||
bool Encrypt (const uint8_t * in, std::size_t len, uint8_t * out);
|
||||
|
||||
private:
|
||||
|
||||
@@ -42,6 +43,7 @@ namespace crypto
|
||||
void SetIV (uint8_t * iv) { memcpy (m_IV.buf, iv, 16); }; // 16 bytes
|
||||
|
||||
void Decrypt (int numBlocks, const ChipherBlock * in, ChipherBlock * out);
|
||||
bool Decrypt (const uint8_t * in, std::size_t len, uint8_t * out);
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user