summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-12-19 22:09:22 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-12-19 22:09:22 +0000
commit575d91082668da6066a21ef050b6189ef3425641 (patch)
treece4231ffea69c96c436f349e9b24d3112d1c5eaa
parent6ccc28268642250db6c8219bf4e5361864475e64 (diff)
Print client kem key with correct length.
ok markus@
-rw-r--r--usr.bin/ssh/kexsntrup4591761x25519.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexsntrup4591761x25519.c b/usr.bin/ssh/kexsntrup4591761x25519.c
index b0605b96a5c..7ec5f9aaa24 100644
--- a/usr.bin/ssh/kexsntrup4591761x25519.c
+++ b/usr.bin/ssh/kexsntrup4591761x25519.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexsntrup4591761x25519.c,v 1.3 2019/01/21 10:40:11 djm Exp $ */
+/* $OpenBSD: kexsntrup4591761x25519.c,v 1.4 2020/12/19 22:09:21 tobhe Exp $ */
/*
* Copyright (c) 2019 Markus Friedl. All rights reserved.
*
@@ -193,7 +193,7 @@ kex_kem_sntrup4591761x25519_dec(struct kex *kex,
if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0)
goto out;
#ifdef DEBUG_KEXECDH
- dump_digest("client kem key:", kem_key, sizeof(kem_key));
+ dump_digest("client kem key:", kem_key, crypto_kem_sntrup4591761_BYTES);
dump_digest("concatenation of KEM key and ECDH shared key:",
sshbuf_ptr(buf), sshbuf_len(buf));
#endif