diff --git a/src/pk/dsa/dsa_import.c b/src/pk/dsa/dsa_import.c index 5db6963..3934765 100644 --- a/src/pk/dsa/dsa_import.c +++ b/src/pk/dsa/dsa_import.c @@ -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);