diff options
author | jsg@openbsd.org <jsg@openbsd.org> | 2021-12-05 12:28:27 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-12-07 12:30:50 +1100 |
commit | a2188579032cf080213a78255373263466cb90cc (patch) | |
tree | 07ca4294b62d011943521dc3b3171c01f379adb4 /kexsntrup761x25519.c | |
parent | da40355234068c82f1a36196f2d18dd2d81aaafd (diff) | |
download | openssh-git-a2188579032cf080213a78255373263466cb90cc.tar.gz |
upstream: fix unintended sizeof pointer in debug path ok markus@
OpenBSD-Commit-ID: b9c0481ffc0cd801e0840e342e6a282a85aac93c
Diffstat (limited to 'kexsntrup761x25519.c')
-rw-r--r-- | kexsntrup761x25519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexsntrup761x25519.c b/kexsntrup761x25519.c index e3007fa2..6afb1bad 100644 --- a/kexsntrup761x25519.c +++ b/kexsntrup761x25519.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kexsntrup761x25519.c,v 1.1 2020/12/29 00:59:15 djm Exp $ */ +/* $OpenBSD: kexsntrup761x25519.c,v 1.2 2021/12/05 12:28:27 jsg Exp $ */ /* * Copyright (c) 2019 Markus Friedl. All rights reserved. * @@ -132,7 +132,7 @@ kex_kem_sntrup761x25519_enc(struct kex *kex, dump_digest("server public key 25519:", server_pub, CURVE25519_SIZE); dump_digest("server cipher text:", ciphertext, crypto_kem_sntrup761_CIPHERTEXTBYTES); - dump_digest("server kem key:", kem_key, sizeof(kem_key)); + dump_digest("server kem key:", kem_key, crypto_kem_sntrup761_BYTES); dump_digest("concatenation of KEM key and ECDH shared key:", sshbuf_ptr(buf), sshbuf_len(buf)); #endif |