dsa_make_key minor isuue
This commit is contained in:
parent
a43bb0fda6
commit
77b4b16030
@ -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; }
|
if ((err = mp_add(key->q, key->q, tmp)) != CRYPT_OK) { goto error; }
|
||||||
|
|
||||||
/* now make a random string and multply it against q */
|
/* 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;
|
err = CRYPT_ERROR_READPRNG;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user