summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authorzhangzhilei <zhangzhilei@360.cn>2023-03-12 15:39:34 +0800
committerPauli <pauli@openssl.org>2023-03-15 08:21:52 +1100
commit6b08b786ccba8fb84759a487cca439566a8678c2 (patch)
treef88f06eb573c2fe80c1cd4e26ac0d6f0216b9cd4 /providers
parent93b0a1ea614f9ce3931373fd3d1d1af04795e6d7 (diff)
downloadopenssl-new-6b08b786ccba8fb84759a487cca439566a8678c2.tar.gz
Remove duplicate code
since this code is also under GCM_HW_SET_KEY_CTR_FN macro Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/20491)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/ciphers/cipher_aes_gcm_hw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/providers/implementations/ciphers/cipher_aes_gcm_hw.c b/providers/implementations/ciphers/cipher_aes_gcm_hw.c
index 145b207c47..c7a98cdfbf 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;
}