fix DSA dependency on RSA #285

This commit is contained in:
Karel Miko 2017-09-01 18:24:15 +02:00
parent 87f94e1f0d
commit 59857ba5e0

View File

@ -86,7 +86,7 @@ int dsa_import(const unsigned char *in, unsigned long inlen, dsa_key *key)
key->type = PK_PRIVATE;
} else { /* public */
ltc_asn1_list params[3];
unsigned long tmpbuf_len = MAX_RSA_SIZE*8;
unsigned long tmpbuf_len = LTC_DER_MAX_PUBKEY_SIZE*8;
LTC_SET_ASN1(params, 0, LTC_ASN1_INTEGER, key->p, 1UL);
LTC_SET_ASN1(params, 1, LTC_ASN1_INTEGER, key->q, 1UL);