mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user