Home / Function/ configureOpenSslAlgorithmParameters() — netty Function Reference

configureOpenSslAlgorithmParameters() — netty Function Reference

Architecture documentation for the configureOpenSslAlgorithmParameters() function in JdkDelegatingPrivateKeyMethod.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  a4801e64_db66_2026_c781_2c5880096719["configureOpenSslAlgorithmParameters()"]
  2c92da02_7d89_acb4_f8d8_102366ec64e7["JdkDelegatingPrivateKeyMethod"]
  a4801e64_db66_2026_c781_2c5880096719 -->|defined in| 2c92da02_7d89_acb4_f8d8_102366ec64e7
  339c1277_dcf2_7681_429a_f03a7cf5bfe8["Signature()"]
  339c1277_dcf2_7681_429a_f03a7cf5bfe8 -->|calls| a4801e64_db66_2026_c781_2c5880096719
  cd6c96a3_2c7b_1d94_a039_5139f53c278d["configurePssParameters()"]
  a4801e64_db66_2026_c781_2c5880096719 -->|calls| cd6c96a3_2c7b_1d94_a039_5139f53c278d
  style a4801e64_db66_2026_c781_2c5880096719 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethod.java lines 214–236

    private static void configureOpenSslAlgorithmParameters(Signature signature, int opensslAlgorithm)
            throws InvalidAlgorithmParameterException {
        // Use the OpenSSL algorithm constants for precise parameter configuration
        if (opensslAlgorithm == OpenSslAsyncPrivateKeyMethod.SSL_SIGN_RSA_PSS_RSAE_SHA256) {
            // SHA-256 based PSS with MGF1-SHA256, salt length 32
            configurePssParameters(signature, MGF1ParameterSpec.SHA256, 32);
        } else if (opensslAlgorithm == OpenSslAsyncPrivateKeyMethod.SSL_SIGN_RSA_PSS_RSAE_SHA384) {
            // SHA-384 based PSS with MGF1-SHA384, salt length 48
            configurePssParameters(signature, MGF1ParameterSpec.SHA384, 48);
        } else if (opensslAlgorithm == OpenSslAsyncPrivateKeyMethod.SSL_SIGN_RSA_PSS_RSAE_SHA512) {
            // SHA-512 based PSS with MGF1-SHA512, salt length 64
            configurePssParameters(signature, MGF1ParameterSpec.SHA512, 64);
        } else if (SSL_TO_JDK_SIGNATURE_ALGORITHM.containsKey(opensslAlgorithm)) {
            // All other supported algorithms don't require special parameter configuration
            if (logger.isTraceEnabled()) {
                logger.trace("No parameter configuration needed for OpenSSL algorithm {}", opensslAlgorithm);
            }
        } else {
            if (logger.isDebugEnabled()) {
                logger.debug("Unknown OpenSSL algorithm {}, using default configuration", opensslAlgorithm);
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does configureOpenSslAlgorithmParameters() do?
configureOpenSslAlgorithmParameters() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethod.java.
Where is configureOpenSslAlgorithmParameters() defined?
configureOpenSslAlgorithmParameters() is defined in handler/src/main/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethod.java at line 214.
What does configureOpenSslAlgorithmParameters() call?
configureOpenSslAlgorithmParameters() calls 1 function(s): configurePssParameters.
What calls configureOpenSslAlgorithmParameters()?
configureOpenSslAlgorithmParameters() is called by 1 function(s): Signature.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free