Profile Image
vishnupriya

What is JVM startup parameter: -XX:[+|-]UseSHA?


What is JVM startup parameter: -XX:[+|-]UseSHA? Have you used this JVM arguement before? What are the pros & cons of using this Java argument? Can you share your perspective/experience in using this JVM argument?

  • jvmargument

  • xx-usesha

  • x-usesha

  • JVM startup parameter

Please Sign In or to post your comment or answer

Profile Image

Pavel Khodakovsky

Usage:                                                    

 

The option “-XX:[+|-]UseSHA” enables hardware-based intrinsics for SHA crypto hash functions for SPARC hardware.

 

Since:

 

Starting from JDK 8.

 

Syntax:

 

java -XX:[+|-]UseSHA MainClass

 

Example:

  • To enable all hardware-based SHA intrinsics: java -XX:+UseSHA MainClass
  • To disable all hardware-based SHA intrinsics: java -XX:-UseSHA MainClass

Description:

 

The SHA (Secure Hash Algorithm) is a family of cryptographic hash functions, including: SHA-0, SHA-1, SHA-2 and SHA-3. They are designed to secure data by transforming the original data using a hash function which is an algorithm that consists of compression functions, modular additions and bitwise operations.

 

This option controls whether SHA instructions can be used on SPARC and it’s used in conjunction with the UseSHA1Intrinsics, UseSHA256Intrinsics, and UseSHA512Intrinsics options. It’s supported only for Java HotSpot Server VM 64-bit on SPARC T4 and newer.

 

Default Value:

 

This option is enabled by default.

 

Errors:

 

None.

 

Arguments related:

 

UseSHA1Intrinsics, UseSHA256Intrinsics, and UseSHA512Intrinsics.

 

Related Posts:

 

 

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jvmargument

  • xx-usesha

  • x-usesha

  • JVM startup parameter