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

Update aes.h

parent 8526d395
...@@ -41,11 +41,12 @@ ...@@ -41,11 +41,12 @@
#define AES_keyExpSize 176 #define AES_keyExpSize 176
#endif #endif
struct AES_ctx { struct AES_ctx
{
uint8_t RoundKey[AES_keyExpSize]; uint8_t RoundKey[AES_keyExpSize];
#if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1)) #if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1))
uint8_t Iv[AES_BLOCKLEN]; uint8_t Iv[AES_BLOCKLEN];
#endif #endif
}; };
void AES_init_ctx(struct AES_ctx* ctx, const uint8_t* key); void AES_init_ctx(struct AES_ctx* ctx, const uint8_t* key);
......
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