Hi all: In my debugging process for the new Spanish DNIe LGPL card driver [1], I've found a problem with "pkcs11-tool -O": returns a warning about invalid RSA public key size:
------------------------------ ... warning: PKCS11 function C_GetAttributeValue(MODULUS_BITS) failed: rv = CKR_ATTRIBUTE_TYPE_INVALID (0x12) Public Key Object; RSA 0 bits label: KpuAutenticacion ID: 4130364236323435383832383133323230313031313131313634303236 Usage: verify .... ---------------------- By using "pkcs15-tool -D" shows me no error: ----------------- .... Public RSA Key [KpuAutenticacion] Object Flags : [0x3], private, modifiable Usage : [0xC0], verify, verifyRecover Access Flags : [0x12], extract, local ModLength : 2048 Key ref : 1 Native : yes Path : 3f0050153f110101 ID : 4130364236323435383832383133323230313031313131313634303236 .... -------------------------- AFAIK DNIe is a full pkcs15 compliant card. In fact there is no emulation layer I'm not sure about the internal pkcs11 process, nor if this is a bug in my driver, or a bug in opensc, or if this is the expected way to work In fact, every pkcs15-tools functions seems to work fine, but pkcs11-tool functions fails. Seems that this question (or similar) has appeared already in this list, but unsure if related. Any hint to start debugging? Thanks in advance Juan Antonio [1] svn checkout https://svn.forge.morfeo-project.org/opendnie/opensc-opendnie
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel