diff options
author | Torfinn Berset <torfinn@bloom-life.com> | 2019-02-21 09:31:53 +0100 |
---|---|---|
committer | Torfinn Berset <torfinn@bloom-life.com> | 2019-02-21 09:31:53 +0100 |
commit | 7a35660a0058449ef64e67c2de5e1dc3b82f2d53 (patch) | |
tree | 9af2312d805b8623c1275dff325b6500d7ddbe81 /aes.h | |
parent | Add check for AES key-size option (diff) | |
download | tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.tar tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.tar.gz tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.tar.bz2 tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.tar.lz tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.tar.xz tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.tar.zst tiny-AES-c-7a35660a0058449ef64e67c2de5e1dc3b82f2d53.zip |
Diffstat (limited to '')
-rw-r--r-- | aes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,8 +58,8 @@ void AES_ctx_set_iv(struct AES_ctx* ctx, const uint8_t* iv); // buffer size is exactly AES_BLOCKLEN bytes; // you need only AES_init_ctx as IV is not used in ECB // NB: ECB is considered insecure for most uses -void AES_ECB_encrypt(struct AES_ctx* ctx, uint8_t* buf); -void AES_ECB_decrypt(struct AES_ctx* ctx, uint8_t* buf); +void AES_ECB_encrypt(const struct AES_ctx* ctx, uint8_t* buf); +void AES_ECB_decrypt(const struct AES_ctx* ctx, uint8_t* buf); #endif // #if defined(ECB) && (ECB == !) |