Re: [opensc-devel] Domain Parameter for ECC Keys

2012-09-23 Thread Andreas Schwier
Hi Douglas, see below. Andreas Am 20.09.2012 17:12, schrieb Douglas E. Engert: > > On 9/19/2012 6:11 PM, Andreas Schwier (ML) wrote: >> Dear all, >> >> we've come across a strange behaviour of the pkcs15-lib in OpenSC when >> we generate an EC key pair: >> >> After generating an fresh EC key pa

Re: [opensc-devel] Domain Parameter for ECC Keys

2012-09-20 Thread Douglas E. Engert
On 9/19/2012 6:11 PM, Andreas Schwier (ML) wrote: > Dear all, > > we've come across a strange behaviour of the pkcs15-lib in OpenSC when > we generate an EC key pair: > > After generating an fresh EC key pair, our code returns a > sc_pkcs15_pubkey containing the EC public key and DER encoded doma

Re: [opensc-devel] Domain Parameter for ECC Keys

2012-09-20 Thread Frank Morgner
Hi! I cannot answer the question *why* encoding/decoding is done in particular. But some time ago OpenSC's ASN.1 implementation had the limitation to tags on one byte (ec public key is 7f49, I think). So, in a more general note, ASN.1 support in OpenSC could be extended. Or stop reimplementig eve