diff options
Diffstat (limited to 'aes.h')
-rw-r--r-- | aes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,10 +10,10 @@ namespace AES{ AES_256_CBC, }; - std::string encrypt(const std::string &key,const std::string &data,Algorithm algo); + std::string encrypt(const std::string &data,const std::string &key,Algorithm algo); //throws invalid_argument for an invalid ciphertext (length not a multiple of block size, or padding malformed) - std::string decrypt(const std::string &key,const std::string &data,Algorithm algo); + std::string decrypt(const std::string &data,const std::string &key,Algorithm algo); void test(); |