summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
authortb <>2026-04-20 04:26:12 +0000
committertb <>2026-04-20 04:26:12 +0000
commite4bc9bc7b9138edf0b9cbab71d97ecd0dd29c6ac (patch)
tree4e1116869ed351296690ec79c00669dcbb6de7d7 /src/lib/libcrypto/ec
parent8662e35dbd36d8450a6d4c7188a65c580e4b339f (diff)
downloadopenbsd-e4bc9bc7b9138edf0b9cbab71d97ecd0dd29c6ac.tar.gz
openbsd-e4bc9bc7b9138edf0b9cbab71d97ecd0dd29c6ac.tar.bz2
openbsd-e4bc9bc7b9138edf0b9cbab71d97ecd0dd29c6ac.zip
ec_pmeth: fix 20yo comment: *outlen -> *keylen
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r--src/lib/libcrypto/ec/ec_pmeth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c
index 69bf7e741a..451b46c219 100644
--- a/src/lib/libcrypto/ec/ec_pmeth.c
+++ b/src/lib/libcrypto/ec/ec_pmeth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_pmeth.c,v 1.27 2025/05/10 05:54:38 tb Exp $ */ 1/* $OpenBSD: ec_pmeth.c,v 1.28 2026/04/20 04:26:12 tb 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 */
@@ -228,7 +228,7 @@ pkey_ec_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)
228 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec); 228 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec);
229 229
230 /* 230 /*
231 * NB: unlike PKCS#3 DH, if *outlen is less than maximum size this is 231 * NB: unlike PKCS#3 DH, if *keylen is less than maximum size this is
232 * not an error, the result is truncated. 232 * not an error, the result is truncated.
233 */ 233 */
234 234