This discussion is archived
1 Reply Latest reply: Nov 12, 2012 4:57 PM by safarmer RSS

RSA2048 with SHA2

966781 Newbie
Currently Being Moderated
Hello,

as far as is can see the RSA_2048 algorithm with OAEP padding use SHA1 as hash function.
Is there any possibility to use SHA2 ? Especially SHA256 ?

Yes, i can use RSA_2048 with no padding an do the padding by myself because the MessageDigest supports SHA256. But this would be a lot of work. For me it seems unusually that the cipher RSA algorithm does not have an implementation for SHA2 because in my opinion SHA2 is the most frequently used hash function.
  • 1. Re: RSA2048 with SHA2
    safarmer Expert
    Currently Being Moderated
    Java Card API's are not always up to date. SHA2 support was only added in JC 2.2.2 (the current version I am using). Given JC3.0.1 API still only has one RSA algorithm with OAEP it is safe to assume it is still SHA1.

    - Shane

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points