clean-up a bit around DSA

* comments
* dsa_test()
* order of alloc/free of key parts
This commit is contained in:
Steffen Jaeckel
2017-06-28 16:07:32 +02:00
parent 1cce065676
commit 35e0c5fc71
8 changed files with 34 additions and 28 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ int rsa_import_pkcs8(const unsigned char *in, unsigned long inlen,
int rsa_set_key(const unsigned char *N, unsigned long Nlen,
const unsigned char *e, unsigned long elen,
const unsigned char *d, unsigned long dlen, /* is NULL for public keys */
const unsigned char *d, unsigned long dlen,
rsa_key *key);
int rsa_set_factors(const unsigned char *p, unsigned long plen,
const unsigned char *q, unsigned long qlen,