diff options
author | kokke <spam@rowdy.dk> | 2018-05-29 13:42:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 13:42:26 +0200 |
commit | a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34 (patch) | |
tree | 7c5f25420e502804a01e2a2e5152af4f9d7fd222 /aes.c | |
parent | Update aes.h (diff) | |
download | tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.tar tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.tar.gz tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.tar.bz2 tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.tar.lz tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.tar.xz tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.tar.zst tiny-AES-c-a525e5dbc9bf908fa03cba605cd8fef3e8a3ff34.zip |
Diffstat (limited to 'aes.c')
-rw-r--r-- | aes.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |