]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2009/02/18 04:31:21
authordjm <djm>
Sat, 21 Feb 2009 01:45:18 +0000 (01:45 +0000)
committerdjm <djm>
Sat, 21 Feb 2009 01:45:18 +0000 (01:45 +0000)
     [schnorr.c]
     signature should hash over the entire group, not just the generator
     (this is still disabled code)

ChangeLog
schnorr.c

index 11582a1cd646de1b0b0fdf60f6e45214fbe6ddd1..efddfc7d1777ea9370c61fe9304d7b90e5478305 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
    - djm@cvs.openbsd.org 2009/02/17 01:28:32
      [ssh_config]
      sync with revised default ciphers; pointed out by dkrause@
+   - djm@cvs.openbsd.org 2009/02/18 04:31:21
+     [schnorr.c]
+     signature should hash over the entire group, not just the generator
+     (this is still disabled code)
 
 20090216
  - (djm) [regress/conch-ciphers.sh regress/putty-ciphers.sh]
index e3abe570276c65c66e59c41256db7a7dac703213..546975072221a5e2b37644b56980231290c82115 100644 (file)
--- a/schnorr.c
+++ b/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.
  *
@@ -81,8 +81,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);
This page took 0.889427 seconds and 5 git commands to generate.