|
|
@ -109,7 +109,7 @@ namespace crypto |
|
|
|
void SetIV (const uint8_t * iv) { memcpy (m_LastBlock.buf, iv, 16); }; // 16 bytes
|
|
|
|
void SetIV (const uint8_t * iv) { memcpy (m_LastBlock.buf, iv, 16); }; // 16 bytes
|
|
|
|
|
|
|
|
|
|
|
|
void Encrypt (int numBlocks, const ChipherBlock * in, ChipherBlock * out); |
|
|
|
void Encrypt (int numBlocks, const ChipherBlock * in, ChipherBlock * out); |
|
|
|
bool Encrypt (const uint8_t * in, std::size_t len, uint8_t * out); |
|
|
|
void Encrypt (const uint8_t * in, std::size_t len, uint8_t * out); |
|
|
|
void Encrypt (const uint8_t * in, uint8_t * out); // one block
|
|
|
|
void Encrypt (const uint8_t * in, uint8_t * out); // one block
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
@ -129,7 +129,7 @@ namespace crypto |
|
|
|
void SetIV (const uint8_t * iv) { memcpy (m_IV.buf, iv, 16); }; // 16 bytes
|
|
|
|
void SetIV (const uint8_t * iv) { memcpy (m_IV.buf, iv, 16); }; // 16 bytes
|
|
|
|
|
|
|
|
|
|
|
|
void Decrypt (int numBlocks, const ChipherBlock * in, ChipherBlock * out); |
|
|
|
void Decrypt (int numBlocks, const ChipherBlock * in, ChipherBlock * out); |
|
|
|
bool Decrypt (const uint8_t * in, std::size_t len, uint8_t * out); |
|
|
|
void Decrypt (const uint8_t * in, std::size_t len, uint8_t * out); |
|
|
|
void Decrypt (const uint8_t * in, uint8_t * out); // one block
|
|
|
|
void Decrypt (const uint8_t * in, uint8_t * out); // one block
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|