diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-05-10 19:57:43 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-05-13 14:27:17 +0200 |
commit | bea3f30d46c7611db26ebeb6143cd0ef96d91695 (patch) | |
tree | 8237ff11c89d6bcdfc83521e57b49695a80fe548 /include | |
parent | a583976e78298141e074c2a6b3d6c7c842642781 (diff) | |
download | mariadb-git-bea3f30d46c7611db26ebeb6143cd0ef96d91695.tar.gz |
move AES_CTR to its own greatly simplified function
* don't use do_crypt() for stream cipher AES_CTR
* rename do_crypt to block_crypt to emphasize its specialization
Diffstat (limited to 'include')
-rw-r--r-- | include/my_crypt.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/my_crypt.h b/include/my_crypt.h index b760af75bfa..bfde4d3c0f7 100644 --- a/include/my_crypt.h +++ b/include/my_crypt.h @@ -41,14 +41,9 @@ extern "C" { int my_aes_encrypt_ctr(const uchar* source, uint source_length, uchar* dest, uint* dest_length, const uchar* key, uint key_length, - const uchar* iv, uint iv_length, - int no_padding); + const uchar* iv, uint iv_length); -int my_aes_decrypt_ctr(const uchar* source, uint source_length, - uchar* dest, uint* dest_length, - const uchar* key, uint key_length, - const uchar* iv, uint iv_length, - int no_padding); +#define my_aes_decrypt_ctr my_aes_encrypt_ctr #endif |