]> git.tuebingen.mpg.de Git - paraslash.git/commit
gcrypt: Factor out read_pem_rsa_params().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Aug 2018 18:50:53 +0000 (20:50 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 25 Dec 2018 16:45:24 +0000 (17:45 +0100)
commit3699a583f3a7e9514c0f47b8b07f56b050430b67
treec97bd33e481a7dae37a959b8595efb203f40aa90
parent71386e2530fa351d22f942ce3cf9d18eee99ce78
gcrypt: Factor out read_pem_rsa_params().

We'll soon add a similar function which reads bignums from an RFC4716
key file, so it's good to separate this functionality from the rest
of get_private_key().

The patch also introduces struct rsa_params which contains
the six bignums used for RSA private key operations. This way
read_pem_rsa_params() only needs three arguments.
gcrypt.c