1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
13 DSA implementation, generate a DSA key
19 Old-style creation of a DSA key
20 @param prng An active PRNG state
21 @param wprng The index of the PRNG desired
22 @param group_size Size of the multiplicative group (octets)
23 @param modulus_size Size of the modulus (octets)
24 @param key [out] Where to store the created key
25 @return CRYPT_OK if successful.
27 int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key)
31 if ((err = dsa_generate_pqg(prng, wprng, group_size, modulus_size, key)) != CRYPT_OK) { return err; }
32 if ((err = dsa_generate_key(prng, wprng, key)) != CRYPT_OK) { return err; }
39 /* ref: $Format:%D$ */
40 /* git commit: $Format:%H$ */
41 /* commit time: $Format:%ai$ */