dsa_make_key minor isuue

This commit is contained in:
Karel Miko 2014-01-23 16:48:32 +01:00 committed by Steffen Jaeckel
parent a43bb0fda6
commit 77b4b16030

View File

@ -65,7 +65,7 @@ int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size,
if ((err = mp_add(key->q, key->q, tmp)) != CRYPT_OK) { goto error; }
/* now make a random string and multply it against q */
if (prng_descriptor[wprng].read(buf+1, modulus_size - group_size, prng) != (unsigned long)(modulus_size - group_size)) {
if (prng_descriptor[wprng].read(buf, modulus_size - group_size, prng) != (unsigned long)(modulus_size - group_size)) {
err = CRYPT_ERROR_READPRNG;
goto error;
}