]> git.ipfire.org Git - thirdparty/nettle.git/commit
* rsa.c (rsa_init_private_key, rsa_clear_private_key): Handle d.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 14 Jan 2002 20:09:32 +0000 (21:09 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 14 Jan 2002 20:09:32 +0000 (21:09 +0100)
commitd47dccb184b228ba9d53619bd0d8e48834c07a0a
tree2cc9c16ea3a784ad5f8876caa0a4153c644d2b82
parent65a30e539bac3280d99ce4b1bebeeaed8dbf61cf
* rsa.c (rsa_init_private_key, rsa_clear_private_key): Handle d.

* rsa.c (rsa_check_size): Changed argument to an mpz_t. Updated
callers.
(rsa_prepare_private_key): Compute the size of the key by
computing n = p * q.

* rsa.c (rsa_check_size): New function, for computing and checking
the size of the modulo in octets.
(rsa_prepare_public_key): Usa rsa_check_size.
(rsa_init_private_key): Removed code handling n, e and d.
(rsa_clear_private_key): Likewise.
(rsa_compute_root): Always use CRT.

Rev: src/nettle/rsa.c:1.6
rsa.c