- 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)
This commit is contained in:
Damien Miller 2009-02-21 12:45:18 +11:00
parent e8001d4820
commit 25918381ad
2 changed files with 9 additions and 3 deletions

View File

@ -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]
@ -5177,5 +5181,5 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.5198 2009/02/21 01:45:02 djm Exp $
$Id: ChangeLog,v 1.5199 2009/02/21 01:45:18 djm Exp $

View File

@ -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);