diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-12-05 12:28:28 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-12-05 12:28:28 +0000 |
commit | 3c1e5608261108265d0e3c2c0dfa3418d3abb82d (patch) | |
tree | e86cd0fb3e5e39b8660eec4fa592cfd4a4f11f56 /usr.bin | |
parent | 5ccd2f54256e7932ed06d035aff208cd50f526eb (diff) |
fix unintended sizeof pointer in debug path
ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/kexsntrup761x25519.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexsntrup761x25519.c b/usr.bin/ssh/kexsntrup761x25519.c index b2be71d53b1..e3f7831d39f 100644 --- a/usr.bin/ssh/kexsntrup761x25519.c +++ b/usr.bin/ssh/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. * @@ -128,7 +128,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 |