Hi

The following changeset breaks the key generation process in the pkcs11-tool:

http://www.opensc-project.org/opensc/changeset/3602/trunk/src/tools/pkcs11-tool.c

CK_BYTE publicExponent[] = { 65537 };

It is truncated to the value of 1. 1 is not valid exponent.

Should be:

CK_BYTE publicExponent[] = { 1, 0, 1 };

Insert fix here:
http://www.opensc-project.org/opensc/browser/trunk/src/tools/pkcs11-tool.c#L1038

(Do not have time to send a patch)

// Rickard

Attachment: PGP.sig
Description: PGP signature

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

Reply via email to