CTR-only mode still needs functions to update counter (iv)

This commit is contained in:
Nick Knudson
2018-01-31 16:31:15 -05:00
parent ddd84d3787
commit 0849742803
2 changed files with 2 additions and 2 deletions

2
aes.h
View File

@@ -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