ikvm icon indicating copy to clipboard operation
ikvm copied to clipboard

Add more Hotspot HW intrinsics for hashing and BigInteger

Open AliveDevil opened this issue 11 months ago • 1 comments

With #390 completed, all of the cryptography algorithms are hardware accelerated. There's a bunch of hashing algorithms, that are hardware accelerated on Hotspot, but aren't on IKVM:

  • Crc32 (Aarch64, X86_32)
  • Sha1 (Aarch64)
  • Sha256 (Aarch64)

Some java.math.BigInteger improvements:

  • MultiplyToLen
  • SquareToLen
  • MontgomeryMultiply
  • MontgomerySquare

In library_call.cpp are all usages of these intrinsics specified, e.g. inline_digestBase_implCompressMB is used for SHA1, SHA256, SHA512 intrinsics.

AliveDevil avatar Jan 23 '25 15:01 AliveDevil

bouncycastle suffers from missing BigInteger hardware acceleration.

AliveDevil avatar Mar 18 '25 09:03 AliveDevil