Re: [opensc-devel] Feitian ePass+SCR301 problem

2010-05-24 Thread Xiaoshuo Wu
On Mon, 24 May 2010 23:18:59 +0800, Douglas E. Engert wrote: > I do not have any entersafe cards, but looking at the dump and code it > looks > like it wrote out the RSA private key. You need an entersafe card expert > to > see if it wrote the correct data and if when the code tries to use

Re: [opensc-devel] Encoding of CKA_SERIAL_NUMBER

2010-05-24 Thread Robert Relyea
On 05/24/2010 10:18 AM, Alon Bar-Lev wrote: > Yes, good catch. > But I don't know any application that actually uses this attribute... :) > NSS does. S/Mime would break if this were wrong. (you wouldn't be able to find the correct cert that was used to encrypt the message, so you couldn't be abl

Re: [opensc-devel] Encoding of CKA_SERIAL_NUMBER

2010-05-24 Thread Alon Bar-Lev
Yes, good catch. But I don't know any application that actually uses this attribute... :) On Mon, May 24, 2010 at 8:05 PM, Viktor TARASOV wrote: > Hello, > > according to PKCS#11 specification the CKA_SERIAL_NUMBER is DER-encoded > value. > > Actually OpenSC PKCS#11 module returns a non-encoded o

[opensc-devel] Encoding of CKA_SERIAL_NUMBER

2010-05-24 Thread Viktor TARASOV
Hello, according to PKCS#11 specification the CKA_SERIAL_NUMBER is DER-encoded value. Actually OpenSC PKCS#11 module returns a non-encoded octet string as a value of this attribute. Should it be changed? Kind wishes, Viktor. -- Viktor Tarasov _