Unverified Commit a525e5db authored by kokke's avatar kokke Committed by GitHub
Browse files

Update aes.c

parent 6018b3f4
...@@ -464,13 +464,13 @@ static void InvCipher(state_t* state,uint8_t* RoundKey) ...@@ -464,13 +464,13 @@ static void InvCipher(state_t* state,uint8_t* RoundKey)
#if defined(ECB) && (ECB == 1) #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. // The next function call encrypts the PlainText with the Key using AES algorithm.
Cipher((state_t*)buf, ctx->RoundKey); 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. // The next function call decrypts the PlainText with the Key using AES algorithm.
InvCipher((state_t*)buf, ctx->RoundKey); InvCipher((state_t*)buf, ctx->RoundKey);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment