Commit 579f8fe6 authored by Niels Möller's avatar Niels Möller

(make_rsa_signer): Call mpz_init for all bignum

instance variables.

Rev: src/rsa.c:1.17
parent 27376475
......@@ -578,6 +578,13 @@ make_rsa_signer(struct signature_algorithm *s,
CAST(rsa_algorithm, params, s);
NEW(rsa_signer, res);
mpz_init(res->d);
mpz_init(res->p);
mpz_init(res->q);
mpz_init(res->a);
mpz_init(res->b);
mpz_init(res->c);
if ( (SEXP_LEFT(i) == 8)
&& ( (res->verifier = make_rsa_verifier_internal(params, i)) )
&& sexp_get_un(i, ATOM_D, res->d, RSA_MAX_SIZE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment