summaryrefslogtreecommitdiffstats
path: root/aes.h
diff options
context:
space:
mode:
authorTorfinn Berset <torfinn@bloom-life.com>2019-02-21 09:31:53 +0100
committerTorfinn Berset <torfinn@bloom-life.com>2019-02-21 09:31:53 +0100
commit7a35660a0058449ef64e67c2de5e1dc3b82f2d53 (patch)
tree9af2312d805b8623c1275dff325b6500d7ddbe81 /aes.h
parentAdd check for AES key-size option (diff)
downloadtiny-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/aes.h b/aes.h
index 1daab47..87f1471 100644
--- a/aes.h
+++ b/aes.h
@@ -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 == !)