pike.git
/
src
/
post_modules
/
Nettle
/
hogweed.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hogweed.cmod:72:
PIKEFUN array(object(Gmp.mpz)) dsa_generate_keypair(int p_bits, int q_bits, function(int:string(0..255)) rnd) { struct dsa_public_key pub; struct dsa_private_key key; dsa_public_key_init(&pub); dsa_private_key_init(&key); if( !nettle_dsa_generate_keypair(&pub, &key, rnd, random_func_wrapper,
-
NULL, NULL, p_bits, q_bits) )
+
NULL, NULL, p_bits
+
#ifdef HAVE_DSA_QBITS_KEYPAIR_ARG
+
, q_bits
+
#endif
+
) )
{ dsa_private_key_clear(&key); dsa_public_key_clear(&pub); Pike_error("Illegal parameter value.\n"); } push_bignum((MP_INT *)&pub.p); push_bignum((MP_INT *)&pub.q); push_bignum((MP_INT *)&pub.g);