diff options
author | Nick Knudson <nickaknudson@gmail.com> | 2018-01-31 22:31:15 +0100 |
---|---|---|
committer | Nick Knudson <nickaknudson@gmail.com> | 2018-01-31 22:31:15 +0100 |
commit | 084974280327360fb5b22f1281160ebe63af6f2a (patch) | |
tree | c39738ce980eeb48adae6f2afcfc4195451e66c0 | |
parent | Update README.md (diff) | |
download | tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.tar tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.tar.gz tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.tar.bz2 tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.tar.lz tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.tar.xz tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.tar.zst tiny-AES-c-084974280327360fb5b22f1281160ebe63af6f2a.zip |
-rw-r--r-- | aes.c | 2 | ||||
-rw-r--r-- | aes.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -226,7 +226,7 @@ void AES_init_ctx(struct AES_ctx* ctx, const uint8_t* key) { KeyExpansion(ctx->RoundKey, key); } -#if defined(CBC) && (CBC == 1) +#if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1)) void AES_init_ctx_iv(struct AES_ctx* ctx, const uint8_t* key, const uint8_t* iv) { KeyExpansion(ctx->RoundKey, key); @@ -49,7 +49,7 @@ struct AES_ctx }; void AES_init_ctx(struct AES_ctx* ctx, const uint8_t* key); -#if defined(CBC) && (CBC == 1) +#if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1)) void AES_init_ctx_iv(struct AES_ctx* ctx, const uint8_t* key, const uint8_t* iv); void AES_ctx_set_iv(struct AES_ctx* ctx, const uint8_t* iv); #endif |