[opensc-devel] PIV: reduce APDUs number

2011-04-13 Thread Viktor TARASOV
Hi, the number of APDUs used by PIV's driver to get the object data can be reduced. Actually before getting object data, PIV driver tries to get it's size. For that it reads the first 8 bytes of the object data. Usually card responds with '61xx' return code, that's why one (useless) 'GET RESPON

Re: [opensc-devel] PIV: reduce APDUs number

2011-04-13 Thread Douglas E. Engert
On 4/13/2011 8:20 AM, Viktor TARASOV wrote: > Hi, > > the number of APDUs used by PIV's driver to get the object data can be > reduced. > > Actually before getting object data, PIV driver tries to get it's size. > For that it reads the first 8 bytes of the object data. Usually card responds > w

Re: [opensc-devel] PIV: reduce APDUs number

2011-04-13 Thread Viktor TARASOV
Le 13/04/2011 16:14, Douglas E. Engert a écrit : On 4/13/2011 8:20 AM, Viktor TARASOV wrote: Hi, the number of APDUs used by PIV's driver to get the object data can be reduced. Actually before getting object data, PIV driver tries to get it's size. For that it reads the first 8 bytes of the ob

[opensc-devel] Unwrap, with openssl, a key wrapped inside Smart Card

2011-04-13 Thread Felipe Blauth
Hello to all, Simple question: Is it possible, using openssl, to unwrap a key wraped inside a Smart Card with C_Wrap function? Thank you. __ Felipe Blauth ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.or

Re: [opensc-devel] Unwrap, with openssl, a key wrapped inside Smart Card

2011-04-13 Thread Andre Zepezauer
On Wed, 2011-04-13 at 14:44 -0300, Felipe Blauth wrote: > Hello to all, > > Simple question: > Is it possible, using openssl, to unwrap a key wraped inside a Smart > Card with C_Wrap function? Maybe, but the question here is how the key becomes wrapped in the smart card. OpenSC doesn't support t

Re: [opensc-devel] Unwrap, with openssl, a key wrapped inside Smart Card

2011-04-13 Thread Martin Paljak
Hello, On Apr 13, 2011, at 20:44 , Felipe Blauth wrote: > Hello to all, > > Simple question: > Is it possible, using openssl, to unwrap a key wraped inside a Smart Card > with C_Wrap function? The format of C_Wrap is described in PKCS#11 specification. Yes, you could use OpenSSL but note that

Re: [opensc-devel] Unwrap, with openssl, a key wrapped inside Smart Card

2011-04-13 Thread Douglas E. Engert
On 4/13/2011 2:03 PM, Martin Paljak wrote: > Hello, > On Apr 13, 2011, at 20:44 , Felipe Blauth wrote: > >> Hello to all, >> >> Simple question: >> Is it possible, using openssl, to unwrap a key wraped inside a Smart Card >> with C_Wrap function? Its not that simple. Is the key to be unwrapped

Re: [opensc-devel] Unwrap, with openssl, a key wrapped inside Smart Card

2011-04-13 Thread Felipe Blauth
2011/4/13 Douglas E. Engert > > > On 4/13/2011 2:03 PM, Martin Paljak wrote: > > Hello, > > On Apr 13, 2011, at 20:44 , Felipe Blauth wrote: > > > >> Hello to all, > >> > >> Simple question: > >> Is it possible, using openssl, to unwrap a key wraped inside a Smart > Card with C_Wrap function? >