Just a thought, doesn't it require an Extended APDU for 2048 bits? Is
extended APDUs supported?

Best regards,
Jonas

On Thu, Mar 5, 2009 at 9:26 AM, Hendrik Tews <[email protected]> wrote:

>
>   1. The card generates a 2048 bit RSA keypair, but when trying, for
>   example, to encrypt data with the public key the card seems to throw
>   and SW_UNSUPPORTED_FEATURE exception - this problem doesn't happen
>   with 1024 bit keys.
>
> With NXP JCOP cards I have the following experience: even if it
> is printed on the backside that they support RSA up to 2048 bits,
> their largest key size is 1952. For bigger key sizes either
> RSAPublicKey.setModulus throws CryptoException.ILLEGAL_VALUE or
> RSAPublicKey.setExponent throws CryptoException.ILLEGAL_VALUE.
>
> I would try slightly smaller keys.
>
>   2. The random number generator doesn't seem to work... (even though
>   the card supports it).
>
> No idea here.
>
> Bye,
>
> Hendrik
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to