Marcin Cieslak wrote:
Looks like I forgot to add --sha-1 argument to pkcs15-crypt. Is it
correct now? zapr-SHA-1 contains SHA-1 hash of some file.

% pkcs15-crypt -p 123456 -s --sha-1 -i zapr-SHA-1 --pkcs1 -o signed

Patched:

http://akson.sgh.waw.pl/~saper/opensc/pkcs15-sign-patched-debug-sha1.log

Unpatched:

http://akson.sgh.waw.pl/~saper/opensc/pkcs15-sign-unpatched-debug-sha1.log

Now at least last "raw" operation is executed, although we get 0x6a81
anyway.

I guess you are trying to sign with the auth key ... in this
case the signature is generated with the decipher command.

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

Reply via email to