Xiaoshuo Wu wrote:
On Sun, 21 Feb 2010 04:34:03 +0800, Viktor TARASOV <viktor.tara...@opentrust.com> wrote:

Question to Xiaoshuo, just for my curiosity:
what is the command history of your card before you have had this error? erasing, initialising, ...
This only happened when using OpenCT and certain version of hardware.
I was running the following commands:
openssl genrsa -aes256 1024 > key.priv.pem
pkcs15-init -E
pkcs15-init -C
pkcs15-init -S key.priv.pem -i ff -a ff
You can see the attachment for details.

Your logs are somewhat strange:

#file is created:
Outgoing APDU data [   28 bytes] =====================================
84 E0 02 00 17 49 46 00 80 00 00 00 10 00 10 10 .....IF.........
10 10 10 10 10 10 00 00 D2 6A 75 7B             .........ju{
Incoming APDU data [    2 bytes] =====================================
90 00 ..

# file is updated
Outgoing APDU data [   13 bytes] =====================================
00 D6 00 00 08 01 06 70 6B 63 73 31 35 .......pkcs15
Incoming APDU data [    2 bytes] =====================================
90 00 ..

#file is read
Outgoing APDU data [    5 bytes] =====================================
00 B0 00 00 70 ....p
Incoming APDU data [  114 bytes] =====================================
01 06 70 6B 63 73 31 35 40 FA 89 2D 93 5A 13 02 ..pkc...@..-.z..
99 44 B7 20 BF B9 E0 A9 AA 49 1B D0 66 0F D0 3C .D. .....I..f..<


It's looks like the initial content of the newly created file is random bytes.

Regards,
Viktor.


--
Viktor Tarasov  <viktor.tara...@opentrust.com>

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to