aboutsummaryrefslogtreecommitdiff
path: root/aes.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-08 11:56:47 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-08 11:56:47 +0200
commitf49e2058ad2c6d7eedded27fa41bd30405db5aaa (patch)
tree30dc9842617c58ffc9313c8a9c1b254fdc1e8176 /aes.h
parent2fe3a5f06bf4423fbb881238b30f6f592b5c0127 (diff)
Make parameter order a bit more consistent
Diffstat (limited to 'aes.h')
-rw-r--r--aes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/aes.h b/aes.h
index b2064f2..0532a62 100644
--- a/aes.h
+++ b/aes.h
@@ -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();