On 15/02/2011 19:47, Viktor TARASOV wrote:

> Sorry, this card can generate key 512bit .
> For that the corresponding algorithm should be added to the list of the 
> card's algorithms.
>
> --- src/libopensc/card-myeid.c  (révision 5194)
> +++ src/libopensc/card-myeid.c  (copie de travail)
> @@ -100,6 +100,7 @@
>           flags = SC_ALGORITHM_RSA_RAW | SC_ALGORITHM_RSA_PAD_PKCS1 | 
> SC_ALGORITHM_ONBOARD_KEY_GEN;
>           flags |= SC_ALGORITHM_RSA_HASH_NONE | SC_ALGORITHM_RSA_HASH_SHA1 | 
> SC_ALGORITHM_ONBOARD_KEY_GEN;
>
> +       _sc_card_add_rsa_alg(card, 512, flags, 0);
>           _sc_card_add_rsa_alg(card, 1024, flags, 0);
>           _sc_card_add_rsa_alg(card, 2048, flags, 0);
If the card could handle it (don't know, and not confident enough to 
recompile opensc), often 768 bits are used for med-low security apps.

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

Reply via email to