From: zhangzhilei Date: Sun, 12 Mar 2023 07:39:34 +0000 (+0800) Subject: Remove duplicate code X-Git-Tag: openssl-3.2.0-alpha1~1179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b08b786ccba8fb84759a487cca439566a8678c2;p=thirdparty%2Fopenssl.git Remove duplicate code since this code is also under GCM_HW_SET_KEY_CTR_FN macro Reviewed-by: Tomas Mraz Reviewed-by: Tom Cosgrove (Merged from https://github.com/openssl/openssl/pull/20491) --- diff --git a/providers/implementations/ciphers/cipher_aes_gcm_hw.c b/providers/implementations/ciphers/cipher_aes_gcm_hw.c index 145b207c472..c7a98cdfbfb 100644 --- a/providers/implementations/ciphers/cipher_aes_gcm_hw.c +++ b/providers/implementations/ciphers/cipher_aes_gcm_hw.c @@ -55,7 +55,6 @@ static int aes_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key, GCM_HW_SET_KEY_CTR_FN(ks, AES_set_encrypt_key, AES_encrypt, NULL); # endif /* AES_CTR_ASM */ } - ctx->key_set = 1; return 1; }