constants

object constants
class Object
trait Matchable
class Any

Value members

Concrete fields

@JSImport("node:crypto", "constants.ALPN_ENABLED") @native
val ALPN_ENABLED: Double
@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
val ENGINE_METHOD_ALL: Double
@JSImport("node:crypto", "constants.ENGINE_METHOD_CIPHERS") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_DH") @native
val ENGINE_METHOD_DH: Double
@JSImport("node:crypto", "constants.ENGINE_METHOD_DIGESTS") @native
@JSImport("node:crypto", "constants.ENGINE_METHOD_DSA") @native
val ENGINE_METHOD_DSA: Double
@JSImport("node:crypto", "constants.ENGINE_METHOD_EC") @native
val ENGINE_METHOD_EC: Double
@JSImport("node:crypto", "constants.ENGINE_METHOD_NONE") @native
val ENGINE_METHOD_NONE: Double
@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
val ENGINE_METHOD_RAND: Double
@JSImport("node:crypto", "constants.ENGINE_METHOD_RSA") @native
val ENGINE_METHOD_RSA: Double
@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
val RSA_NO_PADDING: Double
@JSImport("node:crypto", "constants.RSA_PKCS1_OAEP_PADDING") @native
@JSImport("node:crypto", "constants.RSA_PKCS1_PADDING") @native
val RSA_PKCS1_PADDING: Double
@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
val RSA_SSLV23_PADDING: Double
@JSImport("node:crypto", "constants.RSA_X931_PADDING") @native
val RSA_X931_PADDING: Double
@JSImport("node:crypto", "constants.SSL_OP_NO_SSLv2") @native
val SSLOPNOSSLv2: Double
@JSImport("node:crypto", "constants.SSL_OP_NO_SSLv3") @native
val SSLOPNOSSLv3: Double
@JSImport("node:crypto", "constants.SSL_OP_NO_TLSv1") @native
val SSLOPNOTLSv1: Double
@JSImport("node:crypto", "constants.SSL_OP_NO_TLSv1_1") @native
val SSLOPNOTLSv11: Double
@JSImport("node:crypto", "constants.SSL_OP_NO_TLSv1_2") @native
val SSLOPNOTLSv12: Double
@JSImport("node:crypto", "constants.SSL_OP_ALL") @native
val SSL_OP_ALL: Double

Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail.

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.

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.

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_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
val SSL_OP_NO_QUERY_MTU: Double
@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
val SSL_OP_NO_TICKET: Double
@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
val SSL_OP_TLS_D5_BUG: Double
@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
val defaultCipherList: String

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).