- fixed bug with DSA pubkey de/encoding

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@565 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-04-18 10:58:48 +00:00
parent 939efa48a0
commit c9aba0d1ca
1 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ sc_pkcs15_decode_pubkey_dsa(struct sc_context *ctx,
const u8 *buf, size_t buflen)
{
struct sc_asn1_entry asn1_public_key[2];
struct sc_asn1_entry asn1_dsa_pub_coeff[3];
struct sc_asn1_entry asn1_dsa_pub_coeff[5];
int r;
sc_copy_asn1_entry(c_asn1_public_key, asn1_public_key);
@ -302,7 +302,7 @@ sc_pkcs15_encode_pubkey_dsa(struct sc_context *ctx,
u8 **buf, size_t *buflen)
{
struct sc_asn1_entry asn1_public_key[2];
struct sc_asn1_entry asn1_dsa_pub_coeff[3];
struct sc_asn1_entry asn1_dsa_pub_coeff[5];
int r;
sc_copy_asn1_entry(c_asn1_public_key, asn1_public_key);