From de61dba39059825bd9dfe9dad1532d6ef6c110d4 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Fri, 19 Jan 2024 20:47:04 +0100 Subject: [PATCH] Fix typos CLA: trivial Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz Reviewed-by: Tom Cosgrove Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/23345) --- crypto/dh/dh_check.c | 2 +- crypto/dsa/dsa_check.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/dh/dh_check.c b/crypto/dh/dh_check.c index e20eb62081c..cc997bd8bde 100644 --- a/crypto/dh/dh_check.c +++ b/crypto/dh/dh_check.c @@ -351,7 +351,7 @@ int ossl_dh_check_pairwise(const DH *dh) /* recalculate the public key = (g ^ priv) mod p */ if (!ossl_dh_generate_public_key(ctx, dh, dh->priv_key, pub_key)) goto err; - /* check it matches the existing pubic_key */ + /* check it matches the existing public_key */ ret = BN_cmp(pub_key, dh->pub_key) == 0; err: BN_free(pub_key); diff --git a/crypto/dsa/dsa_check.c b/crypto/dsa/dsa_check.c index ec3534d35c2..1d42bf77ca8 100644 --- a/crypto/dsa/dsa_check.c +++ b/crypto/dsa/dsa_check.c @@ -88,7 +88,7 @@ int ossl_dsa_check_pairwise(const DSA *dsa) /* recalculate the public key = (g ^ priv) mod p */ if (!ossl_dsa_generate_public_key(ctx, dsa, dsa->priv_key, pub_key)) goto err; - /* check it matches the existing pubic_key */ + /* check it matches the existing public_key */ ret = BN_cmp(pub_key, dsa->pub_key) == 0; err: BN_free(pub_key); -- 2.47.2