Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/crypto/external/bsd/openssh/dist/kexsntrup761x25519.c,v rcsdiff: /ftp/cvs/cvsroot/src/crypto/external/bsd/openssh/dist/kexsntrup761x25519.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- src/crypto/external/bsd/openssh/dist/kexsntrup761x25519.c 2021/09/03 10:30:33 1.2 +++ src/crypto/external/bsd/openssh/dist/kexsntrup761x25519.c 2022/02/23 19:07:20 1.3 @@ -1,5 +1,5 @@ -/* $NetBSD: kexsntrup761x25519.c,v 1.2 2021/09/03 10:30:33 christos Exp $ */ -/* $OpenBSD: kexsntrup761x25519.c,v 1.1 2020/12/29 00:59:15 djm Exp $ */ +/* $NetBSD: kexsntrup761x25519.c,v 1.3 2022/02/23 19:07:20 christos Exp $ */ +/* $OpenBSD: kexsntrup761x25519.c,v 1.2 2021/12/05 12:28:27 jsg Exp $ */ /* * Copyright (c) 2019 Markus Friedl. All rights reserved. * @@ -25,7 +25,7 @@ */ #include "includes.h" -__RCSID("$NetBSD: kexsntrup761x25519.c,v 1.2 2021/09/03 10:30:33 christos Exp $"); +__RCSID("$NetBSD: kexsntrup761x25519.c,v 1.3 2022/02/23 19:07:20 christos Exp $"); #include @@ -132,7 +132,7 @@ kex_kem_sntrup761x25519_enc(struct 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