summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2009-02-18 04:31:22 +0000
committerDamien Miller <djm@cvs.openbsd.org>2009-02-18 04:31:22 +0000
commitda9cc61832527f6f66e9c8454cbb8c9ea091355c (patch)
tree6a42469e739cf51959243425cc9031486f280d75 /usr.bin/ssh
parent625521bf161db4175a654c30ff9a4c50f165f0ee (diff)
signature should hash over the entire group, not just the generator
(this is still disabled code)
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/schnorr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/schnorr.c b/usr.bin/ssh/schnorr.c
index 337d43ff581..1e4543d2da6 100644
--- a/usr.bin/ssh/schnorr.c
+++ b/usr.bin/ssh/schnorr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: schnorr.c,v 1.1 2008/11/04 08:22:13 djm Exp $ */
+/* $OpenBSD: schnorr.c,v 1.2 2009/02/18 04:31:21 djm Exp $ */
/*
* Copyright (c) 2008 Damien Miller. All rights reserved.
*
@@ -79,8 +79,10 @@ schnorr_hash(const BIGNUM *p, const BIGNUM *q, const BIGNUM *g,
buffer_init(&b);
EVP_MD_CTX_init(&evp_md_ctx);
- /* h = H(g || g^v || g^x || id) */
+ /* h = H(g || p || q || g^v || g^x || id) */
buffer_put_bignum2(&b, g);
+ buffer_put_bignum2(&b, p);
+ buffer_put_bignum2(&b, q);
buffer_put_bignum2(&b, g_v);
buffer_put_bignum2(&b, g_x);
buffer_put_string(&b, id, idlen);