[openssh-commits] [openssh] 04/07: upstream: Print client kem key with correct length.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Dec 21 10:52:38 AEDT 2020


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 06fbb386bed666581095cb9cbc7a900e02bfe1b7
Author: tobhe at openbsd.org <tobhe at openbsd.org>
Date:   Sat Dec 19 22:09:21 2020 +0000

    upstream: Print client kem key with correct length.
    
    ok markus@
    
    OpenBSD-Commit-ID: 91689e14a4fc6c270e265a32d1c8faba63a45755
---
 kexsntrup4591761x25519.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kexsntrup4591761x25519.c b/kexsntrup4591761x25519.c
index 3b9b664f..3a241fd4 100644
--- a/kexsntrup4591761x25519.c
+++ b/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.
  *
@@ -195,7 +195,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

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list