From a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34 Mon Sep 17 00:00:00 2001 From: kokke Date: Tue, 29 May 2018 13:42:26 +0200 Subject: Update aes.c --- aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aes.c b/aes.c index e68c6b0..e275ed2 100644 --- a/aes.c +++ b/aes.c @@ -464,13 +464,13 @@ static void InvCipher(state_t* state,uint8_t* RoundKey) #if defined(ECB) && (ECB == 1) -void AES_ECB_encrypt(struct AES_ctx *ctx,const uint8_t* buf) +void AES_ECB_encrypt(struct AES_ctx *ctx, uint8_t* buf) { // The next function call encrypts the PlainText with the Key using AES algorithm. Cipher((state_t*)buf, ctx->RoundKey); } -void AES_ECB_decrypt(struct AES_ctx* ctx,const uint8_t* buf) +void AES_ECB_decrypt(struct AES_ctx* ctx, uint8_t* buf) { // The next function call decrypts the PlainText with the Key using AES algorithm. InvCipher((state_t*)buf, ctx->RoundKey); -- cgit v1.2.3