@JSImport("node:crypto", "constants.ALPN_ENABLED") @native
@JSImport("node:crypto", "constants.DH_CHECK_P_NOT_PRIME") @native
@JSImport("node:crypto", "constants.DH_CHECK_P_NOT_SAFE_PRIME") @native
@JSImport("node:crypto", "constants.DH_NOT_SUITABLE_GENERATOR") @native
@JSImport("node:crypto", "constants.DH_UNABLE_TO_CHECK_GENERATOR") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_ALL") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_CIPHERS") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_DH") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_DIGESTS") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_DSA") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_EC") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_NONE") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_PKEY_ASN1_METHS") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_PKEY_METHS") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_RAND") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_RSA") @native
@JSImport("node:crypto", "constants.OPENSSL_VERSION_NUMBER") @native
@JSImport("node:crypto", "constants.POINT_CONVERSION_COMPRESSED") @native
@JSImport("node:crypto", "constants.POINT_CONVERSION_HYBRID") @native
@JSImport("node:crypto", "constants.POINT_CONVERSION_UNCOMPRESSED") @native
@JSImport("node:crypto", "constants.RSA_NO_PADDING") @native
@JSImport("node:crypto", "constants.RSA_PKCS1_OAEP_PADDING") @native
@JSImport("node:crypto", "constants.RSA_PKCS1_PADDING") @native
@JSImport("node:crypto", "constants.RSA_PKCS1_PSS_PADDING") @native
@JSImport("node:crypto", "constants.RSA_PSS_SALTLEN_AUTO") @native
Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature.
Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature.
@JSImport("node:crypto", "constants.RSA_PSS_SALTLEN_DIGEST") @native
Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying.
Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying.
@JSImport("node:crypto", "constants.RSA_PSS_SALTLEN_MAX_SIGN") @native
Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data.
Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data.
@JSImport("node:crypto", "constants.RSA_SSLV23_PADDING") @native
@JSImport("node:crypto", "constants.RSA_X931_PADDING") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_SSLv2") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_SSLv3") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_TLSv1") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_TLSv1_1") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_TLSv1_2") @native
@JSImport("node:crypto", "constants.SSL_OP_ALL") @native
Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail.
@JSImport("node:crypto", "constants.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION") @native
Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.
@JSImport("node:crypto", "constants.SSL_OP_CIPHER_SERVER_PREFERENCE") @native
Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.
@JSImport("node:crypto", "constants.SSL_OP_CISCO_ANYCONNECT") @native
Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER.
Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER.
@JSImport("node:crypto", "constants.SSL_OP_COOKIE_EXCHANGE") @native
Instructs OpenSSL to turn on cookie exchange.
Instructs OpenSSL to turn on cookie exchange.
@JSImport("node:crypto", "constants.SSL_OP_CRYPTOPRO_TLSEXT_BUG") @native
Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft.
Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft.
@JSImport("node:crypto", "constants.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS") @native
Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d.
Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d.
@JSImport("node:crypto", "constants.SSL_OP_EPHEMERAL_RSA") @native
Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations.
Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations.
@JSImport("node:crypto", "constants.SSL_OP_LEGACY_SERVER_CONNECT") @native
Allows initial connection to servers that do not support RI.
Allows initial connection to servers that do not support RI.
@JSImport("node:crypto", "constants.SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER") @native
@JSImport("node:crypto", "constants.SSL_OP_MICROSOFT_SESS_ID_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_MSIE_SSLV2_RSA_PADDING") @native
Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation.
Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation.
@JSImport("node:crypto", "constants.SSL_OP_NETSCAPE_CA_DN_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_NETSCAPE_CHALLENGE_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_COMPRESSION") @native
Instructs OpenSSL to disable support for SSL/TLS compression.
Instructs OpenSSL to disable support for SSL/TLS compression.
@JSImport("node:crypto", "constants.SSL_OP_NO_QUERY_MTU") @native
@JSImport("node:crypto", "constants.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION") @native
Instructs OpenSSL to always start a new session when performing renegotiation.
Instructs OpenSSL to always start a new session when performing renegotiation.
@JSImport("node:crypto", "constants.SSL_OP_NO_TICKET") @native
@JSImport("node:crypto", "constants.SSL_OP_PKCS1_CHECK_1") @native
@JSImport("node:crypto", "constants.SSL_OP_PKCS1_CHECK_2") @native
@JSImport("node:crypto", "constants.SSL_OP_SINGLE_DH_USE") @native
Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters.
Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters.
@JSImport("node:crypto", "constants.SSL_OP_SINGLE_ECDH_USE") @native
Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters.
Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters.
@JSImport("node:crypto", "constants.SSL_OP_SSLEAY_080_CLIENT_DH_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_TLS_BLOCK_PADDING_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_TLS_D5_BUG") @native
@JSImport("node:crypto", "constants.SSL_OP_TLS_ROLLBACK_BUG") @native
Instructs OpenSSL to disable version rollback attack detection.
Instructs OpenSSL to disable version rollback attack detection.
@JSImport("node:crypto", "constants.defaultCipherList") @native
Specifies the active default cipher list used by the current Node.js process (colon-separated values).
Specifies the active default cipher list used by the current Node.js process (colon-separated values).
@JSImport("node:crypto", "constants.defaultCoreCipherList") @native
Specifies the built-in default cipher list used by Node.js (colon-separated values).
Specifies the built-in default cipher list used by Node.js (colon-separated values).