Browse Source

dsa_make_key minor isuue

Karel Miko 11 years ago
parent
commit
77b4b16030
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pk/dsa/dsa_make_key.c

+ 1 - 1
src/pk/dsa/dsa_make_key.c

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