Skip to content

-Djdk.nativeChaCha20

This option enables or disables OpenSSL native cryptographic support for the ChaCha20 and ChaCha20-Poly1305 algorithms.

Restrictions:

  • Start of content that applies to Java 8 (LTS) These algorithms are not supported on Java™ 8. End of content that applies only to Java 8
  • These algorithms are not supported on OpenSSL 1.0.x.

Syntax

    -Djdk.nativeChaCha20=[true|false]
Setting value Default
-Djdk.nativeChaCha20 true yes
-Djdk.nativeChaCha20 false

Explanation

OpenSSL support is enabled by default for the ChaCha20 and ChaCha20-Poly1305 algorithms. If you want to turn off support for these algorithms only, set this option to false. To turn off support for these and other algorithms, see the -Djdk.nativeCrypto system property command line option.