erbalibera erbalibera a écrit :
Hi guys, If I try to sign data with my private rsa key, why the
cipher_direction is DIR_ENCRYPT and not DIR_SIGN, in the apdu ?
thanks in advance.
because a *cipher* can only encrypt or decrypt.
JavaCard objects of class Signature can 'sign' or 'verify'
but they also hash the data to be signed (or verified), so
since most of implementation wants to perform the hash
outside of the card they use a cipher instance.
for these (cipher) instances, an encrytion with a private
key means signature generation (but w/o digest computation).
Sylvain.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle