Fix typos
authorJakub Wilk <jwilk@jwilk.net>
Fri, 19 Jan 2024 19:47:04 +0000 (20:47 +0100)
committerHugo Landau <hlandau@openssl.org>
Tue, 23 Jan 2024 14:31:03 +0000 (14:31 +0000)
CLA: trivial

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23345)

crypto/dh/dh_check.c
crypto/dsa/dsa_check.c

index e20eb62081c5ee4895c330465f89c54a4da036d2..cc997bd8bde211a791cfb9fb3bd6aa9a57aa369b 100644 (file)
@@ -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);
index ec3534d35c2c6c0c1b988b4ace6de0b13886895e..1d42bf77ca8ead4b19e20b809527397675b427b7 100644 (file)
@@ -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);