one block CBC encryption

This commit is contained in:
orignal 2014-05-14 14:54:01 -04:00
parent 99c5331cad
commit 0a53555ac7
3 changed files with 46 additions and 2 deletions

2
aes.h
View file

@ -111,6 +111,7 @@ namespace crypto
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, uint8_t * out); // one block
private:
@ -130,6 +131,7 @@ namespace crypto
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, uint8_t * out); // one block
private: