8

I was trying to make good use of the MS CAPI, and stumped into a great mischief... The SunMSCapi provider only, hmm, provides, per lack of better word, at least for signature, the following algorithms:

  • MD2withRSA
  • MD5withRSA
  • SHA1withRSA

And I am not eager to make use of algorithms such GOST3411withECGOST3410, or RIPEMD128withRSA, that BouncyCastle makes use, but it would be nice, and in this particular case, quite important if not essential, to be able to sign in, at least, the SHA256withRSA algorithm... (the 512 and so on and ECDSA encryption, would be a big plus, but i don't expect that much).

I am trying to find an alternative, but only found this wrapper, which looks fine, but I have to dig it a little more.

Does anyone knows another way, wrapper or provider to access mscapi (cryptoapi)?


Related:

jww
  • 97,681
  • 90
  • 411
  • 885
marcelo-ferraz
  • 3,147
  • 4
  • 38
  • 55

2 Answers2

1

Take a look at RSA bsafe share which supports RSA with SHA-256.

pd40
  • 3,187
  • 3
  • 20
  • 29
1

Java is cross platform, if you choose SunMSCapi, you can only run on windows with JDK 6+, and if want SHA256withRSA, you need run on JDK7+, it is there. check code RSASignature.SHA256

Ted Shaw
  • 2,298
  • 14
  • 8