logo       

Re: opensc and infocamere card: msg#00252

encryption.opensc.devel

Subject: Re: opensc and infocamere card

Hi,

you are sure that your file (filetobesigned) has the same size as your key's
modulus (that's required for the RSA-X-509 mechanism).

If it's just for testing, you could try "pkcs11-tool -t -l".

Or "pkcs15-crypt -s -i <file_of_20_bytes> --pkcs11 --sha-1 -o signat.bin -k <keyID>"
(to find out the keyID: "pkcs15-tool -k").

Hope that helps,
Stef

Giuseppe Sacco wrote:

Hi All,
I am testing opensc with an infocamere card. The CVS version correctly
detect the card, ask for a PIN and then stop with this error:

$ pkcs11-tool -vvvv -s -i filetobesigned -o filesigned
card-etoken.c:162:etoken_check_sw: file not found
iso7816.c:445:iso7816_select_file: returning with: File not found
card-etoken.c:406:etoken_select_file: returning with: File not found
card.c:756:sc_select_file: returning with: File not found
card-etoken.c:162:etoken_check_sw: file not found
iso7816.c:440:iso7816_select_file: returning with: File not found
card-etoken.c:406:etoken_select_file: returning with: File not found
card.c:756:sc_select_file: returning with: File not found
Please enter PIN:
Using signature algorithm RSA-X-509
error: PKCS11 function C_SignUpdate failed: rv = CKR_DATA_LEN_RANGE
(0x21)

Aborting.

Is there anyone having already fixed this?


Bye,
Giuseppe

_______________________________________________
OpenSC-devel mailing list
OpenSC-devel@xxxxxxxxxx
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise