summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
authorjmc <>2022-12-26 07:18:53 +0000
committerjmc <>2022-12-26 07:18:53 +0000
commit2eb7e5ff6bb69760f9dd4a43e7e3520ebb930120 (patch)
tree26f3d93398833b7449b8a97e9fe4af9904382dbf /src/lib/libcrypto/evp
parentdf59a12113ba6ec4c6faecd033d46176453f697e (diff)
downloadopenbsd-2eb7e5ff6bb69760f9dd4a43e7e3520ebb930120.tar.gz
openbsd-2eb7e5ff6bb69760f9dd4a43e7e3520ebb930120.tar.bz2
openbsd-2eb7e5ff6bb69760f9dd4a43e7e3520ebb930120.zip
spelling fixes; from paul tagliamonte
i removed the arithmetics -> arithmetic changes, as i felt they were not clearly correct ok tb
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/digest.c4
-rw-r--r--src/lib/libcrypto/evp/evp_enc.c4
-rw-r--r--src/lib/libcrypto/evp/pmeth_lib.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/evp/digest.c b/src/lib/libcrypto/evp/digest.c
index 1fa25cd4fb..7c129f025d 100644
--- a/src/lib/libcrypto/evp/digest.c
+++ b/src/lib/libcrypto/evp/digest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: digest.c,v 1.35 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: digest.c,v 1.36 2022/12/26 07:18:52 jmc Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -140,7 +140,7 @@ EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
140 /* Whether it's nice or not, "Inits" can be used on "Final"'d contexts 140 /* Whether it's nice or not, "Inits" can be used on "Final"'d contexts
141 * so this context may already have an ENGINE! Try to avoid releasing 141 * so this context may already have an ENGINE! Try to avoid releasing
142 * the previous handle, re-querying for an ENGINE, and having a 142 * the previous handle, re-querying for an ENGINE, and having a
143 * reinitialisation, when it may all be unecessary. */ 143 * reinitialisation, when it may all be unnecessary. */
144 if (ctx->engine && ctx->digest && (!type || 144 if (ctx->engine && ctx->digest && (!type ||
145 (type && (type->type == ctx->digest->type)))) 145 (type && (type->type == ctx->digest->type))))
146 goto skip_to_init; 146 goto skip_to_init;
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c
index d1defc4643..c64390d599 100644
--- a/src/lib/libcrypto/evp/evp_enc.c
+++ b/src/lib/libcrypto/evp/evp_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_enc.c,v 1.48 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: evp_enc.c,v 1.49 2022/12/26 07:18:52 jmc Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -98,7 +98,7 @@ EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl,
98 /* Whether it's nice or not, "Inits" can be used on "Final"'d contexts 98 /* Whether it's nice or not, "Inits" can be used on "Final"'d contexts
99 * so this context may already have an ENGINE! Try to avoid releasing 99 * so this context may already have an ENGINE! Try to avoid releasing
100 * the previous handle, re-querying for an ENGINE, and having a 100 * the previous handle, re-querying for an ENGINE, and having a
101 * reinitialisation, when it may all be unecessary. */ 101 * reinitialisation, when it may all be unnecessary. */
102 if (ctx->engine && ctx->cipher && 102 if (ctx->engine && ctx->cipher &&
103 (!cipher || (cipher && (cipher->nid == ctx->cipher->nid)))) 103 (!cipher || (cipher && (cipher->nid == ctx->cipher->nid))))
104 goto skip_to_init; 104 goto skip_to_init;
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c
index e4abdc4aec..bec899cef1 100644
--- a/src/lib/libcrypto/evp/pmeth_lib.c
+++ b/src/lib/libcrypto/evp/pmeth_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pmeth_lib.c,v 1.26 2022/11/26 16:08:53 tb Exp $ */ 1/* $OpenBSD: pmeth_lib.c,v 1.27 2022/12/26 07:18:52 jmc Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -173,7 +173,7 @@ int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
173 } else 173 } else
174 e = ENGINE_get_pkey_meth_engine(id); 174 e = ENGINE_get_pkey_meth_engine(id);
175 175
176 /* If an ENGINE handled this method look it up. Othewise 176 /* If an ENGINE handled this method look it up. Otherwise
177 * use internal tables. 177 * use internal tables.
178 */ 178 */
179 179