Skip to content

Commit 8309c37

Browse files
committed
Add flag EVP_CIPH_ALWAYS_CALL_INIT to AES-CBC implementation.
This resolves ZD 12683.
1 parent 71e352f commit 8309c37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/we_aes_block.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ static int we_aes_cbc_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
297297
*/
298298
#define AES_CBC_FLAGS \
299299
(EVP_CIPH_FLAG_DEFAULT_ASN1 | \
300-
EVP_CIPH_CBC_MODE)
300+
EVP_CIPH_CBC_MODE | \
301+
EVP_CIPH_ALWAYS_CALL_INIT)
301302

302303
/** AES128-CBC EVP cipher method. */
303304
EVP_CIPHER* we_aes128_cbc_ciph = NULL;

0 commit comments

Comments
 (0)