bindings library
Raw ffigen-generated BoringSSL C bindings (bssl_dart),
bssl.OPENSSL_cleanse-backed opensslAllocator, scoped BoringArena, and
NativeHandle finalizer wrapper.
Classes
- ACCESS_DESCRIPTION_st
- An ACCESS_DESCRIPTION represents an AccessDescription structure (RFC 5280).
- aes_key_st
- aes_key_st should be an opaque type, but EVP requires that the size be known.
- ASN1_ITEM_st
- asn1_null_st
- asn1_object_st
- asn1_pctx_st
- asn1_string_st
-
An asn1_string_st (aka
ASN1_STRING) represents a value of a string-like ASN.1 type. It contains atypefield, and a byte stringdatafield with a type-specific representation. This type-specific representation does not always correspond to the DER encoding of the type. - asn1_type_st
-
An asn1_type_st (aka
ASN1_TYPE) represents an arbitrary ASN.1 element, typically used for ANY types. It contains atypefield and avalueunion dependent ontype. - ASN1_VALUE_st
- AUTHORITY_KEYID_st
-
A AUTHORITY_KEYID_st, aka
AUTHORITY_KEYID, represents an AuthorityKeyIdentifier structure (RFC 5280). - BASIC_CONSTRAINTS_st
-
A BASIC_CONSTRAINTS_st, aka
BASIC_CONSTRAINTSrepresents an BasicConstraints structure (RFC 5280). - bignum_ctx
- bignum_st
- Private functions
- bio_method_st
- bio_st
- blake2b_state_st
- bn_gencb_st
-
bn_gencb_st, or
BN_GENCB, holds a callback function that is used by generation functions that can take a very long time to complete. UseBN_GENCB_setto initialise aBN_GENCBstructure. - bn_mont_ctx_st
- bn_primality_result_t
- bn_primality_result_t enumerates the outcomes of primality-testing.
- BoringArena
- A scoped ffi.Allocator and resource tracker for calling BoringSSL.
- buf_mem_st
-
buf_mem_st (aka
BUF_MEM) is a generic buffer object used by OpenSSL. - cbb_buffer_st
- cbb_child_st
- cbb_st
- cbs_st
- CRYPTO ByteString
- cmac_ctx_st
- CMS_ContentInfo_st
- CMS_SignerInfo_st
- conf_st
- conf_value_st
- Config files.
- cpace_ctx_st
- cpace_role_t
- The role that a party plays in the CPACE key agreement protocol.
- crypto_buffer_pool_st
- crypto_buffer_st
- CRYPTO_dynlock
- CRYPTO_dynlock_value
- crypto_ex_data_st
- crypto_iovec_st
-
crypto_iovec_st (aka
CRYPTO_IOVECcombines a pointer to input data and a pointer to an output buffer with their common length. - crypto_ivec_st
-
crypto_ivec_st (aka
CRYPTO_IVEC) combines a pointer to input data with its length. It is usually passed as an array. - crypto_must_be_null_st
- ctr_drbg_state_st
- dh_st
- DIST_POINT_NAME_st
-
A DIST_POINT_NAME represents a DistributionPointName structure (RFC 5280).
The
namefield contains the CHOICE value and is determined bytype. Iftypeis zero,namemust be afullname. Iftypeis one,namemust be arelativename. - DIST_POINT_st
-
A DIST_POINT_st, aka
DIST_POINT, represents a DistributionPoint structure (RFC 5280). - DSA_SIG_st
-
DSA_SIG_st (aka
DSA_SIG) contains a DSA signature as a pair of integers. - dsa_st
- EC_builtin_curve
- EC_builtin_curve describes a supported elliptic curve.
- ec_group_st
- ec_key_st
- ec_method_st
- ec_point_st
- ecdsa_method_st
- ecdsa_method_st is a structure of function pointers for implementing ECDSA. See engine.h.
- ecdsa_sig_st
- Low-level signing and verification.
- EDIPartyName_st
- engine_st
- env_md_ctx_st
- env_md_ctx_st is typoed ("evp" -> "env"), but the typo comes from OpenSSL and some consumers forward-declare these structures so we're leaving it alone.
- env_md_st
- evp_aead_ctx_st
-
An evp_aead_ctx_st (typedefed as
EVP_AEAD_CTXin base.h) represents an AEAD algorithm configured with a specific key and message-independent IV. - evp_aead_ctx_st_state
- AEAD operations.
- evp_aead_direction_t
- evp_aead_direction_t denotes the direction of an AEAD operation.
- evp_aead_st
- evp_cipher_ctx_st
- evp_cipher_info_st
- evp_cipher_st
- evp_encode_ctx_st
- evp_hpke_aead_st
- evp_hpke_ctx_st
- evp_hpke_kdf_st
- evp_hpke_kem_st
- evp_hpke_key_st
- evp_kem_st
- evp_md_pctx_ops
- Internal constants and structures (hidden).
- evp_pkey_alg_st
- evp_pkey_ctx_st
- evp_pkey_st
- fips_counter_t
- fips_counter_t denotes specific APIs/algorithms. A counter is maintained for each in FIPS mode so that tests can be written to assert that the expected, FIPS functions are being called by a certain piece of code.
- GENERAL_NAME_st
-
A GENERAL_NAME_st, aka
GENERAL_NAME, represents an X.509 GeneralName. Thetypefield determines which member ofdis active. AGENERAL_NAMEmay also be empty, in which casetypeis -1 anddis NULL. EmptyGENERAL_NAMEs are invalid and will never be returned from the parser, but may be created temporarily, e.g. byGENERAL_NAME_new. - GENERAL_SUBTREE_st
- A GENERAL_SUBTREE represents a GeneralSubtree structure (RFC 5280).
- hmac_ctx_st
- Private functions
- ISSUING_DIST_POINT_st
-
A ISSUING_DIST_POINT_st, aka
ISSUING_DIST_POINT, represents a IssuingDistributionPoint structure (RFC 5280). - md4_state_st
- md5_state_st
- NAME_CONSTRAINTS_st
-
A NAME_CONSTRAINTS_st, aka
NAME_CONSTRAINTS, represents a NameConstraints structure (RFC 5280). -
NativeHandle<
T extends NativeType> -
A GC-managed wrapper around a BoringSSL
Pointer<T>that attaches a shared ffi.NativeFinalizer and supports deterministic dispose. - Netscape_spkac_st
-
A Netscape_spkac_st, or
NETSCAPE_SPKAC, represents a PublicKeyAndChallenge structure. This type is misnamed. The full SPKAC includes the signature, which is represented with theNETSCAPE_SPKItype. - Netscape_spki_st
-
A Netscape_spki_st, or
NETSCAPE_SPKI, represents a SignedPublicKeyAndChallenge structure. Although this structure contains aspkacfield of typeNETSCAPE_SPKAC, these are misnamed. The SPKAC is the entire structure, not the signed portion. - NOTICEREF_st
- A NOTICEREF represents a NoticeReference structure (RFC 5280).
- obj_name_st
- Deprecated functions.
- openssl_method_common_st
- openssl_method_common_st contains the common part of all method structures. This must be the first member of all method structures.
- OpenSslAllocator
- Implementation of ffi.Allocator using bssl.OPENSSL_malloc and bssl.OPENSSL_free.
- ossl_init_settings_st
- ossl_lib_ctx_st
- ossl_param_st
- otherName_st
- General names.
- pkcs12_st
- PKCS7
- PKCS7_SIGN_ENVELOPE
- PKCS7_SIGNED
- Deprecated functions.
- pkcs8_priv_key_info_st
- point_conversion_form_t
- point_conversion_form_t enumerates forms, as defined in X9.62 (ECDSA), for the encoding of an elliptic curve point (x,y)
- POLICY_CONSTRAINTS_st
- A POLICY_CONSTRAINTS represents a PolicyConstraints structure (RFC 5280).
- POLICY_MAPPING_st
- A POLICY_MAPPING represents an individual element of a PolicyMappings structure (RFC 5280).
- POLICYINFO_st
- A POLICYINFO represents a PolicyInformation structure (RFC 5280).
- POLICYQUALINFO_st
-
A POLICYQUALINFO represents a PolicyQualifierInfo structure (RFC 5280).
dcontains the qualifier field of the PolicyQualifierInfo. Its type is determined bypqualid. IfpqualidisNID_id_qt_cps,dmust becpsuri. IfpqualidisNID_id_qt_unotice,dmust beusernotice. Otherwise,dmust beother. - private_key_st
- X.509 information.
- rand_meth_st
-
rand_meth_st is typedefed to
RAND_METHODin base.h. It isn't used; it exists only to be the return type ofRAND_SSLeay. It's external so that variables of this type can be initialized. - rc4_key_st
- RIPEMD160state_st
- rsa_meth_st
- rsa_pss_params_st
-
An rsa_pss_params_st, aka
RSA_PSS_PARAMS, represents a parsed RSASSA-PSS-params structure, as defined in (RFC 4055). - rsa_st
- sha256_state_st
- sha512_state_st
- sha_state_st
- spake2_ctx_st
- spake2_role_t
- spake2_role_t enumerates the different “roles” in SPAKE2. The protocol requires that the symmetry of the two parties be broken so one participant must be “Alice” and the other be “Bob”.
- srtp_protection_profile_st
- ssl_cipher_st
- ssl_credential_st
- ssl_ctx_st
- ssl_early_callback_ctx
- ssl_ech_keys_st
- ssl_method_st
- ssl_private_key_method_st
- ssl_quic_method_st
- ssl_session_st
- ssl_st
- ssl_ticket_aead_method_st
- st_ERR_FNS
- stack_st
- stack_st_ACCESS_DESCRIPTION
- stack_st_ASN1_INTEGER
- Integers and enumerated values.
- stack_st_ASN1_OBJECT
- Object identifiers.
- stack_st_ASN1_TYPE
- stack_st_BIO
- Allocation and freeing.
- stack_st_CONF_VALUE
- stack_st_CRYPTO_BUFFER
- PKCS#7.
- stack_st_DIST_POINT
- stack_st_GENERAL_NAME
- stack_st_GENERAL_SUBTREE
- stack_st_OPENSSL_STRING
- stack_st_POLICY_MAPPING
- stack_st_POLICYINFO
- stack_st_POLICYQUALINFO
- stack_st_void
- stack_st_X509
- stack_st_X509_ALGOR
- Algorithm identifiers.
- stack_st_X509_ATTRIBUTE
- Attributes.
- stack_st_X509_CRL
- stack_st_X509_EXTENSION
- Extension lists.
- stack_st_X509_INFO
- stack_st_X509_NAME
- stack_st_X509_NAME_ENTRY
- Names.
- stack_st_X509_OBJECT
- stack_st_X509_REVOKED
- tm
- trust_token_client_st
- trust_token_issuer_st
- trust_token_method_st
- trust_token_st
- UnnamedStruct
- UnnamedUnion
- UnnamedUnion$1
- UnnamedUnion$2
- md_data contains the hash-specific context.
- UnnamedUnion$3
- UnnamedUnion$4
- UnnamedUnion$5
- UnnamedUnion$6
- UnnamedUnion$7
-
wpa_supplicant accesses
h0..h4so we must support those names for compatibility with it until it can be updated. Anonymous unions are only standard in C11, so disable this workaround in C++. - USERNOTICE_st
- A USERNOTICE represents a UserNotice structure (RFC 5280).
- v3_ext_ctx
-
v3_ext_ctx, aka
X509V3_CTX, contains additional context information for constructing extensions. Some string formats reference additional values in these objects. It must be initialized withX509V3_set_ctxorX509V3_set_ctx_testbefore use. - v3_ext_method
-
A v3_ext_method, aka
X509V3_EXT_METHOD, is a deprecated type which defines a custom extension. - X509_algor_st
- Private structures.
- x509_attributes_st
- X509_crl_st
- X509_extension_st
- X509_info_st
- x509_lookup_method_st
- x509_lookup_st
- X509_name_entry_st
- X509_name_st
- x509_object_st
- X509_pubkey_st
- x509_purpose_st
- X509_req_st
- x509_revoked_st
- X509_sig_st
- x509_st
- x509_store_ctx_st
- x509_store_st
- X509_VERIFY_PARAM_st
Extension Types
- SymbolAddresses
- The extension type for addresses providing access to the symbol addresses.
Extensions
- AllocatorCopyBytes on Allocator
- Copies Dart bytes into native memory.
-
CbbToBytes
on Pointer<
CBB> - Reads the contents of a bssl.CBB.
-
EvpPKeyInvoke2First
on R Function(Pointer<
EVP_PKEY> , A1) -
Convenience extension to invoke a 2-argument C function
(Pointer<EVP_PKEY>, A1)with a NativeHandle (for example,EVP_PKEY_CTX_new.invoke(pkey, nullptr)). -
EvpPKeyInvoke2Last
on R Function(A1, Pointer<
EVP_PKEY> ) -
Convenience extension to invoke a 2-argument C function
(A1, Pointer<EVP_PKEY>)with a NativeHandle (for example,EVP_marshal_public_key.invoke(cbb, pkey)). -
NativeHandleInvoke1
on R Function(Pointer<
P> ) -
Convenience extension to invoke a 1-argument C function taking
Pointer<P>with a NativeHandle. -
NativeHandleInvoke5Last
on R Function(A1, A2, A3, A4, Pointer<
P> ) -
Convenience extension to invoke a 5-argument C function
(A1, A2, A3, A4, Pointer<P>)with a NativeHandle (for example,EVP_DigestVerifyInit.invoke(ctx, pctx, md, nullptr, pkey)).
Constants
- addresses → const SymbolAddresses
-
The addresses of the functions releasing BoringSSL objects, for
NativeFinalizers. - AES_BLOCK_SIZE → const int
- AES_DECRYPT → const int
- AES_ENCRYPT → const int
- AES_MAXNR → const int
- CBS_ASN1_APPLICATION → const int
- CBS_ASN1_BITSTRING → const int
- CBS_ASN1_BMPSTRING → const int
- CBS_ASN1_BOOLEAN → const int
- CBS_ASN1_CLASS_MASK → const int
- CBS_ASN1_CONSTRUCTED → const int
- CBS_ASN1_CONTEXT_SPECIFIC → const int
- CBS_ASN1_ENUMERATED → const int
- CBS_ASN1_GENERALIZEDTIME → const int
- CBS_ASN1_GENERALSTRING → const int
- CBS_ASN1_GRAPHICSTRING → const int
- CBS_ASN1_IA5STRING → const int
- CBS_ASN1_INTEGER → const int
- CBS_ASN1_NULL → const int
- CBS_ASN1_NUMERICSTRING → const int
- CBS_ASN1_OBJECT → const int
- CBS_ASN1_OCTETSTRING → const int
- CBS_ASN1_PRINTABLESTRING → const int
- CBS_ASN1_PRIVATE → const int
- CBS_ASN1_RELATIVE_OID → const int
- CBS_ASN1_SEQUENCE → const int
- CBS_ASN1_SET → const int
- CBS_ASN1_T61STRING → const int
- CBS_ASN1_TAG_NUMBER_MASK → const int
- CBS_ASN1_TAG_SHIFT → const int
- CBS_ASN1_UNIVERSAL → const int
- CBS_ASN1_UNIVERSALSTRING → const int
- CBS_ASN1_UTCTIME → const int
- CBS_ASN1_UTF8STRING → const int
- CBS_ASN1_VIDEOTEXSTRING → const int
- CBS_ASN1_VISIBLESTRING → const int
- EC_PKEY_NO_PARAMETERS → const int
- EC_PKEY_NO_PUBKEY → const int
- EC_R_BIGNUM_OUT_OF_RANGE → const int
- EC_R_BUFFER_TOO_SMALL → const int
- EC_R_COORDINATES_OUT_OF_RANGE → const int
- EC_R_D2I_ECPKPARAMETERS_FAILURE → const int
- EC_R_DECODE_ERROR → const int
- EC_R_EC_GROUP_NEW_BY_NAME_FAILURE → const int
- EC_R_ENCODE_ERROR → const int
- EC_R_GROUP2PKPARAMETERS_FAILURE → const int
- EC_R_GROUP_MISMATCH → const int
- EC_R_I2D_ECPKPARAMETERS_FAILURE → const int
- EC_R_INCOMPATIBLE_OBJECTS → const int
- EC_R_INVALID_COFACTOR → const int
- EC_R_INVALID_COMPRESSED_POINT → const int
- EC_R_INVALID_COMPRESSION_BIT → const int
- EC_R_INVALID_ENCODING → const int
- EC_R_INVALID_FIELD → const int
- EC_R_INVALID_FORM → const int
- EC_R_INVALID_GROUP_ORDER → const int
- EC_R_INVALID_PRIVATE_KEY → const int
- EC_R_INVALID_SCALAR → const int
- EC_R_MISSING_PARAMETERS → const int
- EC_R_MISSING_PRIVATE_KEY → const int
- EC_R_NON_NAMED_CURVE → const int
- EC_R_NOT_INITIALIZED → const int
- EC_R_PKPARAMETERS2GROUP_FAILURE → const int
- EC_R_POINT_AT_INFINITY → const int
- EC_R_POINT_IS_NOT_ON_CURVE → const int
- EC_R_PUBLIC_KEY_VALIDATION_FAILED → const int
- EC_R_SLOT_FULL → const int
- EC_R_UNDEFINED_GENERATOR → const int
- EC_R_UNKNOWN_GROUP → const int
- EC_R_UNKNOWN_ORDER → const int
- EC_R_WRONG_CURVE_PARAMETERS → const int
- EC_R_WRONG_ORDER → const int
- ERR_LIB_ASN1 → const int
- ERR_LIB_BIO → const int
- ERR_LIB_BN → const int
- ERR_LIB_BUF → const int
- ERR_LIB_CIPHER → const int
- ERR_LIB_CMS → const int
- ERR_LIB_COMP → const int
- ERR_LIB_CONF → const int
- ERR_LIB_CRYPTO → const int
- ERR_LIB_DH → const int
- ERR_LIB_DIGEST → const int
- ERR_LIB_DSA → const int
- ERR_LIB_EC → const int
- ERR_LIB_ECDH → const int
- ERR_LIB_ECDSA → const int
- ERR_LIB_ENGINE → const int
- ERR_LIB_EVP → const int
- ERR_LIB_HKDF → const int
- ERR_LIB_HMAC → const int
- ERR_LIB_NONE → const int
- ERR_LIB_OBJ → const int
- ERR_LIB_OCSP → const int
- ERR_LIB_PEM → const int
- ERR_LIB_PKCS7 → const int
- ERR_LIB_PKCS8 → const int
- ERR_LIB_RAND → const int
- ERR_LIB_RSA → const int
- ERR_LIB_SSL → const int
- ERR_LIB_SYS → const int
- ERR_LIB_TRUST_TOKEN → const int
- ERR_LIB_UI → const int
- ERR_LIB_USER → const int
- ERR_LIB_X509 → const int
- ERR_LIB_X509V3 → const int
- EVP_AEAD_DEFAULT_TAG_LENGTH → const int
- EVP_AEAD_MAX_KEY_LENGTH → const int
- EVP_AEAD_MAX_NONCE_LENGTH → const int
- EVP_AEAD_MAX_OPEN_OVERHEAD → const int
- EVP_AEAD_MAX_OVERHEAD → const int
- EVP_CIPH_ALWAYS_CALL_INIT → const int
- EVP_CIPH_CBC_MODE → const int
- EVP_CIPH_CCM_MODE → const int
- EVP_CIPH_CFB_MODE → const int
- EVP_CIPH_CTR_MODE → const int
- EVP_CIPH_CTRL_INIT → const int
- EVP_CIPH_CUSTOM_COPY → const int
- EVP_CIPH_CUSTOM_IV → const int
- EVP_CIPH_ECB_MODE → const int
- EVP_CIPH_FLAG_AEAD_CIPHER → const int
- EVP_CIPH_FLAG_CUSTOM_CIPHER → const int
- EVP_CIPH_FLAG_NON_FIPS_ALLOW → const int
- EVP_CIPH_GCM_MODE → const int
- EVP_CIPH_NO_PADDING → const int
- EVP_CIPH_OCB_MODE → const int
- EVP_CIPH_OFB_MODE → const int
- EVP_CIPH_STREAM_CIPHER → const int
- EVP_CIPH_VARIABLE_LENGTH → const int
- EVP_CIPH_WRAP_MODE → const int
- EVP_CIPH_XTS_MODE → const int
- EVP_CIPHER_CTX_FLAG_WRAP_ALLOW → const int
- EVP_CTRL_AEAD_GET_TAG → const int
- EVP_CTRL_AEAD_SET_IV_FIXED → const int
- EVP_CTRL_AEAD_SET_IVLEN → const int
- EVP_CTRL_AEAD_SET_MAC_KEY → const int
- EVP_CTRL_AEAD_SET_TAG → const int
- EVP_CTRL_COPY → const int
- EVP_CTRL_GCM_GET_TAG → const int
- EVP_CTRL_GCM_IV_GEN → const int
- EVP_CTRL_GCM_SET_IV_FIXED → const int
- EVP_CTRL_GCM_SET_IV_INV → const int
- EVP_CTRL_GCM_SET_IVLEN → const int
- EVP_CTRL_GCM_SET_TAG → const int
- EVP_CTRL_GET_IVLEN → const int
- EVP_CTRL_GET_RC2_KEY_BITS → const int
- EVP_CTRL_GET_RC5_ROUNDS → const int
- EVP_CTRL_INIT → const int
- EVP_CTRL_PBE_PRF_NID → const int
- EVP_CTRL_RAND_KEY → const int
- EVP_CTRL_SET_KEY_LENGTH → const int
- EVP_CTRL_SET_RC2_KEY_BITS → const int
- EVP_CTRL_SET_RC5_ROUNDS → const int
- EVP_GCM_TLS_EXPLICIT_IV_LEN → const int
- EVP_GCM_TLS_FIXED_IV_LEN → const int
- EVP_GCM_TLS_TAG_LEN → const int
- EVP_MAX_BLOCK_LENGTH → const int
- EVP_MAX_IV_LENGTH → const int
- EVP_MAX_KEY_LENGTH → const int
- EVP_MAX_MD_BLOCK_SIZE → const int
- EVP_MAX_MD_DATA_SIZE → const int
- EVP_MAX_MD_SIZE → const int
- EVP_MD_CTX_FLAG_NON_FIPS_ALLOW → const int
- EVP_MD_FLAG_DIGALGID_ABSENT → const int
- EVP_MD_FLAG_XOF → const int
- EVP_PKEY_DH → const int
- EVP_PKEY_DSA → const int
- EVP_PKEY_EC → const int
- EVP_PKEY_ED25519 → const int
- EVP_PKEY_ED448 → const int
- EVP_PKEY_HKDF → const int
- EVP_PKEY_ML_DSA_44 → const int
- EVP_PKEY_ML_DSA_65 → const int
- EVP_PKEY_ML_DSA_87 → const int
- EVP_PKEY_ML_KEM_1024 → const int
- EVP_PKEY_ML_KEM_768 → const int
- EVP_PKEY_NONE → const int
- EVP_PKEY_RSA → const int
- EVP_PKEY_RSA2 → const int
- EVP_PKEY_RSA_PSS → const int
- EVP_PKEY_X25519 → const int
- EVP_PKEY_X448 → const int
- EVP_PKEY_XWING → const int
- EVP_R_BUFFER_TOO_SMALL → const int
- EVP_R_COMMAND_NOT_SUPPORTED → const int
- EVP_R_DECODE_ERROR → const int
- EVP_R_DIFFERENT_KEY_TYPES → const int
- EVP_R_DIFFERENT_PARAMETERS → const int
- EVP_R_EMPTY_PSK → const int
- EVP_R_ENCODE_ERROR → const int
- EVP_R_EXPECTING_A_DH_KEY → const int
- EVP_R_EXPECTING_A_DSA_KEY → const int
- EVP_R_EXPECTING_A_EC_KEY → const int
- EVP_R_EXPECTING_AN_RSA_KEY → const int
- EVP_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE → const int
- EVP_R_INVALID_BUFFER_SIZE → const int
- EVP_R_INVALID_CIPHERTEXT_LENGTH → const int
- EVP_R_INVALID_DIGEST_LENGTH → const int
- EVP_R_INVALID_DIGEST_TYPE → const int
- EVP_R_INVALID_ENTROPY_LENGTH → const int
- EVP_R_INVALID_KEYBITS → const int
- EVP_R_INVALID_MGF1_MD → const int
- EVP_R_INVALID_OPERATION → const int
- EVP_R_INVALID_PADDING_MODE → const int
- EVP_R_INVALID_PARAMETERS → const int
- EVP_R_INVALID_PEER_KEY → const int
- EVP_R_INVALID_PSS_SALTLEN → const int
- EVP_R_INVALID_SECRET_LENGTH → const int
- EVP_R_INVALID_SIGNATURE → const int
- EVP_R_KEYS_NOT_SET → const int
- EVP_R_MEMORY_LIMIT_EXCEEDED → const int
- EVP_R_MISSING_PARAMETERS → const int
- EVP_R_MISSING_PUBLIC_KEY → const int
- EVP_R_NO_DEFAULT_DIGEST → const int
- EVP_R_NO_KEY_SET → const int
- EVP_R_NO_MDC2_SUPPORT → const int
- EVP_R_NO_NID_FOR_CURVE → const int
- EVP_R_NO_OPERATION_SET → const int
- EVP_R_NO_PARAMETERS_SET → const int
- EVP_R_NOT_A_PRIVATE_KEY → const int
- EVP_R_NOT_XOF_OR_INVALID_LENGTH → const int
- EVP_R_OPERATION_NOT_INITIALIZED → const int
- EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE → const int
- EVP_R_OPERATON_NOT_INITIALIZED → const int
- EVP_R_PRIVATE_KEY_WAS_NOT_SEED → const int
- EVP_R_UNKNOWN_PUBLIC_KEY_TYPE → const int
- EVP_R_UNSUPPORTED_ALGORITHM → const int
- EVP_R_UNSUPPORTED_PUBLIC_KEY_TYPE → const int
- HKDF_R_OUTPUT_TOO_LARGE → const int
- MBSTRING_ASC → const int
- MBSTRING_BMP → const int
- MBSTRING_FLAG → const int
- MBSTRING_UNIV → const int
- MBSTRING_UTF8 → const int
- NID_aaControls → const int
- NID_ac_auditEntity → const int
- NID_ac_proxying → const int
- NID_ac_targeting → const int
- NID_account → const int
- NID_ad_ca_issuers → const int
- NID_ad_dvcs → const int
- NID_ad_OCSP → const int
- NID_ad_timeStamping → const int
- NID_aes_128_cbc → const int
- NID_aes_128_cbc_hmac_sha1 → const int
- NID_aes_128_ccm → const int
- NID_aes_128_cfb1 → const int
- NID_aes_128_cfb128 → const int
- NID_aes_128_cfb8 → const int
- NID_aes_128_ctr → const int
- NID_aes_128_ecb → const int
- NID_aes_128_gcm → const int
- NID_aes_128_ofb128 → const int
- NID_aes_128_xts → const int
- NID_aes_192_cbc → const int
- NID_aes_192_cbc_hmac_sha1 → const int
- NID_aes_192_ccm → const int
- NID_aes_192_cfb1 → const int
- NID_aes_192_cfb128 → const int
- NID_aes_192_cfb8 → const int
- NID_aes_192_ctr → const int
- NID_aes_192_ecb → const int
- NID_aes_192_gcm → const int
- NID_aes_192_ofb128 → const int
- NID_aes_256_cbc → const int
- NID_aes_256_cbc_hmac_sha1 → const int
- NID_aes_256_ccm → const int
- NID_aes_256_cfb1 → const int
- NID_aes_256_cfb128 → const int
- NID_aes_256_cfb8 → const int
- NID_aes_256_ctr → const int
- NID_aes_256_ecb → const int
- NID_aes_256_gcm → const int
- NID_aes_256_ofb128 → const int
- NID_aes_256_xts → const int
- NID_alg_mtcProof → const int
- NID_algorithm → const int
- NID_ansi_X9_62 → const int
- NID_any_policy → const int
- NID_anyExtendedKeyUsage → const int
- NID_aRecord → const int
- NID_associatedDomain → const int
- NID_associatedName → const int
- NID_audio → const int
- NID_auth_any → const int
- NID_auth_ecdsa → const int
- NID_auth_psk → const int
- NID_auth_rsa → const int
- NID_basic_constraints → const int
- NID_bf_cbc → const int
- NID_bf_cfb64 → const int
- NID_bf_ecb → const int
- NID_bf_ofb64 → const int
- NID_biometricInfo → const int
- NID_brainpoolP160r1 → const int
- NID_brainpoolP160t1 → const int
- NID_brainpoolP192r1 → const int
- NID_brainpoolP192t1 → const int
- NID_brainpoolP224r1 → const int
- NID_brainpoolP224t1 → const int
- NID_brainpoolP256r1 → const int
- NID_brainpoolP256t1 → const int
- NID_brainpoolP320r1 → const int
- NID_brainpoolP320t1 → const int
- NID_brainpoolP384r1 → const int
- NID_brainpoolP384t1 → const int
- NID_brainpoolP512r1 → const int
- NID_brainpoolP512t1 → const int
- NID_buildingName → const int
- NID_businessCategory → const int
- NID_cACertificate → const int
- NID_camellia_128_cbc → const int
- NID_camellia_128_cfb1 → const int
- NID_camellia_128_cfb128 → const int
- NID_camellia_128_cfb8 → const int
- NID_camellia_128_ecb → const int
- NID_camellia_128_ofb128 → const int
- NID_camellia_192_cbc → const int
- NID_camellia_192_cfb1 → const int
- NID_camellia_192_cfb128 → const int
- NID_camellia_192_cfb8 → const int
- NID_camellia_192_ecb → const int
- NID_camellia_192_ofb128 → const int
- NID_camellia_256_cbc → const int
- NID_camellia_256_cfb1 → const int
- NID_camellia_256_cfb128 → const int
- NID_camellia_256_cfb8 → const int
- NID_camellia_256_ecb → const int
- NID_camellia_256_ofb128 → const int
- NID_caRepository → const int
- NID_caseIgnoreIA5StringSyntax → const int
- NID_cast5_cbc → const int
- NID_cast5_cfb64 → const int
- NID_cast5_ecb → const int
- NID_cast5_ofb64 → const int
- NID_certBag → const int
- NID_certicom_arc → const int
- NID_certificate_issuer → const int
- NID_certificate_policies → const int
- NID_certificateRevocationList → const int
- NID_chacha20_poly1305 → const int
- NID_clearance → const int
- NID_client_auth → const int
- NID_cmac → const int
- NID_cNAMERecord → const int
- NID_code_sign → const int
- NID_commonName → const int
- NID_countryName → const int
- NID_crl_distribution_points → const int
- NID_crl_number → const int
- NID_crl_reason → const int
- NID_crlBag → const int
- NID_crossCertificatePair → const int
- NID_cryptocom → const int
- NID_cryptopro → const int
- NID_data → const int
- NID_dcObject → const int
- NID_delta_crl → const int
- NID_deltaRevocationList → const int
- NID_des_cbc → const int
- NID_des_cdmf → const int
- NID_des_cfb1 → const int
- NID_des_cfb64 → const int
- NID_des_cfb8 → const int
- NID_des_ecb → const int
- NID_des_ede3_cbc → const int
- NID_des_ede3_cfb1 → const int
- NID_des_ede3_cfb64 → const int
- NID_des_ede3_cfb8 → const int
- NID_des_ede3_ecb → const int
- NID_des_ede3_ofb64 → const int
- NID_des_ede_cbc → const int
- NID_des_ede_cfb64 → const int
- NID_des_ede_ecb → const int
- NID_des_ede_ofb64 → const int
- NID_des_ofb64 → const int
- NID_description → const int
- NID_destinationIndicator → const int
- NID_desx_cbc → const int
- NID_dh_cofactor_kdf → const int
- NID_dh_std_kdf → const int
- NID_dhKeyAgreement → const int
- NID_dhpublicnumber → const int
- NID_dhSinglePass_cofactorDH_sha1kdf_scheme → const int
- NID_dhSinglePass_cofactorDH_sha224kdf_scheme → const int
- NID_dhSinglePass_cofactorDH_sha256kdf_scheme → const int
- NID_dhSinglePass_cofactorDH_sha384kdf_scheme → const int
- NID_dhSinglePass_cofactorDH_sha512kdf_scheme → const int
- NID_dhSinglePass_stdDH_sha1kdf_scheme → const int
- NID_dhSinglePass_stdDH_sha224kdf_scheme → const int
- NID_dhSinglePass_stdDH_sha256kdf_scheme → const int
- NID_dhSinglePass_stdDH_sha384kdf_scheme → const int
- NID_dhSinglePass_stdDH_sha512kdf_scheme → const int
- NID_Directory → const int
- NID_distinguishedName → const int
- NID_dITRedirect → const int
- NID_dmdName → const int
- NID_dnQualifier → const int
- NID_dNSDomain → const int
- NID_document → const int
- NID_documentAuthor → const int
- NID_documentIdentifier → const int
- NID_documentLocation → const int
- NID_documentPublisher → const int
- NID_documentSeries → const int
- NID_documentTitle → const int
- NID_documentVersion → const int
- NID_dod → const int
- NID_Domain → const int
- NID_domainComponent → const int
- NID_domainRelatedObject → const int
- NID_dsa → const int
- NID_dsa_2 → const int
- NID_dsa_with_SHA224 → const int
- NID_dsa_with_SHA256 → const int
- NID_dSAQuality → const int
- NID_dsaWithSHA → const int
- NID_dsaWithSHA1 → const int
- NID_dsaWithSHA1_2 → const int
- NID_dvcs → const int
- NID_ecdsa_with_Recommended → const int
- NID_ecdsa_with_SHA1 → const int
- NID_ecdsa_with_SHA224 → const int
- NID_ecdsa_with_SHA256 → const int
- NID_ecdsa_with_SHA384 → const int
- NID_ecdsa_with_SHA512 → const int
- NID_ecdsa_with_Specified → const int
- NID_ED25519 → const int
- NID_ED448 → const int
- NID_email_protect → const int
- NID_enhancedSearchGuide → const int
- NID_Enterprises → const int
- NID_Experimental → const int
- NID_ext_key_usage → const int
- NID_ext_req → const int
- NID_facsimileTelephoneNumber → const int
- NID_favouriteDrink → const int
- NID_freshest_crl → const int
- NID_friendlyCountry → const int
- NID_friendlyCountryName → const int
- NID_friendlyName → const int
- NID_generationQualifier → const int
- NID_givenName → const int
- NID_gost89_cnt → const int
- NID_hkdf → const int
- NID_hmac → const int
- NID_hmac_md5 → const int
- NID_hmac_sha1 → const int
- NID_hmacWithMD5 → const int
- NID_hmacWithSHA1 → const int
- NID_hmacWithSHA224 → const int
- NID_hmacWithSHA256 → const int
- NID_hmacWithSHA384 → const int
- NID_hmacWithSHA512 → const int
- NID_hold_instruction_call_issuer → const int
- NID_hold_instruction_code → const int
- NID_hold_instruction_none → const int
- NID_hold_instruction_reject → const int
- NID_homePostalAddress → const int
- NID_homeTelephoneNumber → const int
- NID_host → const int
- NID_houseIdentifier → const int
- NID_iA5StringSyntax → const int
- NID_iana → const int
- NID_id_aca → const int
- NID_id_aca_accessIdentity → const int
- NID_id_aca_authenticationInfo → const int
- NID_id_aca_chargingIdentity → const int
- NID_id_aca_encAttrs → const int
- NID_id_aca_group → const int
- NID_id_aca_role → const int
- NID_id_ad → const int
- NID_id_aes128_wrap → const int
- NID_id_aes128_wrap_pad → const int
- NID_id_aes192_wrap → const int
- NID_id_aes192_wrap_pad → const int
- NID_id_aes256_wrap → const int
- NID_id_aes256_wrap_pad → const int
- NID_id_alg → const int
- NID_id_alg_des40 → const int
- NID_id_alg_dh_pop → const int
- NID_id_alg_dh_sig_hmac_sha1 → const int
- NID_id_alg_noSignature → const int
- NID_id_alg_PWRI_KEK → const int
- NID_id_camellia128_wrap → const int
- NID_id_camellia192_wrap → const int
- NID_id_camellia256_wrap → const int
- NID_id_cct → const int
- NID_id_cct_crs → const int
- NID_id_cct_PKIData → const int
- NID_id_cct_PKIResponse → const int
- NID_id_ce → const int
- NID_id_cmc → const int
- NID_id_cmc_addExtensions → const int
- NID_id_cmc_confirmCertAcceptance → const int
- NID_id_cmc_dataReturn → const int
- NID_id_cmc_decryptedPOP → const int
- NID_id_cmc_encryptedPOP → const int
- NID_id_cmc_getCert → const int
- NID_id_cmc_getCRL → const int
- NID_id_cmc_identification → const int
- NID_id_cmc_identityProof → const int
- NID_id_cmc_lraPOPWitness → const int
- NID_id_cmc_popLinkRandom → const int
- NID_id_cmc_popLinkWitness → const int
- NID_id_cmc_queryPending → const int
- NID_id_cmc_recipientNonce → const int
- NID_id_cmc_regInfo → const int
- NID_id_cmc_responseInfo → const int
- NID_id_cmc_revokeRequest → const int
- NID_id_cmc_senderNonce → const int
- NID_id_cmc_statusInfo → const int
- NID_id_cmc_transactionId → const int
- NID_id_ct_asciiTextWithCRLF → const int
- NID_id_DHBasedMac → const int
- NID_id_Gost28147_89 → const int
- NID_id_Gost28147_89_cc → const int
- NID_id_Gost28147_89_CryptoPro_A_ParamSet → const int
- NID_id_Gost28147_89_CryptoPro_B_ParamSet → const int
- NID_id_Gost28147_89_CryptoPro_C_ParamSet → const int
- NID_id_Gost28147_89_CryptoPro_D_ParamSet → const int
- NID_id_Gost28147_89_CryptoPro_KeyMeshing → const int
- NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet → const int
- NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet → const int
- NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet → const int
- NID_id_Gost28147_89_MAC → const int
- NID_id_Gost28147_89_None_KeyMeshing → const int
- NID_id_Gost28147_89_TestParamSet → const int
- NID_id_GostR3410_2001 → const int
- NID_id_GostR3410_2001_cc → const int
- NID_id_GostR3410_2001_CryptoPro_A_ParamSet → const int
- NID_id_GostR3410_2001_CryptoPro_B_ParamSet → const int
- NID_id_GostR3410_2001_CryptoPro_C_ParamSet → const int
- NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet → const int
- NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet → const int
- NID_id_GostR3410_2001_ParamSet_cc → const int
- NID_id_GostR3410_2001_TestParamSet → const int
- NID_id_GostR3410_2001DH → const int
- NID_id_GostR3410_94 → const int
- NID_id_GostR3410_94_a → const int
- NID_id_GostR3410_94_aBis → const int
- NID_id_GostR3410_94_b → const int
- NID_id_GostR3410_94_bBis → const int
- NID_id_GostR3410_94_cc → const int
- NID_id_GostR3410_94_CryptoPro_A_ParamSet → const int
- NID_id_GostR3410_94_CryptoPro_B_ParamSet → const int
- NID_id_GostR3410_94_CryptoPro_C_ParamSet → const int
- NID_id_GostR3410_94_CryptoPro_D_ParamSet → const int
- NID_id_GostR3410_94_CryptoPro_XchA_ParamSet → const int
- NID_id_GostR3410_94_CryptoPro_XchB_ParamSet → const int
- NID_id_GostR3410_94_CryptoPro_XchC_ParamSet → const int
- NID_id_GostR3410_94_TestParamSet → const int
- NID_id_GostR3410_94DH → const int
- NID_id_GostR3411_94 → const int
- NID_id_GostR3411_94_CryptoProParamSet → const int
- NID_id_GostR3411_94_prf → const int
- NID_id_GostR3411_94_TestParamSet → const int
- NID_id_GostR3411_94_with_GostR3410_2001 → const int
- NID_id_GostR3411_94_with_GostR3410_2001_cc → const int
- NID_id_GostR3411_94_with_GostR3410_94 → const int
- NID_id_GostR3411_94_with_GostR3410_94_cc → const int
- NID_id_hex_multipart_message → const int
- NID_id_hex_partial_message → const int
- NID_id_HMACGostR3411_94 → const int
- NID_id_it → const int
- NID_id_it_caKeyUpdateInfo → const int
- NID_id_it_caProtEncCert → const int
- NID_id_it_confirmWaitTime → const int
- NID_id_it_currentCRL → const int
- NID_id_it_encKeyPairTypes → const int
- NID_id_it_implicitConfirm → const int
- NID_id_it_keyPairParamRep → const int
- NID_id_it_keyPairParamReq → const int
- NID_id_it_origPKIMessage → const int
- NID_id_it_preferredSymmAlg → const int
- NID_id_it_revPassphrase → const int
- NID_id_it_signKeyPairTypes → const int
- NID_id_it_subscriptionRequest → const int
- NID_id_it_subscriptionResponse → const int
- NID_id_it_suppLangTags → const int
- NID_id_it_unsupportedOIDs → const int
- NID_id_kp → const int
- NID_id_mod_attribute_cert → const int
- NID_id_mod_cmc → const int
- NID_id_mod_cmp → const int
- NID_id_mod_cmp2000 → const int
- NID_id_mod_crmf → const int
- NID_id_mod_dvcs → const int
- NID_id_mod_kea_profile_88 → const int
- NID_id_mod_kea_profile_93 → const int
- NID_id_mod_ocsp → const int
- NID_id_mod_qualified_cert_88 → const int
- NID_id_mod_qualified_cert_93 → const int
- NID_id_mod_timestamp_protocol → const int
- NID_id_on → const int
- NID_id_on_permanentIdentifier → const int
- NID_id_on_personalData → const int
- NID_id_PasswordBasedMAC → const int
- NID_id_pbkdf2 → const int
- NID_id_pda → const int
- NID_id_pda_countryOfCitizenship → const int
- NID_id_pda_countryOfResidence → const int
- NID_id_pda_dateOfBirth → const int
- NID_id_pda_gender → const int
- NID_id_pda_placeOfBirth → const int
- NID_id_pe → const int
- NID_id_pkip → const int
- NID_id_pkix → const int
- NID_id_pkix1_explicit_88 → const int
- NID_id_pkix1_explicit_93 → const int
- NID_id_pkix1_implicit_88 → const int
- NID_id_pkix1_implicit_93 → const int
- NID_id_pkix_mod → const int
- NID_id_pkix_OCSP_acceptableResponses → const int
- NID_id_pkix_OCSP_archiveCutoff → const int
- NID_id_pkix_OCSP_basic → const int
- NID_id_pkix_OCSP_CrlID → const int
- NID_id_pkix_OCSP_extendedStatus → const int
- NID_id_pkix_OCSP_noCheck → const int
- NID_id_pkix_OCSP_Nonce → const int
- NID_id_pkix_OCSP_path → const int
- NID_id_pkix_OCSP_serviceLocator → const int
- NID_id_pkix_OCSP_trustRoot → const int
- NID_id_pkix_OCSP_valid → const int
- NID_id_ppl → const int
- NID_id_ppl_anyLanguage → const int
- NID_id_ppl_inheritAll → const int
- NID_id_qcs → const int
- NID_id_qcs_pkixQCSyntax_v1 → const int
- NID_id_qt → const int
- NID_id_qt_cps → const int
- NID_id_qt_unotice → const int
- NID_id_regCtrl → const int
- NID_id_regCtrl_authenticator → const int
- NID_id_regCtrl_oldCertID → const int
- NID_id_regCtrl_pkiArchiveOptions → const int
- NID_id_regCtrl_pkiPublicationInfo → const int
- NID_id_regCtrl_protocolEncrKey → const int
- NID_id_regCtrl_regToken → const int
- NID_id_regInfo → const int
- NID_id_regInfo_certReq → const int
- NID_id_regInfo_utf8Pairs → const int
- NID_id_set → const int
- NID_id_smime_aa → const int
- NID_id_smime_aa_contentHint → const int
- NID_id_smime_aa_contentIdentifier → const int
- NID_id_smime_aa_contentReference → const int
- NID_id_smime_aa_dvcs_dvc → const int
- NID_id_smime_aa_encapContentType → const int
- NID_id_smime_aa_encrypKeyPref → const int
- NID_id_smime_aa_equivalentLabels → const int
- NID_id_smime_aa_ets_archiveTimeStamp → const int
- NID_id_smime_aa_ets_certCRLTimestamp → const int
- NID_id_smime_aa_ets_CertificateRefs → const int
- NID_id_smime_aa_ets_certValues → const int
- NID_id_smime_aa_ets_commitmentType → const int
- NID_id_smime_aa_ets_contentTimestamp → const int
- NID_id_smime_aa_ets_escTimeStamp → const int
- NID_id_smime_aa_ets_otherSigCert → const int
- NID_id_smime_aa_ets_RevocationRefs → const int
- NID_id_smime_aa_ets_revocationValues → const int
- NID_id_smime_aa_ets_signerAttr → const int
- NID_id_smime_aa_ets_signerLocation → const int
- NID_id_smime_aa_ets_sigPolicyId → const int
- NID_id_smime_aa_macValue → const int
- NID_id_smime_aa_mlExpandHistory → const int
- NID_id_smime_aa_msgSigDigest → const int
- NID_id_smime_aa_receiptRequest → const int
- NID_id_smime_aa_securityLabel → const int
- NID_id_smime_aa_signatureType → const int
- NID_id_smime_aa_signingCertificate → const int
- NID_id_smime_aa_smimeEncryptCerts → const int
- NID_id_smime_aa_timeStampToken → const int
- NID_id_smime_alg → const int
- NID_id_smime_alg_3DESwrap → const int
- NID_id_smime_alg_CMS3DESwrap → const int
- NID_id_smime_alg_CMSRC2wrap → const int
- NID_id_smime_alg_ESDH → const int
- NID_id_smime_alg_ESDHwith3DES → const int
- NID_id_smime_alg_ESDHwithRC2 → const int
- NID_id_smime_alg_RC2wrap → const int
- NID_id_smime_cd → const int
- NID_id_smime_cd_ldap → const int
- NID_id_smime_ct → const int
- NID_id_smime_ct_authData → const int
- NID_id_smime_ct_compressedData → const int
- NID_id_smime_ct_contentInfo → const int
- NID_id_smime_ct_DVCSRequestData → const int
- NID_id_smime_ct_DVCSResponseData → const int
- NID_id_smime_ct_publishCert → const int
- NID_id_smime_ct_receipt → const int
- NID_id_smime_ct_TDTInfo → const int
- NID_id_smime_ct_TSTInfo → const int
- NID_id_smime_cti → const int
- NID_id_smime_cti_ets_proofOfApproval → const int
- NID_id_smime_cti_ets_proofOfCreation → const int
- NID_id_smime_cti_ets_proofOfDelivery → const int
- NID_id_smime_cti_ets_proofOfOrigin → const int
- NID_id_smime_cti_ets_proofOfReceipt → const int
- NID_id_smime_cti_ets_proofOfSender → const int
- NID_id_smime_mod → const int
- NID_id_smime_mod_cms → const int
- NID_id_smime_mod_ess → const int
- NID_id_smime_mod_ets_eSignature_88 → const int
- NID_id_smime_mod_ets_eSignature_97 → const int
- NID_id_smime_mod_ets_eSigPolicy_88 → const int
- NID_id_smime_mod_ets_eSigPolicy_97 → const int
- NID_id_smime_mod_msg_v3 → const int
- NID_id_smime_mod_oid → const int
- NID_id_smime_spq → const int
- NID_id_smime_spq_ets_sqt_unotice → const int
- NID_id_smime_spq_ets_sqt_uri → const int
- NID_idea_cbc → const int
- NID_idea_cfb64 → const int
- NID_idea_ecb → const int
- NID_idea_ofb64 → const int
- NID_identified_organization → const int
- NID_Independent → const int
- NID_info → const int
- NID_info_access → const int
- NID_inhibit_any_policy → const int
- NID_initials → const int
- NID_international_organizations → const int
- NID_internationaliSDNNumber → const int
- NID_invalidity_date → const int
- NID_ipsec3 → const int
- NID_ipsec4 → const int
- NID_ipsecEndSystem → const int
- NID_ipsecTunnel → const int
- NID_ipsecUser → const int
- NID_iso → const int
- NID_ISO_US → const int
- NID_issuer_alt_name → const int
- NID_issuing_distribution_point → const int
- NID_itu_t → const int
- NID_janetMailbox → const int
- NID_joint_iso_itu_t → const int
- NID_key_usage → const int
- NID_keyBag → const int
- NID_kisa → const int
- NID_kx_any → const int
- NID_kx_ecdhe → const int
- NID_kx_psk → const int
- NID_kx_rsa → const int
- NID_lastModifiedBy → const int
- NID_lastModifiedTime → const int
- NID_localityName → const int
- NID_localKeyID → const int
- NID_LocalKeySet → const int
- NID_Mail → const int
- NID_mailPreferenceOption → const int
- NID_Management → const int
- NID_manager → const int
- NID_md2 → const int
- NID_md2WithRSAEncryption → const int
- NID_md4 → const int
- NID_md4WithRSAEncryption → const int
- NID_md5 → const int
- NID_md5_sha1 → const int
- NID_md5WithRSA → const int
- NID_md5WithRSAEncryption → const int
- NID_mdc2 → const int
- NID_mdc2WithRSA → const int
- NID_member → const int
- NID_member_body → const int
- NID_mgf1 → const int
- NID_mime_mhs → const int
- NID_mime_mhs_bodies → const int
- NID_mime_mhs_headings → const int
- NID_ML_DSA_44 → const int
- NID_ML_DSA_65 → const int
- NID_ML_DSA_87 → const int
- NID_ML_KEM_1024 → const int
- NID_ML_KEM_768 → const int
- NID_mobileTelephoneNumber → const int
- NID_ms_code_com → const int
- NID_ms_code_ind → const int
- NID_ms_csp_name → const int
- NID_ms_ctl_sign → const int
- NID_ms_efs → const int
- NID_ms_ext_req → const int
- NID_ms_sgc → const int
- NID_ms_smartcard_login → const int
- NID_ms_upn → const int
- NID_mXRecord → const int
- NID_name → const int
- NID_name_constraints → const int
- NID_netscape → const int
- NID_netscape_base_url → const int
- NID_netscape_ca_policy_url → const int
- NID_netscape_ca_revocation_url → const int
- NID_netscape_cert_extension → const int
- NID_netscape_cert_sequence → const int
- NID_netscape_cert_type → const int
- NID_netscape_comment → const int
- NID_netscape_data_type → const int
- NID_netscape_renewal_url → const int
- NID_netscape_revocation_url → const int
- NID_netscape_ssl_server_name → const int
- NID_no_rev_avail → const int
- NID_ns_sgc → const int
- NID_nSRecord → const int
- NID_OCSP_sign → const int
- NID_org → const int
- NID_organizationalStatus → const int
- NID_organizationalUnitName → const int
- NID_organizationName → const int
- NID_otherMailbox → const int
- NID_owner → const int
- NID_pagerTelephoneNumber → const int
- NID_pbe_WithSHA1And128BitRC2_CBC → const int
- NID_pbe_WithSHA1And128BitRC4 → const int
- NID_pbe_WithSHA1And2_Key_TripleDES_CBC → const int
- NID_pbe_WithSHA1And3_Key_TripleDES_CBC → const int
- NID_pbe_WithSHA1And40BitRC2_CBC → const int
- NID_pbe_WithSHA1And40BitRC4 → const int
- NID_pbes2 → const int
- NID_pbeWithMD2AndDES_CBC → const int
- NID_pbeWithMD2AndRC2_CBC → const int
- NID_pbeWithMD5AndCast5_CBC → const int
- NID_pbeWithMD5AndDES_CBC → const int
- NID_pbeWithMD5AndRC2_CBC → const int
- NID_pbeWithSHA1AndDES_CBC → const int
- NID_pbeWithSHA1AndRC2_CBC → const int
- NID_pbmac1 → const int
- NID_pe_mtcCertificationAuthority_SHA256 → const int
- NID_personalSignature → const int
- NID_personalTitle → const int
- NID_photo → const int
- NID_physicalDeliveryOfficeName → const int
- NID_pilot → const int
- NID_pilotAttributeSyntax → const int
- NID_pilotAttributeType → const int
- NID_pilotAttributeType27 → const int
- NID_pilotDSA → const int
- NID_pilotGroups → const int
- NID_pilotObject → const int
- NID_pilotObjectClass → const int
- NID_pilotOrganization → const int
- NID_pilotPerson → const int
- NID_pkcs → const int
- NID_pkcs1 → const int
- NID_pkcs3 → const int
- NID_pkcs5 → const int
- NID_pkcs7 → const int
- NID_pkcs7_data → const int
- NID_pkcs7_digest → const int
- NID_pkcs7_encrypted → const int
- NID_pkcs7_enveloped → const int
- NID_pkcs7_signed → const int
- NID_pkcs7_signedAndEnveloped → const int
- NID_pkcs8ShroudedKeyBag → const int
- NID_pkcs9 → const int
- NID_pkcs9_challengePassword → const int
- NID_pkcs9_contentType → const int
- NID_pkcs9_countersignature → const int
- NID_pkcs9_emailAddress → const int
- NID_pkcs9_extCertAttributes → const int
- NID_pkcs9_messageDigest → const int
- NID_pkcs9_signingTime → const int
- NID_pkcs9_unstructuredAddress → const int
- NID_pkcs9_unstructuredName → const int
- NID_policy_constraints → const int
- NID_policy_mappings → const int
- NID_postalAddress → const int
- NID_postalCode → const int
- NID_postOfficeBox → const int
- NID_preferredDeliveryMethod → const int
- NID_presentationAddress → const int
- NID_Private → const int
- NID_private_key_usage_period → const int
- NID_protocolInformation → const int
- NID_proxyCertInfo → const int
- NID_pseudonym → const int
- NID_pSpecified → const int
- NID_pss → const int
- NID_qcStatements → const int
- NID_qualityLabelledData → const int
- NID_rc2_40_cbc → const int
- NID_rc2_64_cbc → const int
- NID_rc2_cbc → const int
- NID_rc2_cfb64 → const int
- NID_rc2_ecb → const int
- NID_rc2_ofb64 → const int
- NID_rc4 → const int
- NID_rc4_40 → const int
- NID_rc4_hmac_md5 → const int
- NID_rc5_cbc → const int
- NID_rc5_cfb64 → const int
- NID_rc5_ecb → const int
- NID_rc5_ofb64 → const int
- NID_rdna_trustAnchorID → const int
- NID_registeredAddress → const int
- NID_rFC822localPart → const int
- NID_rfc822Mailbox → const int
- NID_ripemd160 → const int
- NID_ripemd160WithRSA → const int
- NID_role → const int
- NID_roleOccupant → const int
- NID_room → const int
- NID_roomNumber → const int
- NID_rsa → const int
- NID_rsadsi → const int
- NID_rsaEncryption → const int
- NID_rsaesOaep → const int
- NID_rsaOAEPEncryptionSET → const int
- NID_rsaSignature → const int
- NID_rsassaPss → const int
- NID_safeContentsBag → const int
- NID_sbgp_autonomousSysNum → const int
- NID_sbgp_ipAddrBlock → const int
- NID_sbgp_routerIdentifier → const int
- NID_sdsiCertificate → const int
- NID_searchGuide → const int
- NID_secp112r1 → const int
- NID_secp112r2 → const int
- NID_secp128r1 → const int
- NID_secp128r2 → const int
- NID_secp160k1 → const int
- NID_secp160r1 → const int
- NID_secp160r2 → const int
- NID_secp192k1 → const int
- NID_secp224k1 → const int
- NID_secp224r1 → const int
- NID_secp256k1 → const int
- NID_secp384r1 → const int
- NID_secp521r1 → const int
- NID_secretary → const int
- NID_secretBag → const int
- NID_sect113r1 → const int
- NID_sect113r2 → const int
- NID_sect131r1 → const int
- NID_sect131r2 → const int
- NID_sect163k1 → const int
- NID_sect163r1 → const int
- NID_sect163r2 → const int
- NID_sect193r1 → const int
- NID_sect193r2 → const int
- NID_sect233k1 → const int
- NID_sect233r1 → const int
- NID_sect239k1 → const int
- NID_sect283k1 → const int
- NID_sect283r1 → const int
- NID_sect409k1 → const int
- NID_sect409r1 → const int
- NID_sect571k1 → const int
- NID_sect571r1 → const int
- NID_Security → const int
- NID_seeAlso → const int
- NID_seed_cbc → const int
- NID_seed_cfb128 → const int
- NID_seed_ecb → const int
- NID_seed_ofb128 → const int
- NID_selected_attribute_types → const int
- NID_serialNumber → const int
- NID_server_auth → const int
- NID_set_addPolicy → const int
- NID_set_attr → const int
- NID_set_brand → const int
- NID_set_brand_AmericanExpress → const int
- NID_set_brand_Diners → const int
- NID_set_brand_IATA_ATA → const int
- NID_set_brand_JCB → const int
- NID_set_brand_MasterCard → const int
- NID_set_brand_Novus → const int
- NID_set_brand_Visa → const int
- NID_set_certExt → const int
- NID_set_ctype → const int
- NID_set_msgExt → const int
- NID_set_policy → const int
- NID_set_policy_root → const int
- NID_set_rootKeyThumb → const int
- NID_setAttr_Cert → const int
- NID_setAttr_GenCryptgrm → const int
- NID_setAttr_IssCap → const int
- NID_setAttr_IssCap_CVM → const int
- NID_setAttr_IssCap_Sig → const int
- NID_setAttr_IssCap_T2 → const int
- NID_setAttr_PGWYcap → const int
- NID_setAttr_SecDevSig → const int
- NID_setAttr_T2cleartxt → const int
- NID_setAttr_T2Enc → const int
- NID_setAttr_Token_B0Prime → const int
- NID_setAttr_Token_EMV → const int
- NID_setAttr_TokenType → const int
- NID_setAttr_TokICCsig → const int
- NID_setCext_cCertRequired → const int
- NID_setCext_certType → const int
- NID_setCext_hashedRoot → const int
- NID_setCext_IssuerCapabilities → const int
- NID_setCext_merchData → const int
- NID_setCext_PGWYcapabilities → const int
- NID_setCext_setExt → const int
- NID_setCext_setQualf → const int
- NID_setCext_TokenIdentifier → const int
- NID_setCext_TokenType → const int
- NID_setCext_Track2Data → const int
- NID_setCext_tunneling → const int
- NID_setct_AcqCardCodeMsg → const int
- NID_setct_AcqCardCodeMsgTBE → const int
- NID_setct_AuthReqTBE → const int
- NID_setct_AuthReqTBS → const int
- NID_setct_AuthResBaggage → const int
- NID_setct_AuthResTBE → const int
- NID_setct_AuthResTBEX → const int
- NID_setct_AuthResTBS → const int
- NID_setct_AuthResTBSX → const int
- NID_setct_AuthRevReqBaggage → const int
- NID_setct_AuthRevReqTBE → const int
- NID_setct_AuthRevReqTBS → const int
- NID_setct_AuthRevResBaggage → const int
- NID_setct_AuthRevResData → const int
- NID_setct_AuthRevResTBE → const int
- NID_setct_AuthRevResTBEB → const int
- NID_setct_AuthRevResTBS → const int
- NID_setct_AuthTokenTBE → const int
- NID_setct_AuthTokenTBS → const int
- NID_setct_BatchAdminReqData → const int
- NID_setct_BatchAdminReqTBE → const int
- NID_setct_BatchAdminResData → const int
- NID_setct_BatchAdminResTBE → const int
- NID_setct_BCIDistributionTBS → const int
- NID_setct_CapReqTBE → const int
- NID_setct_CapReqTBEX → const int
- NID_setct_CapReqTBS → const int
- NID_setct_CapReqTBSX → const int
- NID_setct_CapResData → const int
- NID_setct_CapResTBE → const int
- NID_setct_CapRevReqTBE → const int
- NID_setct_CapRevReqTBEX → const int
- NID_setct_CapRevReqTBS → const int
- NID_setct_CapRevReqTBSX → const int
- NID_setct_CapRevResData → const int
- NID_setct_CapRevResTBE → const int
- NID_setct_CapTokenData → const int
- NID_setct_CapTokenSeq → const int
- NID_setct_CapTokenTBE → const int
- NID_setct_CapTokenTBEX → const int
- NID_setct_CapTokenTBS → const int
- NID_setct_CardCInitResTBS → const int
- NID_setct_CertInqReqTBS → const int
- NID_setct_CertReqData → const int
- NID_setct_CertReqTBE → const int
- NID_setct_CertReqTBEX → const int
- NID_setct_CertReqTBS → const int
- NID_setct_CertResData → const int
- NID_setct_CertResTBE → const int
- NID_setct_CredReqTBE → const int
- NID_setct_CredReqTBEX → const int
- NID_setct_CredReqTBS → const int
- NID_setct_CredReqTBSX → const int
- NID_setct_CredResData → const int
- NID_setct_CredResTBE → const int
- NID_setct_CredRevReqTBE → const int
- NID_setct_CredRevReqTBEX → const int
- NID_setct_CredRevReqTBS → const int
- NID_setct_CredRevReqTBSX → const int
- NID_setct_CredRevResData → const int
- NID_setct_CredRevResTBE → const int
- NID_setct_CRLNotificationResTBS → const int
- NID_setct_CRLNotificationTBS → const int
- NID_setct_ErrorTBS → const int
- NID_setct_HODInput → const int
- NID_setct_MeAqCInitResTBS → const int
- NID_setct_OIData → const int
- NID_setct_PANData → const int
- NID_setct_PANOnly → const int
- NID_setct_PANToken → const int
- NID_setct_PCertReqData → const int
- NID_setct_PCertResTBS → const int
- NID_setct_PI → const int
- NID_setct_PI_TBS → const int
- NID_setct_PIData → const int
- NID_setct_PIDataUnsigned → const int
- NID_setct_PIDualSignedTBE → const int
- NID_setct_PInitResData → const int
- NID_setct_PIUnsignedTBE → const int
- NID_setct_PResData → const int
- NID_setct_RegFormReqTBE → const int
- NID_setct_RegFormResTBS → const int
- NID_setext_cv → const int
- NID_setext_genCrypt → const int
- NID_setext_miAuth → const int
- NID_setext_pinAny → const int
- NID_setext_pinSecure → const int
- NID_setext_track2 → const int
- NID_sha → const int
- NID_sha1 → const int
- NID_sha1WithRSA → const int
- NID_sha1WithRSAEncryption → const int
- NID_sha224 → const int
- NID_sha224WithRSAEncryption → const int
- NID_sha256 → const int
- NID_sha256WithRSAEncryption → const int
- NID_sha384 → const int
- NID_sha384WithRSAEncryption → const int
- NID_sha512 → const int
- NID_sha512_256 → const int
- NID_sha512WithRSAEncryption → const int
- NID_shaWithRSAEncryption → const int
- NID_simpleSecurityObject → const int
- NID_sinfo_access → const int
- NID_singleLevelQuality → const int
- NID_SLH_DSA_SHA2_128s → const int
- NID_SLH_DSA_SHA2_128s_WITH_SHA256 → const int
- NID_SLH_DSA_SHAKE_256f → const int
- NID_SMIME → const int
- NID_SMIMECapabilities → const int
- NID_SNMPv2 → const int
- NID_sOARecord → const int
- NID_stateOrProvinceName → const int
- NID_streetAddress → const int
- NID_subject_alt_name → const int
- NID_subject_directory_attributes → const int
- NID_subject_key_identifier → const int
- NID_subtreeMaximumQuality → const int
- NID_subtreeMinimumQuality → const int
- NID_supportedAlgorithms → const int
- NID_supportedApplicationContext → const int
- NID_surname → const int
- NID_sxnet → const int
- NID_target_information → const int
- NID_telephoneNumber → const int
- NID_teletexTerminalIdentifier → const int
- NID_telexNumber → const int
- NID_textEncodedORAddress → const int
- NID_textNotice → const int
- NID_time_stamp → const int
- NID_title → const int
- NID_ucl → const int
- NID_undef → const int
- NID_uniqueMember → const int
- NID_userCertificate → const int
- NID_userClass → const int
- NID_userId → const int
- NID_userPassword → const int
- NID_wap → const int
- NID_wap_wsg → const int
- NID_wap_wsg_idm_ecid_wtls1 → const int
- NID_wap_wsg_idm_ecid_wtls10 → const int
- NID_wap_wsg_idm_ecid_wtls11 → const int
- NID_wap_wsg_idm_ecid_wtls12 → const int
- NID_wap_wsg_idm_ecid_wtls3 → const int
- NID_wap_wsg_idm_ecid_wtls4 → const int
- NID_wap_wsg_idm_ecid_wtls5 → const int
- NID_wap_wsg_idm_ecid_wtls6 → const int
- NID_wap_wsg_idm_ecid_wtls7 → const int
- NID_wap_wsg_idm_ecid_wtls8 → const int
- NID_wap_wsg_idm_ecid_wtls9 → const int
- NID_whirlpool → const int
- NID_x121Address → const int
- NID_X25519 → const int
- NID_X25519Kyber768Draft00 → const int
- NID_X25519MLKEM768 → const int
- NID_X448 → const int
- NID_X500 → const int
- NID_X500algorithms → const int
- NID_x500UniqueIdentifier → const int
- NID_X509 → const int
- NID_x509Certificate → const int
- NID_x509Crl → const int
- NID_X9_57 → const int
- NID_X9_62_c2onb191v4 → const int
- NID_X9_62_c2onb191v5 → const int
- NID_X9_62_c2onb239v4 → const int
- NID_X9_62_c2onb239v5 → const int
- NID_X9_62_c2pnb163v1 → const int
- NID_X9_62_c2pnb163v2 → const int
- NID_X9_62_c2pnb163v3 → const int
- NID_X9_62_c2pnb176v1 → const int
- NID_X9_62_c2pnb208w1 → const int
- NID_X9_62_c2pnb272w1 → const int
- NID_X9_62_c2pnb304w1 → const int
- NID_X9_62_c2pnb368w1 → const int
- NID_X9_62_c2tnb191v1 → const int
- NID_X9_62_c2tnb191v2 → const int
- NID_X9_62_c2tnb191v3 → const int
- NID_X9_62_c2tnb239v1 → const int
- NID_X9_62_c2tnb239v2 → const int
- NID_X9_62_c2tnb239v3 → const int
- NID_X9_62_c2tnb359v1 → const int
- NID_X9_62_c2tnb431r1 → const int
- NID_X9_62_characteristic_two_field → const int
- NID_X9_62_id_characteristic_two_basis → const int
- NID_X9_62_id_ecPublicKey → const int
- NID_X9_62_onBasis → const int
- NID_X9_62_ppBasis → const int
- NID_X9_62_prime192v1 → const int
- NID_X9_62_prime192v2 → const int
- NID_X9_62_prime192v3 → const int
- NID_X9_62_prime239v1 → const int
- NID_X9_62_prime239v2 → const int
- NID_X9_62_prime239v3 → const int
- NID_X9_62_prime256v1 → const int
- NID_X9_62_prime_field → const int
- NID_X9_62_tpBasis → const int
- NID_X9cm → const int
- NID_X_Wing → const int
- NID_zlib_compression → const int
- opensslAllocator → const OpenSslAllocator
- An ffi.Allocator backed by BoringSSL's bssl.OPENSSL_malloc and bssl.OPENSSL_free.
- RSA_3 → const int
- RSA_F4 → const int
- RSA_FLAG_EXT_PKEY → const int
- RSA_FLAG_LARGE_PUBLIC_EXPONENT → const int
- RSA_FLAG_NO_BLINDING → const int
- RSA_FLAG_NO_PUBLIC_EXPONENT → const int
- RSA_FLAG_OPAQUE → const int
- RSA_METHOD_FLAG_NO_CHECK → const int
- RSA_NO_PADDING → const int
- RSA_PKCS1_OAEP_PADDING → const int
- RSA_PKCS1_PADDING → const int
- RSA_PKCS1_PSS_PADDING → const int
- RSA_PSS_SALTLEN_AUTO → const int
- RSA_PSS_SALTLEN_DIGEST → const int
- RSA_R_BAD_E_VALUE → const int
- RSA_R_BAD_ENCODING → const int
- RSA_R_BAD_FIXED_HEADER_DECRYPT → const int
- RSA_R_BAD_PAD_BYTE_COUNT → const int
- RSA_R_BAD_RSA_PARAMETERS → const int
- RSA_R_BAD_SIGNATURE → const int
- RSA_R_BAD_VERSION → const int
- RSA_R_BLOCK_TYPE_IS_NOT_01 → const int
- RSA_R_BLOCK_TYPE_IS_NOT_02 → const int
- RSA_R_BN_NOT_INITIALIZED → const int
- RSA_R_CANNOT_RECOVER_MULTI_PRIME_KEY → const int
- RSA_R_CRT_PARAMS_ALREADY_GIVEN → const int
- RSA_R_CRT_VALUES_INCORRECT → const int
- RSA_R_D_E_NOT_CONGRUENT_TO_1 → const int
- RSA_R_D_OUT_OF_RANGE → const int
- RSA_R_DATA_LEN_NOT_EQUAL_TO_MOD_LEN → const int
- RSA_R_DATA_TOO_LARGE → const int
- RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE → const int
- RSA_R_DATA_TOO_LARGE_FOR_MODULUS → const int
- RSA_R_DATA_TOO_SMALL → const int
- RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE → const int
- RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY → const int
- RSA_R_EMPTY_PUBLIC_KEY → const int
- RSA_R_ENCODE_ERROR → const int
- RSA_R_FIRST_OCTET_INVALID → const int
- RSA_R_INCONSISTENT_SET_OF_CRT_VALUES → const int
- RSA_R_INTERNAL_ERROR → const int
- RSA_R_INVALID_MESSAGE_LENGTH → const int
- RSA_R_KEY_SIZE_TOO_SMALL → const int
- RSA_R_LAST_OCTET_INVALID → const int
- RSA_R_MODULUS_TOO_LARGE → const int
- RSA_R_MUST_HAVE_AT_LEAST_TWO_PRIMES → const int
- RSA_R_N_NOT_EQUAL_P_Q → const int
- RSA_R_NO_PUBLIC_EXPONENT → const int
- RSA_R_NULL_BEFORE_BLOCK_MISSING → const int
- RSA_R_OAEP_DECODING_ERROR → const int
- RSA_R_ONLY_ONE_OF_P_Q_GIVEN → const int
- RSA_R_OUTPUT_BUFFER_TOO_SMALL → const int
- RSA_R_PADDING_CHECK_FAILED → const int
- RSA_R_PKCS_DECODING_ERROR → const int
- RSA_R_PUBLIC_KEY_VALIDATION_FAILED → const int
- RSA_R_SLEN_CHECK_FAILED → const int
- RSA_R_SLEN_RECOVERY_FAILED → const int
- RSA_R_TOO_LONG → const int
- RSA_R_TOO_MANY_ITERATIONS → const int
- RSA_R_UNKNOWN_ALGORITHM_TYPE → const int
- RSA_R_UNKNOWN_PADDING_TYPE → const int
- RSA_R_VALUE_MISSING → const int
- RSA_R_WRONG_SIGNATURE_LENGTH → const int
- V_ASN1_ANY → const int
- V_ASN1_APPLICATION → const int
- V_ASN1_BIT_STRING → const int
- V_ASN1_BMPSTRING → const int
- V_ASN1_BOOLEAN → const int
- V_ASN1_CONSTRUCTED → const int
- V_ASN1_CONTEXT_SPECIFIC → const int
- V_ASN1_ENUMERATED → const int
- V_ASN1_EOC → const int
- V_ASN1_EXTERNAL → const int
- V_ASN1_GENERALIZEDTIME → const int
- V_ASN1_GENERALSTRING → const int
- V_ASN1_GRAPHICSTRING → const int
- V_ASN1_IA5STRING → const int
- V_ASN1_INTEGER → const int
- V_ASN1_ISO64STRING → const int
- V_ASN1_MAX_UNIVERSAL → const int
- V_ASN1_NEG → const int
- V_ASN1_NEG_ENUMERATED → const int
- V_ASN1_NEG_INTEGER → const int
- V_ASN1_NULL → const int
- V_ASN1_NUMERICSTRING → const int
- V_ASN1_OBJECT → const int
- V_ASN1_OBJECT_DESCRIPTOR → const int
- V_ASN1_OCTET_STRING → const int
- V_ASN1_OTHER → const int
- V_ASN1_PRIMITIVE_TAG → const int
- V_ASN1_PRINTABLESTRING → const int
- V_ASN1_PRIVATE → const int
- V_ASN1_REAL → const int
- V_ASN1_RELATIVE_OID → const int
- V_ASN1_SEQUENCE → const int
- V_ASN1_SET → const int
- V_ASN1_T61STRING → const int
- V_ASN1_TELETEXSTRING → const int
- V_ASN1_UNDEF → const int
- V_ASN1_UNIVERSAL → const int
- V_ASN1_UNIVERSALSTRING → const int
- V_ASN1_UTCTIME → const int
- V_ASN1_UTF8STRING → const int
- V_ASN1_VIDEOTEXSTRING → const int
- V_ASN1_VISIBLESTRING → const int
- X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT → const int
- X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS → const int
- X509_CHECK_FLAG_NEVER_CHECK_SUBJECT → const int
- X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS → const int
- X509_CHECK_FLAG_NO_WILDCARDS → const int
- X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS → const int
- X509_CRL_VERSION_1 → const int
- X509_CRL_VERSION_2 → const int
- X509_FILETYPE_ASN1 → const int
- X509_FILETYPE_DEFAULT → const int
- X509_FILETYPE_PEM → const int
- X509_FLAG_COMPAT → const int
- X509_FLAG_NO_ATTRIBUTES → const int
- X509_FLAG_NO_AUX → const int
- X509_FLAG_NO_EXTENSIONS → const int
- X509_FLAG_NO_HEADER → const int
- X509_FLAG_NO_IDS → const int
- X509_FLAG_NO_ISSUER → const int
- X509_FLAG_NO_PUBKEY → const int
- X509_FLAG_NO_SERIAL → const int
- X509_FLAG_NO_SIGDUMP → const int
- X509_FLAG_NO_SIGNAME → const int
- X509_FLAG_NO_SUBJECT → const int
- X509_FLAG_NO_VALIDITY → const int
- X509_FLAG_NO_VERSION → const int
- X509_L_ADD_DIR → const int
- X509_L_FILE_LOAD → const int
- X509_LU_CRL → const int
- X509_LU_NONE → const int
- X509_LU_PKEY → const int
- X509_LU_X509 → const int
- X509_PURPOSE_ANY → const int
- X509_PURPOSE_CRL_SIGN → const int
- X509_PURPOSE_NS_SSL_SERVER → const int
- X509_PURPOSE_OCSP_HELPER → const int
- X509_PURPOSE_SMIME_ENCRYPT → const int
- X509_PURPOSE_SMIME_SIGN → const int
- X509_PURPOSE_SSL_CLIENT → const int
- X509_PURPOSE_SSL_SERVER → const int
- X509_PURPOSE_TIMESTAMP_SIGN → const int
- X509_R_AKID_MISMATCH → const int
- X509_R_BAD_PKCS7_VERSION → const int
- X509_R_BAD_X509_FILETYPE → const int
- X509_R_BASE64_DECODE_ERROR → const int
- X509_R_CANT_CHECK_DH_KEY → const int
- X509_R_CERT_ALREADY_IN_HASH_TABLE → const int
- X509_R_CRL_ALREADY_DELTA → const int
- X509_R_CRL_VERIFY_FAILURE → const int
- X509_R_DELTA_CRL_WITHOUT_CRL_NUMBER → const int
- X509_R_IDP_MISMATCH → const int
- X509_R_INVALID_BIT_STRING_BITS_LEFT → const int
- X509_R_INVALID_DIRECTORY → const int
- X509_R_INVALID_FIELD_FOR_VERSION → const int
- X509_R_INVALID_FIELD_NAME → const int
- X509_R_INVALID_MTC_CA → const int
- X509_R_INVALID_MTC_PROOF → const int
- X509_R_INVALID_PARAMETER → const int
- X509_R_INVALID_POLICY_EXTENSION → const int
- X509_R_INVALID_PSS_PARAMETERS → const int
- X509_R_INVALID_TRUST → const int
- X509_R_INVALID_VERSION → const int
- X509_R_ISSUER_MISMATCH → const int
- X509_R_KEY_TYPE_MISMATCH → const int
- X509_R_KEY_VALUES_MISMATCH → const int
- X509_R_LOADING_CERT_DIR → const int
- X509_R_LOADING_DEFAULTS → const int
- X509_R_NAME_TOO_LONG → const int
- X509_R_NEWER_CRL_NOT_NEWER → const int
- X509_R_NO_CERT_SET_FOR_US_TO_VERIFY → const int
- X509_R_NO_CERTIFICATE_FOUND → const int
- X509_R_NO_CERTIFICATE_OR_CRL_FOUND → const int
- X509_R_NO_CERTIFICATES_INCLUDED → const int
- X509_R_NO_CRL_FOUND → const int
- X509_R_NO_CRL_NUMBER → const int
- X509_R_NO_CRLS_INCLUDED → const int
- X509_R_NOT_PKCS7_SIGNED_DATA → const int
- X509_R_PUBLIC_KEY_DECODE_ERROR → const int
- X509_R_PUBLIC_KEY_ENCODE_ERROR → const int
- X509_R_SHOULD_RETRY → const int
- X509_R_SIGNATURE_ALGORITHM_MISMATCH → const int
- X509_R_UNKNOWN_KEY_TYPE → const int
- X509_R_UNKNOWN_NID → const int
- X509_R_UNKNOWN_PURPOSE_ID → const int
- X509_R_UNKNOWN_TRUST_ID → const int
- X509_R_UNSUPPORTED_ALGORITHM → const int
- X509_R_WRONG_LOOKUP_TYPE → const int
- X509_R_WRONG_TYPE → const int
- X509_REQ_VERSION_1 → const int
- X509_TRUST_COMPAT → const int
- X509_TRUST_EMAIL → const int
- X509_TRUST_OBJECT_SIGN → const int
- X509_TRUST_REJECTED → const int
- X509_TRUST_SSL_CLIENT → const int
- X509_TRUST_SSL_SERVER → const int
- X509_TRUST_TRUSTED → const int
- X509_TRUST_TSA → const int
- X509_TRUST_UNTRUSTED → const int
- X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH → const int
- X509_V_ERR_AKID_SKID_MISMATCH → const int
- X509_V_ERR_APPLICATION_VERIFICATION → const int
- X509_V_ERR_CERT_CHAIN_TOO_LONG → const int
- X509_V_ERR_CERT_HAS_EXPIRED → const int
- X509_V_ERR_CERT_NOT_YET_VALID → const int
- X509_V_ERR_CERT_REJECTED → const int
- X509_V_ERR_CERT_REVOKED → const int
- X509_V_ERR_CERT_SIGNATURE_FAILURE → const int
- X509_V_ERR_CERT_UNTRUSTED → const int
- X509_V_ERR_CRL_HAS_EXPIRED → const int
- X509_V_ERR_CRL_NOT_YET_VALID → const int
- X509_V_ERR_CRL_PATH_VALIDATION_ERROR → const int
- X509_V_ERR_CRL_SIGNATURE_FAILURE → const int
- X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT → const int
- X509_V_ERR_DIFFERENT_CRL_SCOPE → const int
- X509_V_ERR_EMAIL_MISMATCH → const int
- X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD → const int
- X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD → const int
- X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD → const int
- X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD → const int
- X509_V_ERR_EXCLUDED_VIOLATION → const int
- X509_V_ERR_HOSTNAME_MISMATCH → const int
- X509_V_ERR_INVALID_CA → const int
- X509_V_ERR_INVALID_CALL → const int
- X509_V_ERR_INVALID_EXTENSION → const int
- X509_V_ERR_INVALID_NON_CA → const int
- X509_V_ERR_INVALID_POLICY_EXTENSION → const int
- X509_V_ERR_INVALID_PURPOSE → const int
- X509_V_ERR_IP_ADDRESS_MISMATCH → const int
- X509_V_ERR_KEYUSAGE_NO_CERTSIGN → const int
- X509_V_ERR_KEYUSAGE_NO_CRL_SIGN → const int
- X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE → const int
- X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS → const int
- X509_V_ERR_NO_EXPLICIT_POLICY → const int
- X509_V_ERR_OUT_OF_MEM → const int
- X509_V_ERR_PATH_LENGTH_EXCEEDED → const int
- X509_V_ERR_PERMITTED_VIOLATION → const int
- X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED → const int
- X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED → const int
- X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN → const int
- X509_V_ERR_STORE_LOOKUP → const int
- X509_V_ERR_SUBJECT_ISSUER_MISMATCH → const int
- X509_V_ERR_SUBTREE_MINMAX → const int
- X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY → const int
- X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE → const int
- X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE → const int
- X509_V_ERR_UNABLE_TO_GET_CRL → const int
- X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER → const int
- X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT → const int
- X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY → const int
- X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE → const int
- X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION → const int
- X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION → const int
- X509_V_ERR_UNNESTED_RESOURCE → const int
- X509_V_ERR_UNSPECIFIED → const int
- X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX → const int
- X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE → const int
- X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE → const int
- X509_V_ERR_UNSUPPORTED_NAME_SYNTAX → const int
- X509_V_FLAG_ALLOW_PROXY_CERTS → const int
- X509_V_FLAG_ALLOW_TIMEZONE_OFFSET → const int
- X509_V_FLAG_CB_ISSUER_CHECK → const int
- X509_V_FLAG_CHECK_SS_SIGNATURE → const int
- X509_V_FLAG_CRL_CHECK → const int
- X509_V_FLAG_CRL_CHECK_ALL → const int
- X509_V_FLAG_EXPLICIT_POLICY → const int
- X509_V_FLAG_EXTENDED_CRL_SUPPORT → const int
- X509_V_FLAG_IGNORE_CRITICAL → const int
- X509_V_FLAG_INHIBIT_ANY → const int
- X509_V_FLAG_INHIBIT_MAP → const int
- X509_V_FLAG_NO_ALT_CHAINS → const int
- X509_V_FLAG_NO_CHECK_TIME → const int
- X509_V_FLAG_NOTIFY_POLICY → const int
- X509_V_FLAG_PARTIAL_CHAIN → const int
- X509_V_FLAG_POLICY_CHECK → const int
- X509_V_FLAG_TRUSTED_FIRST → const int
- X509_V_FLAG_USE_CHECK_TIME → const int
- X509_V_FLAG_USE_DELTAS → const int
- X509_V_FLAG_USE_MTC_DRAFT_PLANTS_07 → const int
- X509_V_FLAG_X509_STRICT → const int
- X509_V_OK → const int
- X509_VERSION_1 → const int
- X509_VERSION_2 → const int
- X509_VERSION_3 → const int
Functions
-
a2i_IPADDRESS(
Pointer< Char> ipasc) → Pointer<ASN1_OCTET_STRING> -
a2i_IPADDRESS decodes
ipascas the textual representation of an IPv4 or IPv6 address. On success, it returns a newly-allocatedASN1_OCTET_STRINGcontaining the decoded IP address. IPv4 addresses are represented as 4-byte strings and IPv6 addresses as 16-byte strings. On failure, it returns NULL. -
a2i_IPADDRESS_NC(
Pointer< Char> ipasc) → Pointer<ASN1_OCTET_STRING> -
a2i_IPADDRESS_NC decodes
ipascas the textual representation of an IPv4 or IPv6 address range. On success, it returns a newly-allocatedASN1_OCTET_STRINGcontaining the decoded IP address, followed by the decoded mask. IPv4 ranges are represented as 8-byte strings and IPv6 ranges as 32-byte strings. On failure, it returns NULL. -
ACCESS_DESCRIPTION_free(
Pointer< ACCESS_DESCRIPTION> desc) → void -
ACCESS_DESCRIPTION_free releases memory associated with
desc. -
ACCESS_DESCRIPTION_new(
) → Pointer< ACCESS_DESCRIPTION> -
ACCESS_DESCRIPTION_new returns a newly-allocated, empty
ACCESS_DESCRIPTIONobject, or NULL on error. -
AES_cbc_encrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, int len, Pointer<AES_KEY> key, Pointer<Uint8> ivec, int enc) → void -
AES_cbc_encrypt encrypts (or decrypts, if
enc==AES_DECRYPT)lenbytes fromintoout. The length must be a multiple of the block size. This function may be called in-place withinequal toout, but otherwise the buffers may not partially overlap. A partial overlap may overwrite input data before it is read. -
AES_cfb128_encrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, int len, Pointer<AES_KEY> key, Pointer<Uint8> ivec, Pointer<Int> num, int enc) → void -
AES_cfb128_encrypt encrypts (or decrypts, if
enc==AES_DECRYPT)lenbytes fromintoout. Thenumparameter must be set to zero on the first call. This function may be called in-place withinequal toout, but otherwise the buffers may not partially overlap. A partial overlap may overwrite input data before it is read. -
AES_ctr128_encrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, int len, Pointer<AES_KEY> key, Pointer<Uint8> ivec, Pointer<Uint8> ecount_buf, Pointer<UnsignedInt> num) → void -
AES_ctr128_encrypt encrypts (or decrypts, it's the same in CTR mode)
lenbytes fromintoout. Thenumparameter must be set to zero on the first call andivecwill be incremented. This function may be called in-place withinequal toout, but otherwise the buffers may not partially overlap. A partial overlap may overwrite input data before it is read. -
AES_decrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, Pointer<AES_KEY> key) → void -
AES_decrypt decrypts a single block from
intooutwithkey. Theinandoutpointers may overlap. -
AES_ecb_encrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, Pointer<AES_KEY> key, int enc) → void -
AES_ecb_encrypt encrypts (or decrypts, if
enc==AES_DECRYPT) a single, 16 byte block fromintoout. This function may be called in-place withinequal toout, but otherwise the buffers may not partially overlap. A partial overlap may overwrite input data before it is read. -
AES_encrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, Pointer<AES_KEY> key) → void -
AES_encrypt encrypts a single block from
intooutwithkey. Theinandoutpointers may overlap. -
AES_ofb128_encrypt(
Pointer< Uint8> in$, Pointer<Uint8> out, int len, Pointer<AES_KEY> key, Pointer<Uint8> ivec, Pointer<Int> num) → void -
AES_ofb128_encrypt encrypts (or decrypts, it's the same in OFB mode)
lenbytes fromintoout. Thenumparameter must be set to zero on the first call. This function may be called in-place withinequal toout, but otherwise the buffers may not partially overlap. A partial overlap may overwrite input data before it is read. -
AES_set_decrypt_key(
Pointer< Uint8> key, int bits, Pointer<AES_KEY> aeskey) → int -
AES_set_decrypt_key configures
aeskeyto decrypt with thebits-bit key,key.keymust point tobits/8 bytes. It returns zero on success and a negative number ifbitsis an invalid AES key size. -
AES_set_encrypt_key(
Pointer< Uint8> key, int bits, Pointer<AES_KEY> aeskey) → int -
AES_set_encrypt_key configures
aeskeyto encrypt with thebits-bit key,key.keymust point tobits/8 bytes. It returns zero on success and a negative number ifbitsis an invalid AES key size. -
AES_unwrap_key(
Pointer< AES_KEY> key, Pointer<Uint8> iv, Pointer<Uint8> out, Pointer<Uint8> in$, int in_len) → int -
AES_unwrap_key performs AES key unwrap on
inwhich must be a multiple of 8 bytes.ivmust point to an 8 byte value or be NULL to use the default IV.keymust have been configured for decryption. On success, it writesin_len- 8 bytes tooutand returnsin_len- 8. Otherwise, it returns -1. -
AES_unwrap_key_padded(
Pointer< AES_KEY> key, Pointer<Uint8> out, Pointer<Size> out_len, int max_out, Pointer<Uint8> in$, int in_len) → int -
AES_unwrap_key_padded performs a padded AES key unwrap on
inwhich must be a multiple of 8 bytes.keymust have been configured for decryption. On success it writes at mostmax_outbytes toout, sets*out_lento the number of bytes written, and returns one. On failure it returns zero. Settingmax_outtoin_lenis a sensible estimate. -
AES_wrap_key(
Pointer< AES_KEY> key, Pointer<Uint8> iv, Pointer<Uint8> out, Pointer<Uint8> in$, int in_len) → int -
AES_wrap_key performs AES key wrap on
inwhich must be a multiple of 8 bytes.ivmust point to an 8 byte value or be NULL to use the default IV.keymust have been configured for encryption. On success, it writesin_len+ 8 bytes tooutand returnsin_len+ 8. Otherwise, it returns -1. -
AES_wrap_key_padded(
Pointer< AES_KEY> key, Pointer<Uint8> out, Pointer<Size> out_len, int max_out, Pointer<Uint8> in$, int in_len) → int -
AES_wrap_key_padded performs a padded AES key wrap on
inwhich must be between 1 and 2^32-1 bytes.keymust have been configured for encryption. On success it writes at mostmax_outbytes of ciphertext toout, sets*out_lento the number of bytes written, and returns one. On failure it returns zero. To ensure success, setmax_outto at leastin_len+ 15. -
ASN1_BIT_STRING_check(
Pointer< ASN1_OCTET_STRING> str, Pointer<UnsignedChar> flags, int flags_len) → int -
ASN1_BIT_STRING_check returns one if
stronly contains bits that are set in theflags_lenbytes pointed byflags. Otherwise it returns zero. Bits inflagsare arranged according to the DER representation, so bit 0 corresponds to the MSB offlags[0]. -
ASN1_BIT_STRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_BIT_STRING_free calls
ASN1_STRING_free. -
ASN1_BIT_STRING_get_bit(
Pointer< ASN1_OCTET_STRING> str, int n) → int -
ASN1_BIT_STRING_get_bit returns one if bit
nofais in bounds and set, and zero otherwise.nis indexed beginning from zero. -
ASN1_BIT_STRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_BIT_STRING_new calls
ASN1_STRING_type_newwithV_ASN1_BIT_STRING. -
ASN1_BIT_STRING_num_bytes(
Pointer< ASN1_OCTET_STRING> str, Pointer<Size> out) → int -
ASN1_BIT_STRING_num_bytes computes the length of
strin bytes. Ifstr's bit length is a multiple of 8, it sets*outto the byte length and returns one. Otherwise, it returns zero. -
ASN1_BIT_STRING_set(
Pointer< ASN1_OCTET_STRING> str, Pointer<Uint8> data, int length) → int -
ASN1_BIT_STRING_set calls
ASN1_STRING_set. -
ASN1_BIT_STRING_set1(
Pointer< ASN1_OCTET_STRING> str, Pointer<Uint8> data, int length, int unused_bits) → int -
ASN1_BIT_STRING_set1 sets
strto a BIT STRING containinglengthbytes fromdata. It returns one on success and zero on error. The least significantunused_bitsof the last byte ofdataare removed from the bit string. The removed bits must all be zero.unused_bitsmust be between 0 and 7, and must be 0 iflengthis zero. -
ASN1_BIT_STRING_set_bit(
Pointer< ASN1_OCTET_STRING> str, int n, int value) → int -
ASN1_BIT_STRING_set_bit sets bit
nofstrto one ifvalueis non-zero and zero ifvalueis zero, resizingstras needed. It then truncates trailing zeros instrto align with the DER representation for a bit string with named bits. It returns one on success and zero on error.nis indexed beginning from zero. -
ASN1_BIT_STRING_unused_bits(
Pointer< ASN1_OCTET_STRING> str) → int -
ASN1_BIT_STRING_unused_bits returns the number of unused bits in the last
byte of
str. Ifstris empty (i.e.ASN1_STRING_lengthis zero), this always returns zero. Otherwise it returns a number between 0 and 7. -
ASN1_BMPSTRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
The following functions call
ASN1_STRING_free. -
ASN1_BMPSTRING_new(
) → Pointer< ASN1_OCTET_STRING> -
The following functions call
ASN1_STRING_type_newwith the correspondingV_ASN1_*constant. -
ASN1_digest(
Pointer< i2d_of_void> i2d, Pointer<EVP_MD> type, Pointer<Char> data, Pointer<UnsignedChar> md, Pointer<UnsignedInt> len) → int -
ASN1_digest serializes
datawithi2dand then hashes the result withtype. On success, it returns one, writes the digest tomd, and sets*lento the digest length if non-NULL. On error, it returns zero. -
ASN1_ENUMERATED_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_ENUMERATED_free calls
ASN1_STRING_free. -
ASN1_ENUMERATED_get(
Pointer< ASN1_OCTET_STRING> a) → int -
ASN1_ENUMERATED_get returns the value of
aas along, or -1 ifais out of range or the wrong type. -
ASN1_ENUMERATED_get_int64(
Pointer< Int64> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_ENUMERATED_get_int64 converts
ato aint64_t. On success, it returns one and sets*outto the result. Ifadid not fit or has the wrong type, it returns zero. -
ASN1_ENUMERATED_get_uint64(
Pointer< Uint64> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_ENUMERATED_get_uint64 converts
ato auint64_t. On success, it returns one and sets*outto the result. Ifadid not fit or has the wrong type, it returns zero. -
ASN1_ENUMERATED_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_ENUMERATED_new calls
ASN1_STRING_type_newwithV_ASN1_ENUMERATED. The resulting object has value zero. -
ASN1_ENUMERATED_set(
Pointer< ASN1_OCTET_STRING> a, int v) → int -
ASN1_ENUMERATED_set sets
ato an ENUMERATED with valuev. It returns one on success and zero on error. -
ASN1_ENUMERATED_set_int64(
Pointer< ASN1_OCTET_STRING> out, int v) → int -
ASN1_ENUMERATED_set_int64 sets
ato an ENUMERATED with valuev. It returns one on success and zero on error. -
ASN1_ENUMERATED_set_uint64(
Pointer< ASN1_OCTET_STRING> out, int v) → int -
ASN1_ENUMERATED_set_uint64 sets
ato an ENUMERATED with valuev. It returns one on success and zero on error. -
ASN1_ENUMERATED_to_BN(
Pointer< ASN1_OCTET_STRING> ai, Pointer<BIGNUM> bn) → Pointer<BIGNUM> -
ASN1_ENUMERATED_to_BN sets
bnto the value ofaiand returnsbnon success or NULL or error. Ifbnis NULL, it returns a newly-allocatedBIGNUMon success instead, which the caller must release withBN_free. -
ASN1_GENERALIZEDTIME_adj(
Pointer< ASN1_OCTET_STRING> s, int posix_time, int offset_day, int offset_sec) → Pointer<ASN1_OCTET_STRING> -
ASN1_GENERALIZEDTIME_adj adds
offset_daydays andoffset_secseconds toposix_timeand writes the result tosas a GeneralizedTime. It returnsson success and NULL on error. Ifsis NULL, it returns a newly-allocatedASN1_GENERALIZEDTIMEinstead. -
ASN1_GENERALIZEDTIME_check(
Pointer< ASN1_OCTET_STRING> a) → int -
ASN1_GENERALIZEDTIME_check returns one if
ais a valid GeneralizedTime and zero otherwise. -
ASN1_GENERALIZEDTIME_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_GENERALIZEDTIME_free calls
ASN1_STRING_free. -
ASN1_GENERALIZEDTIME_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_GENERALIZEDTIME_new calls
ASN1_STRING_type_newwithV_ASN1_GENERALIZEDTIME. The resulting object contains empty contents and must be initialized to be a valid GeneralizedTime. -
ASN1_GENERALIZEDTIME_print(
Pointer< BIO> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_GENERALIZEDTIME_print writes a human-readable representation of
atoout. It returns one on success and zero on error. -
ASN1_GENERALIZEDTIME_set(
Pointer< ASN1_OCTET_STRING> s, int posix_time) → Pointer<ASN1_OCTET_STRING> -
ASN1_GENERALIZEDTIME_set represents
posix_timeas a GeneralizedTime and writes the result tos. It returnsson success and NULL on error. Ifsis NULL, it returns a newly-allocatedASN1_GENERALIZEDTIMEinstead. -
ASN1_GENERALIZEDTIME_set_string(
Pointer< ASN1_OCTET_STRING> s, Pointer<Char> str) → int -
ASN1_GENERALIZEDTIME_set_string sets
sto a GeneralizedTime whose contents are a copy ofstr. It returns one on success and zero on error or ifstris not a valid GeneralizedTime. -
ASN1_GENERALSTRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_GENERALSTRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_get_object(
Pointer< Pointer< inp, Pointer<UnsignedChar> >Long> out_length, Pointer<Int> out_tag, Pointer<Int> out_class, int max_len) → int -
ASN1_get_object parses a BER element from up to
max_lenbytes at*inp. It returnsV_ASN1_CONSTRUCTEDif it successfully parsed a constructed element, zero if it successfully parsed a primitive element, and 0x80 on error. On success, it additionally advances*inpto the element body, sets*out_length,*out_tag, and*out_classto the element's length, tag number, and tag class, respectively, -
ASN1_IA5STRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_IA5STRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_INTEGER_cmp(
Pointer< ASN1_OCTET_STRING> x, Pointer<ASN1_OCTET_STRING> y) → int -
ASN1_INTEGER_cmp compares the values of
xandy. It returns an integer equal to, less than, or greater than zero ifxis equal to, less than, or greater thany, respectively. -
ASN1_INTEGER_dup(
Pointer< ASN1_OCTET_STRING> x) → Pointer<ASN1_OCTET_STRING> -
ASN1_INTEGER_dup calls
ASN1_STRING_dup. -
ASN1_INTEGER_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_INTEGER_free calls
ASN1_STRING_free. -
ASN1_INTEGER_get(
Pointer< ASN1_OCTET_STRING> a) → int -
ASN1_INTEGER_get returns the value of
aas along, or -1 ifais out of range or the wrong type. -
ASN1_INTEGER_get_int64(
Pointer< Int64> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_INTEGER_get_int64 converts
ato aint64_t. On success, it returns one and sets*outto the result. Ifadid not fit or has the wrong type, it returns zero. -
ASN1_INTEGER_get_uint64(
Pointer< Uint64> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_INTEGER_get_uint64 converts
ato auint64_t. On success, it returns one and sets*outto the result. Ifadid not fit or has the wrong type, it returns zero. -
ASN1_INTEGER_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_INTEGER_new calls
ASN1_STRING_type_newwithV_ASN1_INTEGER. The resulting object has value zero. -
ASN1_INTEGER_set(
Pointer< ASN1_OCTET_STRING> a, int v) → int -
ASN1_INTEGER_set sets
ato an INTEGER with valuev. It returns one on success and zero on error. -
ASN1_INTEGER_set_int64(
Pointer< ASN1_OCTET_STRING> out, int v) → int -
ASN1_INTEGER_set_int64 sets
ato an INTEGER with valuev. It returns one on success and zero on error. -
ASN1_INTEGER_set_uint64(
Pointer< ASN1_OCTET_STRING> out, int v) → int -
ASN1_INTEGER_set_uint64 sets
ato an INTEGER with valuev. It returns one on success and zero on error. -
ASN1_INTEGER_to_BN(
Pointer< ASN1_OCTET_STRING> ai, Pointer<BIGNUM> bn) → Pointer<BIGNUM> -
ASN1_INTEGER_to_BN sets
bnto the value ofaiand returnsbnon success or NULL or error. Ifbnis NULL, it returns a newly-allocatedBIGNUMon success instead, which the caller must release withBN_free. -
ASN1_item_d2i(
Pointer< Pointer< out, Pointer<ASN1_VALUE> >Pointer< inp, int len, Pointer<UnsignedChar> >ASN1_ITEM> it) → Pointer<ASN1_VALUE> -
ASN1_item_d2i parses the ASN.1 type
itfrom up tolenbytes at*inp. It behaves liked2i_SAMPLE, except thatoutand the return value are cast toASN1_VALUEpointers. -
ASN1_item_d2i_bio(
Pointer< ASN1_ITEM> it, Pointer<BIO> in$, Pointer<Void> out) → Pointer<Void> -
ASN1_item_d2i_fp(
Pointer< ASN1_ITEM> it, Pointer<FILE> in$, Pointer<Void> out) → Pointer<Void> -
The following functions behave like
ASN1_item_d2ibut read fromininstead.outis the same parameter as inASN1_item_d2i, but written withvoid*instead. The return values similarly match. -
ASN1_item_digest(
Pointer< ASN1_ITEM> it, Pointer<EVP_MD> type, Pointer<Void> data, Pointer<UnsignedChar> md, Pointer<UnsignedInt> len) → int -
ASN1_item_digest serializes
datawithitand then hashes the result withtype. On success, it returns one, writes the digest tomd, and sets*lento the digest length if non-NULL. On error, it returns zero. -
ASN1_item_dup(
Pointer< ASN1_ITEM> it, Pointer<Void> x) → Pointer<Void> -
ASN1_item_dup returns a newly-allocated copy of
x, or NULL on error.xmust be an object ofit's C type. -
ASN1_item_free(
Pointer< ASN1_VALUE> val, Pointer<ASN1_ITEM> it) → void -
ASN1_item_free releases memory associated with
val, which must be an object of the C type corresponding toit. -
ASN1_item_i2d(
Pointer< ASN1_VALUE> val, Pointer<Pointer< outp, Pointer<UnsignedChar> >ASN1_ITEM> it) → int -
ASN1_item_i2d marshals
valas the ASN.1 type associated withit, as described ini2d_SAMPLE. -
ASN1_item_i2d_bio(
Pointer< ASN1_ITEM> it, Pointer<BIO> out, Pointer<Void> in$) → int -
ASN1_item_i2d_fp(
Pointer< ASN1_ITEM> it, Pointer<FILE> out, Pointer<Void> in$) → int -
The following functions behave like
ASN1_item_i2dbut write tooutinstead.inis the same parameter as inASN1_item_i2d, but written withvoid*instead. -
ASN1_item_new(
Pointer< ASN1_ITEM> it) → Pointer<ASN1_VALUE> -
ASN1_item_new allocates a new value of the C type corresponding to
it, or NULL on error. On success, the caller must release the value withASN1_item_free, or the corresponding C type's free function, when done. The new value will initialize fields of the value to some default state, such as an empty string. Note, however, that this default state sometimes omits required values, such as with CHOICE types. -
ASN1_item_pack(
Pointer< Void> obj, Pointer<ASN1_ITEM> it, Pointer<Pointer< out) → Pointer<ASN1_OCTET_STRING> >ASN1_OCTET_STRING> -
ASN1_item_pack marshals
objasit's ASN.1 type. Ifoutis NULL, it returns a newly-allocatedASN1_STRINGwith the result, or NULL on error. Ifoutis non-NULL, but*outis NULL, it does the same but additionally sets*outto the result. If bothoutand*outare non-NULL, it writes the result to*outand returns*outon success or NULL on error. -
ASN1_item_sign(
Pointer< ASN1_ITEM> it, Pointer<X509_ALGOR> algor1, Pointer<X509_ALGOR> algor2, Pointer<ASN1_OCTET_STRING> signature, Pointer<Void> data, Pointer<EVP_PKEY> pkey, Pointer<EVP_MD> type) → int -
ASN1_item_sign serializes
datawithitand then signs the result with the private keypkey. It returns the length of the signature on success and zero on error. On success, it writes the signature tosignatureand the signature algorithm to each ofalgor1andalgor2. Either ofalgor1oralgor2may be NULL to ignore them. This function uses digest algorithmmd, orpkey's default if NULL. Other signing parameters usepkey's defaults. To customize them, useASN1_item_sign_ctx. -
ASN1_item_sign_ctx(
Pointer< ASN1_ITEM> it, Pointer<X509_ALGOR> algor1, Pointer<X509_ALGOR> algor2, Pointer<ASN1_OCTET_STRING> signature, Pointer<Void> asn, Pointer<EVP_MD_CTX> ctx) → int -
ASN1_item_sign_ctx behaves like
ASN1_item_signexcept the signature is signed withctx,ctx, which must have been initialized withEVP_DigestSignInit. The caller should configure the correspondingEVP_PKEY_CTXwith any additional parameters before calling this function. -
ASN1_item_unpack(
Pointer< ASN1_OCTET_STRING> oct, Pointer<ASN1_ITEM> it) → Pointer<Void> -
ASN1_item_unpack parses
oct's contents asit's ASN.1 type. It returns a newly-allocated instance ofit's C type on success, or NULL on error. -
ASN1_item_verify(
Pointer< ASN1_ITEM> it, Pointer<X509_ALGOR> algor1, Pointer<ASN1_OCTET_STRING> signature, Pointer<Void> data, Pointer<EVP_PKEY> pkey) → int -
ASN1_item_verify serializes
datawithitand then verifiessignatureis a valid signature for the result withalgor1andpkey. It returns one on success and zero on error. The signature and algorithm are interpreted as in X.509. -
ASN1_mbstring_copy(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Uint8> in$, int len, int inform, int mask) → int -
ASN1_mbstring_copy converts
lenbytes frominto an ASN.1 string. Iflenis -1,inmust be NUL-terminated and the length is determined bystrlen.inis decoded according toinform, which must be one ofMBSTRING_*.maskdetermines the set of valid output types and is a bitmask containing a subset ofB_ASN1_PRINTABLESTRING,B_ASN1_IA5STRING,B_ASN1_T61STRING,B_ASN1_BMPSTRING,B_ASN1_UNIVERSALSTRING, andB_ASN1_UTF8STRING, in that preference order. This function chooses the first output type inmaskwhich can representin. It interprets T61String as Latin-1, rather than T.61. -
ASN1_mbstring_ncopy(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Uint8> in$, int len, int inform, int mask, int minsize, int maxsize) → int -
ASN1_mbstring_ncopy behaves like
ASN1_mbstring_copybut returns an error if the input is less thanminsizeor greater thanmaxsizecodepoints long. Amaxsizevalue of zero is ignored. Note the sizes are measured in codepoints, not output bytes. -
ASN1_NULL_free(
Pointer< ASN1_NULL> null$) → void - ASN1_NULL_free does nothing.
-
ASN1_NULL_new(
) → Pointer< ASN1_NULL> -
ASN1_NULL_new returns an opaque, non-NULL pointer. It is safe to call
ASN1_NULL_freeon the result, but not necessary. -
ASN1_OBJECT_create(
int nid, Pointer< Uint8> data, int len, Pointer<Char> sn, Pointer<Char> ln) → Pointer<ASN1_OBJECT> -
ASN1_OBJECT_create returns a newly-allocated
ASN1_OBJECTwithlenbytes fromdataas the encoded OID, or NULL on error.datashould contain the DER-encoded identifier, excluding the tag and length. -
ASN1_OBJECT_free(
Pointer< ASN1_OBJECT> a) → void -
ASN1_OBJECT_free releases memory associated with
a. Ifais a staticASN1_OBJECT, returned fromOBJ_nid2obj, this function does nothing. -
ASN1_object_size(
int constructed, int length, int tag) → int -
ASN1_object_size returns the number of bytes needed to encode a DER or BER
value with length
lengthand tag numbertag, or -1 on error.tagshould not include the constructed bit or tag class. Ifconstructedis zero or one, the result uses a definite-length encoding with minimally-encoded length, as in DER. Ifconstructedis two, the result uses BER indefinite-length encoding. -
ASN1_OCTET_STRING_cmp(
Pointer< ASN1_OCTET_STRING> a, Pointer<ASN1_OCTET_STRING> b) → int -
ASN1_OCTET_STRING_cmp calls
ASN1_STRING_cmp. -
ASN1_OCTET_STRING_dup(
Pointer< ASN1_OCTET_STRING> a) → Pointer<ASN1_OCTET_STRING> -
ASN1_OCTET_STRING_dup calls
ASN1_STRING_dup. -
ASN1_OCTET_STRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_OCTET_STRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_OCTET_STRING_set(
Pointer< ASN1_OCTET_STRING> str, Pointer<UnsignedChar> data, int len) → int -
ASN1_OCTET_STRING_set calls
ASN1_STRING_set. -
ASN1_PRINTABLESTRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_PRINTABLESTRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_put_eoc(
Pointer< Pointer< outp) → intUnsignedChar> > -
ASN1_put_eoc writes two zero bytes to
*outp, advances*outpto point past those bytes, and returns two. -
ASN1_put_object(
Pointer< Pointer< outp, int constructed, int length, int tag, int xclass) → voidUnsignedChar> > -
ASN1_put_object writes the header for a DER or BER element to
*outpand advances*outpby the number of bytes written. The caller is responsible for ensuring*outphas enough space for the output. The header describes an element with lengthlength, tag numbertag, and classxclass.xclassshould be one of theV_ASN1_*tag class constants. The element is primitive ifconstructedis zero and constructed if it is one or two. Ifconstructedis two,lengthis ignored and the element uses indefinite-length encoding. -
ASN1_STRING_cmp(
Pointer< ASN1_OCTET_STRING> a, Pointer<ASN1_OCTET_STRING> b) → int -
ASN1_STRING_cmp compares
aandb's type and contents. It returns an integer equal to, less than, or greater than zero ifais equal to, less than, or greater thanb, respectively. This function compares by length, then data, then type. Note the data compared is theASN1_STRINGinternal representation and the type order is arbitrary. While this comparison is suitable for sorting, callers should not rely on the exact order whenaandbare different types. -
ASN1_STRING_copy(
Pointer< ASN1_OCTET_STRING> dst, Pointer<ASN1_OCTET_STRING> str) → int -
ASN1_STRING_copy sets
dstto a copy ofstr. It returns one on success and zero on error. -
ASN1_STRING_data(
Pointer< ASN1_OCTET_STRING> str) → Pointer<UnsignedChar> -
ASN1_STRING_data returns a mutable pointer to
str's contents. Callers should useASN1_STRING_lengthto determine the length of the string. The string may have embedded NUL bytes and may not be NUL-terminated. -
ASN1_STRING_dup(
Pointer< ASN1_OCTET_STRING> str) → Pointer<ASN1_OCTET_STRING> -
ASN1_STRING_dup returns a newly-allocated copy of
str, or NULL on error. -
ASN1_STRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_STRING_free releases memory associated with
str. -
ASN1_STRING_get0_data(
Pointer< ASN1_OCTET_STRING> str) → Pointer<UnsignedChar> -
ASN1_STRING_get0_data returns a pointer to
str's contents. Callers should useASN1_STRING_lengthto determine the length of the string. The string may have embedded NUL bytes and may not be NUL-terminated. -
ASN1_STRING_get_default_mask(
) → int -
ASN1_STRING_get_default_mask returns
B_ASN1_UTF8STRING. -
ASN1_STRING_get_length(
Pointer< ASN1_OCTET_STRING> str) → int -
ASN1_STRING_get_length returns the length of
str, in bytes. -
ASN1_STRING_length(
Pointer< ASN1_OCTET_STRING> str) → int -
ASN1_STRING_length returns the length of
str, in bytes. PreferASN1_STRING_get_length. -
ASN1_STRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_STRING_new returns a newly-allocated empty
ASN1_STRINGobject with an arbitrary type. Prefer one of the type-specific constructors, such asASN1_OCTET_STRING_new, orASN1_STRING_type_new. -
ASN1_STRING_print(
Pointer< BIO> out, Pointer<ASN1_OCTET_STRING> str) → int -
ASN1_STRING_print writes a human-readable representation of
strtoout. It returns one on success and zero on error. Unprintable characters are replaced with '.'. -
ASN1_STRING_print_ex(
Pointer< BIO> out, Pointer<ASN1_OCTET_STRING> str, int flags) → int -
ASN1_STRING_print_ex writes a human-readable representation of
strtoout. It returns the number of bytes written on success and -1 on error. Ifoutis NULL, it returns the number of bytes it would have written, without writing anything. -
ASN1_STRING_print_ex_fp(
Pointer< FILE> fp, Pointer<ASN1_OCTET_STRING> str, int flags) → int -
ASN1_STRING_print_ex_fp behaves like
ASN1_STRING_print_exbut writes to aFILErather than aBIO. -
ASN1_STRING_set(
Pointer< ASN1_OCTET_STRING> str, Pointer<Void> data, int len) → int -
ASN1_STRING_set sets the contents of
strto a copy oflenbytes fromdata. It returns one on success and zero on error. Ifdatais NULL, it updates the length and allocates the buffer as needed, but does not initialize the contents. -
ASN1_STRING_set0(
Pointer< ASN1_OCTET_STRING> str, Pointer<Void> data, int len) → void -
ASN1_STRING_set0 sets the contents of
strtolenbytes fromdata. It takes ownership ofdata, which must have been allocated withOPENSSL_malloc. -
ASN1_STRING_set_by_NID(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >UnsignedChar> in$, int len, int inform, int nid) → Pointer<ASN1_OCTET_STRING> -
ASN1_STRING_set_by_NID behaves like
ASN1_mbstring_ncopy, but determinesmask,minsize, andmaxsizebased onnid. Whennidis a recognized X.509 attribute type, it will pick a suitable ASN.1 string type and bounds. For most attribute types, it preferentially chooses UTF8String. Ifnidis unrecognized, it uses UTF8String by default. This function will also enforce any known attribute-specific constraints on the sizes of the string and fail if the size is invalid. In RFC 5280, these bounds are specified by constraints like "SIZE (1..ub-common-name)" in ASN.1. -
ASN1_STRING_set_default_mask(
int mask) → void - ASN1_STRING_set_default_mask does nothing.
-
ASN1_STRING_set_default_mask_asc(
Pointer< Char> p) → int - ASN1_STRING_set_default_mask_asc returns one.
-
ASN1_STRING_TABLE_add(
int nid, int minsize, int maxsize, int mask, int flags) → int -
ASN1_STRING_TABLE_add registers the corresponding parameters with
nid, for use withASN1_STRING_set_by_NID. It returns one on success and zero on error. It is an error to call this function ifnidis a built-in NID, or was already registered by a previous call. -
ASN1_STRING_TABLE_cleanup(
) → void - ASN1_STRING_TABLE_cleanup does nothing.
-
ASN1_STRING_to_UTF8(
Pointer< Pointer< out, Pointer<UnsignedChar> >ASN1_OCTET_STRING> in$) → int -
ASN1_STRING_to_UTF8 converts
into UTF-8. On success, sets*outto a newly-allocated buffer containing the resulting string and returns the length of the string. The caller must callOPENSSL_freeto release*outwhen done. On error, it returns a negative number. -
ASN1_STRING_type(
Pointer< ASN1_OCTET_STRING> str) → int -
ASN1_STRING_type returns the type of
str. This value will be one of theV_ASN1_*constants. -
ASN1_STRING_type_new(
int type) → Pointer< ASN1_OCTET_STRING> -
ASN1_STRING_type_new returns a newly-allocated empty
ASN1_STRINGobject of typetype, or NULL on error. -
ASN1_T61STRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_T61STRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_tag2bit(
int tag) → int -
ASN1_tag2bit converts
tagfrom the tag number of a universal type to a correspondingB_ASN1_*constant, or zero iftaghas no bitmask. -
ASN1_tag2str(
int tag) → Pointer< Char> -
ASN1_tag2str returns a string representation of
tag, interpret as a tag number for a universal type, orV_ASN1_NEG_*. -
ASN1_TIME_adj(
Pointer< ASN1_OCTET_STRING> s, int posix_time, int offset_day, int offset_sec) → Pointer<ASN1_OCTET_STRING> -
ASN1_TIME_adj adds
offset_daydays andoffset_secseconds toposix_timeand writes the result tos. As in RFC 5280, section 4.1.2.5, it uses UTCTime when the time fits and GeneralizedTime otherwise. It returnsson success and NULL on error. Ifsis NULL, it returns a newly-allocatedASN1_GENERALIZEDTIMEinstead. -
ASN1_TIME_check(
Pointer< ASN1_OCTET_STRING> t) → int -
ASN1_TIME_check returns one if
tis a valid UTCTime or GeneralizedTime, and zero otherwise.t's type determines which check is performed. This function does not enforce that UTCTime was used when possible. -
ASN1_TIME_diff(
Pointer< Int> out_days, Pointer<Int> out_seconds, Pointer<ASN1_OCTET_STRING> from, Pointer<ASN1_OCTET_STRING> to) → int -
ASN1_TIME_diff computes
to-from. On success, it sets*out_daysto the difference in days, rounded towards zero, sets*out_secondsto the remainder, and returns one. On error, it returns zero. -
ASN1_TIME_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_TIME_free releases memory associated with
str. -
ASN1_TIME_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_TIME_new returns a newly-allocated
ASN1_TIMEwith type -1, or NULL on error. The resultingASN1_TIMEis not a valid X.509 Time until initialized with a value. -
ASN1_TIME_print(
Pointer< BIO> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_TIME_print writes a human-readable representation of
atoout. It returns one on success and zero on error. -
ASN1_TIME_set(
Pointer< ASN1_OCTET_STRING> s, int time) → Pointer<ASN1_OCTET_STRING> -
ASN1_TIME_set is exactly the same as
ASN1_TIME_set_posixbut with a time_t as input for compatibility. -
ASN1_TIME_set_posix(
Pointer< ASN1_OCTET_STRING> s, int posix_time) → Pointer<ASN1_OCTET_STRING> -
ASN1_TIME_set_posix represents
posix_timeas a GeneralizedTime or UTCTime and writes the result tos. As in RFC 5280, section 4.1.2.5, it uses UTCTime when the time fits and GeneralizedTime otherwise. It returnsson success and NULL on error. Ifsis NULL, it returns a newly-allocatedASN1_TIMEinstead. -
ASN1_TIME_set_string(
Pointer< ASN1_OCTET_STRING> s, Pointer<Char> str) → int -
ASN1_TIME_set_string behaves like
ASN1_UTCTIME_set_stringifstris a valid UTCTime, andASN1_GENERALIZEDTIME_set_stringifstris a valid GeneralizedTime. Ifstris neither, it returns zero. -
ASN1_TIME_set_string_X509(
Pointer< ASN1_OCTET_STRING> s, Pointer<Char> str) → int -
ASN1_TIME_set_string_X509 behaves like
ASN1_TIME_set_stringexcept it additionally converts GeneralizedTime to UTCTime if it is in the range where UTCTime is used. See RFC 5280, section 4.1.2.5. -
ASN1_TIME_to_generalizedtime(
Pointer< ASN1_OCTET_STRING> t, Pointer<Pointer< out) → Pointer<ASN1_OCTET_STRING> >ASN1_OCTET_STRING> -
ASN1_TIME_to_generalizedtime converts
tto a GeneralizedTime. Ifoutis NULL, it returns a newly-allocatedASN1_GENERALIZEDTIMEon success, or NULL on error. Ifoutis non-NULL and*outis NULL, it additionally sets*outto the result. Ifoutand*outare non-NULL, it instead updates the object pointed by*outand returns*outon success or NULL on error. -
ASN1_TIME_to_posix(
Pointer< ASN1_OCTET_STRING> t, Pointer<Int64> out) → int -
ASN1_TIME_to_posix converts
tto a POSIX time value inout. On success, one is returned. On failure, zero is returned. -
ASN1_TIME_to_posix_nonstandard(
Pointer< ASN1_OCTET_STRING> t, Pointer<Int64> out) → int -
ASN1_TIME_to_posix_nonstandard converts
tto a POSIX time value inout. It is exactly the same asASN1_TIME_to_posixbut allows for non-standard four-digit timezone offsets on UTC times. On success, one is returned. On failure, zero is returned.ASN1_TIME_to_posixshould normally be used instead of this function. -
ASN1_TIME_to_time_t(
Pointer< ASN1_OCTET_STRING> t, Pointer<Long> out) → int -
ASN1_TIME_to_time_t converts
tto a time_t value inout. On success, one is returned. On failure, zero is returned. This function will fail if the time can not be represented in a time_t. -
ASN1_TYPE_cmp(
Pointer< ASN1_TYPE> a, Pointer<ASN1_TYPE> b) → int -
ASN1_TYPE_cmp returns zero if
aandbare equal and some non-zero value otherwise. Note this function can only be used for equality checks, not an ordering. -
ASN1_TYPE_free(
Pointer< ASN1_TYPE> a) → void -
ASN1_TYPE_free releases memory associated with
a. -
ASN1_TYPE_get(
Pointer< ASN1_TYPE> a) → int -
ASN1_TYPE_get returns the type of
a, which will be one of theV_ASN1_*constants, or zero ifais not fully initialized. -
ASN1_TYPE_new(
) → Pointer< ASN1_TYPE> -
ASN1_TYPE_new returns a newly-allocated
ASN1_TYPE, or NULL on allocation failure. The resulting object has type -1 and must be initialized to be a valid ANY value. -
ASN1_TYPE_set(
Pointer< ASN1_TYPE> a, int type, Pointer<Void> value) → void -
ASN1_TYPE_set sets
ato anASN1_TYPEof typetypeand valuevalue, releasing the previous contents ofa. -
ASN1_TYPE_set1(
Pointer< ASN1_TYPE> a, int type, Pointer<Void> value) → int -
ASN1_TYPE_set1 behaves like
ASN1_TYPE_setexcept it does not take ownership ofvalue. It returns one on success and zero on error. -
ASN1_UNIVERSALSTRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_UNIVERSALSTRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_UTCTIME_adj(
Pointer< ASN1_OCTET_STRING> s, int posix_time, int offset_day, int offset_sec) → Pointer<ASN1_OCTET_STRING> -
ASN1_UTCTIME_adj adds
offset_daydays andoffset_secseconds toposix_timeand writes the result tosas a UTCTime. It returnsson success and NULL on error. Ifsis NULL, it returns a newly-allocatedASN1_UTCTIMEinstead. -
ASN1_UTCTIME_check(
Pointer< ASN1_OCTET_STRING> a) → int -
ASN1_UTCTIME_check returns one if
ais a valid UTCTime and zero otherwise. -
ASN1_UTCTIME_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_UTCTIME_free calls
ASN1_STRING_free. -
ASN1_UTCTIME_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_UTCTIME_new calls
ASN1_STRING_type_newwithV_ASN1_UTCTIME. The resulting object contains empty contents and must be initialized to be a valid UTCTime. -
ASN1_UTCTIME_print(
Pointer< BIO> out, Pointer<ASN1_OCTET_STRING> a) → int -
ASN1_UTCTIME_print writes a human-readable representation of
atoout. It returns one on success and zero on error. -
ASN1_UTCTIME_set(
Pointer< ASN1_OCTET_STRING> s, int posix_time) → Pointer<ASN1_OCTET_STRING> -
ASN1_UTCTIME_set represents
posix_timeas a UTCTime and writes the result tos. It returnsson success and NULL on error. Ifsis NULL, it returns a newly-allocatedASN1_UTCTIMEinstead. -
ASN1_UTCTIME_set_string(
Pointer< ASN1_OCTET_STRING> s, Pointer<Char> str) → int -
ASN1_UTCTIME_set_string sets
sto a UTCTime whose contents are a copy ofstr. It returns one on success and zero on error or ifstris not a valid UTCTime. -
ASN1_UTF8STRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_UTF8STRING_new(
) → Pointer< ASN1_OCTET_STRING> -
ASN1_VISIBLESTRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
ASN1_VISIBLESTRING_new(
) → Pointer< ASN1_OCTET_STRING> -
AUTHORITY_INFO_ACCESS_free(
Pointer< AUTHORITY_INFO_ACCESS> aia) → void -
AUTHORITY_INFO_ACCESS_free releases memory associated with
aia. -
AUTHORITY_INFO_ACCESS_new(
) → Pointer< AUTHORITY_INFO_ACCESS> -
AUTHORITY_INFO_ACCESS_new returns a newly-allocated, empty
AUTHORITY_INFO_ACCESSobject, or NULL on error. -
AUTHORITY_KEYID_free(
Pointer< AUTHORITY_KEYID> akid) → void -
AUTHORITY_KEYID_free releases memory associated with
akid. -
AUTHORITY_KEYID_new(
) → Pointer< AUTHORITY_KEYID> -
AUTHORITY_KEYID_new returns a newly-allocated, empty
AUTHORITY_KEYIDobject, or NULL on error. -
BASIC_CONSTRAINTS_free(
Pointer< BASIC_CONSTRAINTS> bcons) → void -
BASIC_CONSTRAINTS_free releases memory associated with
bcons. -
BASIC_CONSTRAINTS_new(
) → Pointer< BASIC_CONSTRAINTS> -
BASIC_CONSTRAINTS_new returns a newly-allocated, empty
BASIC_CONSTRAINTSobject, or NULL on error. -
BIO_append_filename(
Pointer< BIO> bio, Pointer<Char> filename) → int -
BIO_append_filename opens
filenamefor appending and sets the result as theFILEforbio. It returns one on success and zero otherwise. TheFILEwill be closed whenbiois freed. On Windows, the file is opened in binary mode. -
BIO_callback_ctrl(
Pointer< BIO> bio, int cmd, Pointer<BIO_info_cb> fp) → int -
BIO_callback_ctrl allows the callback function to be manipulated. The
cmdarg will generally beBIO_CTRL_SET_CALLBACKbut arbitrary command values can be interpreted by theBIO. -
BIO_clear_flags(
Pointer< BIO> bio, int flags) → void -
BIO_clear_flags ANDs
bio->flagswith the bitwise-complement offlags. Unless otherwise documented, flags are private to either BoringSSL or the customBIO_METHOD. -
BIO_clear_retry_flags(
Pointer< BIO> bio) → void -
BIO_clear_retry_flags clears the
BIO_FLAGS_READ,BIO_FLAGS_WRITE,BIO_FLAGS_IO_SPECIALandBIO_FLAGS_SHOULD_RETRYflags frombio. -
BIO_copy_next_retry(
Pointer< BIO> bio) → void -
BIO_copy_next_retry sets the retry flags and
retry_reasonofbiofrom the next BIO in the chain. -
BIO_ctrl(
Pointer< BIO> bio, int cmd, int larg, Pointer<Void> parg) → int -
BIO_ctrl sends the control request
cmdtobio. Thecmdargument should be one of theBIO_C_*values. -
BIO_ctrl_get_read_request(
Pointer< BIO> bio) → int -
BIO_ctrl_get_read_request returns the number of bytes that the other side of
biotried (unsuccessfully) to read. -
BIO_ctrl_get_write_guarantee(
Pointer< BIO> bio) → int -
BIO_ctrl_get_write_guarantee returns the number of bytes that
bio(which must have been returned byBIO_new_bio_pair) will accept on the nextBIO_writecall. -
BIO_ctrl_pending(
Pointer< BIO> bio) → int -
BIO_ctrl_pending calls
BIO_pendingand exists only for compatibility with OpenSSL. -
BIO_do_connect(
Pointer< BIO> bio) → int -
BIO_do_connect connects
bioif it has not been connected yet. It returns one on success and <= 0 otherwise. -
BIO_dup_ref(
Pointer< BIO> bio) → Pointer<BIO> -
BIO_dup_ref increments the reference count of
bioand returns the same handle. -
BIO_eof(
Pointer< BIO> bio) → int -
BIO_eof returns non-zero when
biohas reached end-of-file. The precise meaning of which depends on the concrete type ofbio. Note that in the case of BIO_pair this always returns non-zero. -
BIO_find_type(
Pointer< BIO> bio, int type) → Pointer<BIO> -
BIO_find_type walks a chain of BIOs and returns the first that matches
type, which is one of theBIO_TYPE_*values. -
BIO_flush(
Pointer< BIO> bio) → int -
BIO_flush flushes any buffered output. It returns one on success and <= 0 on
error. Callers that support non-blocking I/O should call
BIO_should_writeon error to check if the error is fatal or retryable. -
BIO_free(
Pointer< BIO> bio) → int -
BIO_free decrements the reference count of
bio. If the reference count drops to zero, it calls the destroy callback, if present, on the method and freesbioitself. Ifbiois part of a chain (seeBIO_push), this will also free the nextBIOin the chain, and so on. -
BIO_free_all(
Pointer< BIO> bio) → void -
BIO_free_all calls
BIO_free. Code that targets BoringSSL does not need to call a separate free function forBIOs that are part of a chain. -
BIO_get_data(
Pointer< BIO> bio) → Pointer<Void> -
BIO_get_data returns custom data on
bioset byBIO_get_data. -
BIO_get_ex_data(
Pointer< BIO> bio, int idx) → Pointer<Void> -
BIO_get_ex_new_index(
int argl, Pointer< Void> argp, Pointer<Int> unused, Pointer<CRYPTO_EX_dup> dup_unused, Pointer<CRYPTO_EX_free> free_func) → int - ex_data functions.
-
BIO_get_fd(
Pointer< BIO> bio, Pointer<Int> out_fd) → int -
BIO_get_fd returns the file descriptor currently in use by
bioor -1 ifbiodoes not wrap a file descriptor. If there is a file descriptor andout_fdis not NULL, it also sets*out_fdto the file descriptor. -
BIO_get_fp(
Pointer< BIO> bio, Pointer<Pointer< out_file) → intFILE> > -
BIO_get_fp sets
*out_fileto the currentFILEforbio. It returns one on success and zero otherwise. -
BIO_get_init(
Pointer< BIO> bio) → int -
BIO_get_init returns whether
biohas been fully initialized. -
BIO_get_mem_data(
Pointer< BIO> bio, Pointer<Pointer< contents) → intChar> > -
BIO_get_mem_data sets
*contentsto point to the current contents ofbioand returns the length of the data. -
BIO_get_mem_ptr(
Pointer< BIO> bio, Pointer<Pointer< out) → intBUF_MEM> > -
BIO_get_mem_ptr sets
*outto a BUF_MEM containing the current contents ofbio. It returns one on success or zero on error. -
BIO_get_new_index(
) → int -
BIO_get_new_index returns a new "type" value for a custom
BIO, or -1 on error. -
BIO_get_retry_flags(
Pointer< BIO> bio) → int -
BIO_get_retry_flags gets the
BIO_FLAGS_READ,BIO_FLAGS_WRITE,BIO_FLAGS_IO_SPECIALandBIO_FLAGS_SHOULD_RETRYflags frombio. -
BIO_get_retry_reason(
Pointer< BIO> bio) → int -
BIO_get_retry_reason returns the special I/O operation that needs to be
retried. The return value is one of the
BIO_RR_*values. -
BIO_get_shutdown(
Pointer< BIO> bio) → int - BIO_get_shutdown returns the method-specific "shutdown" bit.
-
BIO_gets(
Pointer< BIO> bio, Pointer<Char> buf, int size) → int -
BIO_gets reads a line from
bioand writes at mostsizebytes intobuf. It returns the number of bytes read or a negative number on error. This function's output always includes a trailing NUL byte, so it will read at mostsize - 1bytes. -
BIO_hexdump(
Pointer< BIO> bio, Pointer<Uint8> data, int len, int indent) → int -
BIO_hexdump writes a hex dump of
datatobio. Each line will be indented byindentspaces. It returns one on success and zero otherwise. -
BIO_indent(
Pointer< BIO> bio, int indent, int max_indent) → int -
BIO_indent prints min(
indent,max_indent) spaces. It returns one on success and zero otherwise. -
BIO_int_ctrl(
Pointer< BIO> bp, int cmd, int larg, int iarg) → int -
BIO_int_ctrl acts like
BIO_ctrlbut passes the address of a copy ofiargasparg. -
BIO_mem_contents(
Pointer< BIO> bio, Pointer<Pointer< out_contents, Pointer<Uint8> >Size> out_len) → int -
BIO_mem_contents sets
*out_contentsto point to the current contents ofbioand*out_lento contain the length of that data. It returns one on success and zero otherwise. -
BIO_meth_free(
Pointer< BIO_METHOD> method) → void -
BIO_meth_free releases memory associated with
method. -
BIO_meth_get_callback_ctrl(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Long Function(Pointer< >BIO> , Int, Pointer<BIO_info_cb> )> -
BIO_meth_get_create(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Int Function(Pointer< >BIO> )> -
BIO_meth_get_ctrl(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Long Function(Pointer< >BIO> , Int, Long, Pointer<Void> )> -
BIO_meth_get_destroy(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Int Function(Pointer< >BIO> )> -
BIO_meth_get_gets(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Int Function(Pointer< >BIO> , Pointer<Char> , Int)> -
BIO_meth_get_puts(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Int Function(Pointer< >BIO> , Pointer<Char> )> -
BIO_meth_get_read(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Int Function(Pointer< >BIO> , Pointer<Char> , Int)> -
BIO_meth_get_write(
Pointer< BIO_METHOD> method) → Pointer<NativeFunction< Int Function(Pointer< >BIO> , Pointer<Char> , Int)> -
The following functions return function pointers, possibly NULL, which are
compatible with the corresponding
BIO_meth_set_*function.methodmust beBIO_s_socketor the program will abort. -
BIO_meth_new(
int type, Pointer< Char> name) → Pointer<BIO_METHOD> -
BIO_meth_new returns a newly-allocated
BIO_METHODor NULL on allocation error.typeandnameoptionally identify theBIO_METHOD. Most callers will not need to inspect the type of their ownBIOs and can pass zero and NULL, respectively, to skip this mechanism. -
BIO_meth_set_callback_ctrl(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< callback_ctrl_func) → intLong Function(Pointer< >BIO> , Int, Pointer<BIO_info_cb> )> -
BIO_meth_set_callback_ctrl sets the implementation of
BIO_callback_ctrlformethodand returns one. -
BIO_meth_set_create(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< create_func) → intInt Function(Pointer< >BIO> )> -
BIO_meth_set_create sets a function to be called on
BIO_newformethodand returns one. The function should return one on success and zero on error. -
BIO_meth_set_ctrl(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< ctrl_func) → intLong Function(Pointer< >BIO> , Int, Long, Pointer<Void> )> -
BIO_meth_set_ctrl sets the implementation of
BIO_ctrlformethodand returns one. -
BIO_meth_set_destroy(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< destroy_func) → intInt Function(Pointer< >BIO> )> -
BIO_meth_set_destroy sets a function to release data associated with a
BIOand returns one. The function's return value is ignored. -
BIO_meth_set_gets(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< gets_func) → intInt Function(Pointer< >BIO> , Pointer<Char> , Int)> -
BIO_meth_set_gets sets the implementation of
BIO_getsformethodand returns one. -
BIO_meth_set_puts(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< puts) → intInt Function(Pointer< >BIO> , Pointer<Char> )> -
BIO_meth_set_puts returns one.
BIO_putsis implemented withBIO_writein BoringSSL. -
BIO_meth_set_read(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< read_func) → intInt Function(Pointer< >BIO> , Pointer<Char> , Int)> -
BIO_meth_set_read sets the implementation of
BIO_readformethodand returns one. -
BIO_meth_set_write(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< write_func) → intInt Function(Pointer< >BIO> , Pointer<Char> , Int)> -
BIO_meth_set_write sets the implementation of
BIO_writeformethodand returns one.BIO_METHODs which implementBIO_writeshould also implementBIO_CTRL_FLUSH. (SeeBIO_meth_set_ctrl.) -
BIO_meth_set_write_ex(
Pointer< BIO_METHOD> method, Pointer<NativeFunction< write_ex_func) → intInt Function(Pointer< >BIO> , Pointer<Char> , Size, Pointer<Size> )> -
BIO_meth_set_write_ex sets the implementation of
BIO_write_exformethodand returns one.BIO_METHODs which implementBIO_write_exshould also implementBIO_CTRL_FLUSH. (SeeBIO_meth_set_ctrl.) -
BIO_method_type(
Pointer< BIO> bio) → int -
BIO_method_type returns the type of
bio, which is one of theBIO_TYPE_*values. -
BIO_new(
Pointer< BIO_METHOD> method) → Pointer<BIO> -
BIO_new creates a new BIO with the given method and a reference count of one.
It returns the fresh
BIO, or NULL on error. -
BIO_new_bio_pair(
Pointer< Pointer< out1, int writebuf1, Pointer<BIO> >Pointer< out2, int writebuf2) → intBIO> > -
BIO_new_bio_pair sets
*out1and*out2to two freshly created BIOs where data written to one can be read from the other and vice versa. Thewritebuf1argument gives the size of the buffer used in*out1andwritebuf2for*out2. It returns one on success and zero on error. -
BIO_new_connect(
Pointer< Char> host_and_optional_port) → Pointer<BIO> -
BIO_new_connect returns a BIO that connects to the given hostname and port.
The
host_and_optional_portargument should be of the form "www.example.com" or "www.example.com:443". If the port is omitted, it must be provided withBIO_set_conn_port. -
BIO_new_fd(
int fd, int close_flag) → Pointer< BIO> -
BIO_new_fd creates a new file descriptor BIO wrapping
fd. Ifclose_flagis non-zero, thenfdwill be closed when the BIO is. -
BIO_new_file(
Pointer< Char> filename, Pointer<Char> mode) → Pointer<BIO> -
BIO_new_file creates a file BIO by opening
filenamewith the given mode. See thefopenmanual page for details of the mode argument. On Windows, files may be opened in either binary or text mode so, as infopen, callers must specify the desired option inmode. -
BIO_new_fp(
Pointer< FILE> file, int flags) → Pointer<BIO> -
BIO_new_fp creates a new file BIO that wraps
file. IfflagscontainsBIO_CLOSE, thenfclosewill be called onfilewhen the BIO is closed. -
BIO_new_mem_buf(
Pointer< Void> buf, int len) → Pointer<BIO> -
BIO_new_mem_buf creates read-only BIO that reads from
lenbytes atbuf. It returns the BIO or NULL on error. This function does not copy or take ownership ofbuf. The caller must ensure the memory pointed to bybufoutlives theBIO. -
BIO_new_socket(
int fd, int close_flag) → Pointer< BIO> -
BIO_new_socket allocates and initialises a fresh BIO which will read and
write to the socket
fd. Ifclose_flagisBIO_CLOSEthen closing the BIO will closefd. It returns the freshBIOor NULL on error. -
BIO_next(
Pointer< BIO> bio) → Pointer<BIO> -
BIO_next returns the next BIO in the chain after
bio, or NULL if there is no such BIO. -
BIO_number_read(
Pointer< BIO> bio) → int -
BIO_number_read returns the number of bytes that have been read from
bio. -
BIO_number_written(
Pointer< BIO> bio) → int -
BIO_number_written returns the number of bytes that have been written to
bio. -
BIO_pending(
Pointer< BIO> bio) → int - BIO_pending returns the number of bytes pending to be read.
-
BIO_pop(
Pointer< BIO> bio) → Pointer<BIO> -
BIO_pop removes
biofrom the head of a chain and returns the next BIO in the chain, or NULL if there is no next BIO. -
BIO_printf(
Pointer< BIO> bio, Pointer<Char> format) → int -
BIO_printf behaves like
printfbut outputs tobiorather than aFILE. It returns the number of bytes written or a negative number on error. -
BIO_ptr_ctrl(
Pointer< BIO> bp, int cmd, int larg) → Pointer<Char> -
BIO_ptr_ctrl acts like
BIO_ctrlbut passes the address of avoid*pointer aspargand returns the value that is written to it, or NULL if the control request returns <= 0. -
BIO_push(
Pointer< BIO> bio, Pointer<BIO> appended_bio) → Pointer<BIO> -
BIO_push adds
appended_bioto the end of the chain withbioat the head. It returnsbio. Note thatappended_biomay be the head of a chain itself and thus this function can be used to join two chains. -
BIO_puts(
Pointer< BIO> bio, Pointer<Char> buf) → int -
BIO_puts writes a NUL terminated string from
buftobio. It returns the number of bytes written or a negative number on error. -
BIO_read(
Pointer< BIO> bio, Pointer<Void> data, int len) → int -
BIO_read attempts to read
lenbytes intodata. It returns the number of bytes read, zero on EOF, or a negative number on error. Callers that support non-blocking I/O should callBIO_should_readon error to check if the error is fatal or retryable. -
BIO_read_asn1(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<Uint8> >Size> out_len, int max_len) → int -
BIO_read_asn1 reads a single ASN.1 object from
bio. If successful it sets*outto be an allocated buffer (that should be freed withOPENSSL_free),*out_sizeto the length, in bytes, of that buffer and returns one. Otherwise it returns zero. -
BIO_read_filename(
Pointer< BIO> bio, Pointer<Char> filename) → int -
BIO_read_filename opens
filenamefor reading and sets the result as theFILEforbio. It returns one on success and zero otherwise. TheFILEwill be closed whenbiois freed. On Windows, the file is opened in binary mode. -
BIO_reset(
Pointer< BIO> bio) → int -
BIO_reset resets
bioto its initial state, the precise meaning of which depends on the concrete type ofbio. It normally returns one on success and <= 0 otherwise. However, for file and fd BIOs, it returns zero on success and a negative number on error. -
BIO_rw_filename(
Pointer< BIO> bio, Pointer<Char> filename) → int -
BIO_rw_filename opens
filenamefor reading and writing and sets the result as theFILEforbio. It returns one on success and zero otherwise. TheFILEwill be closed whenbiois freed. On Windows, the file is opened in binary mode. -
BIO_s_connect(
) → Pointer< BIO_METHOD> -
BIO_s_fd(
) → Pointer< BIO_METHOD> -
BIO_s_fd returns a
BIO_METHODfor file descriptor fds. -
BIO_s_file(
) → Pointer< BIO_METHOD> -
BIO_s_file returns a BIO_METHOD that wraps a
FILE. -
BIO_s_mem(
) → Pointer< BIO_METHOD> -
BIO_s_mem returns a
BIO_METHODthat uses an in-memory buffer. -
BIO_s_socket(
) → Pointer< BIO_METHOD> -
BIO_seek(
Pointer< BIO> bio, int offset) → int -
BIO_seek sets the file offset of
biotooffset. It returns a non-negative number on success and a negative number on error. Ifbiois a file descriptorBIO, it returns the resulting file offset on success. Ifbiois a fileBIO, it returns zero on success. -
BIO_set_close(
Pointer< BIO> bio, int close_flag) → int -
BIO_set_close sets the close flag for
bio. The meaning of which depends on the type ofbiobut, for example, a memory BIO interprets the close flag as meaning that it owns its buffer. It returns one on success and zero otherwise. -
BIO_set_conn_hostname(
Pointer< BIO> bio, Pointer<Char> host_and_optional_port) → int -
BIO_set_conn_hostname sets
host_and_optional_portas the hostname and optional port thatbiowill connect to. If the port is omitted, it must be provided withBIO_set_conn_port. -
BIO_set_conn_int_port(
Pointer< BIO> bio, Pointer<Int> port) → int -
BIO_set_conn_int_port sets
*portas the port thatbiowill connect to. It returns one on success and zero otherwise. -
BIO_set_conn_port(
Pointer< BIO> bio, Pointer<Char> port_str) → int -
BIO_set_conn_port sets
port_stras the port or service name thatbiowill connect to. It returns one on success and zero otherwise. -
BIO_set_data(
Pointer< BIO> bio, Pointer<Void> ptr) → void -
BIO_set_data sets custom data on
bio. It may be retried withBIO_get_data. -
BIO_set_ex_data(
Pointer< BIO> bio, int idx, Pointer<Void> arg) → int -
BIO_set_fd(
Pointer< BIO> bio, int fd, int close_flag) → int -
BIO_set_fd sets the file descriptor of
biotofd. Ifclose_flagis non-zero thenfdwill be closed whenbiois. It returns one on success or zero on error. -
BIO_set_flags(
Pointer< BIO> bio, int flags) → void -
BIO_set_flags ORs
flagswithbio->flags. Unless otherwise documented, flags are private to either BoringSSL or the customBIO_METHOD. -
BIO_set_fp(
Pointer< BIO> bio, Pointer<FILE> file, int flags) → int -
BIO_set_fp sets the
FILEforbio. IfflagscontainsBIO_CLOSEthenfclosewill be called onfilewhenbiois closed. It returns one on success and zero otherwise. -
BIO_set_init(
Pointer< BIO> bio, int init) → void -
BIO_set_init sets whether
biohas been fully initialized. Until fully initialized,BIO_readandBIO_writewill fail. -
BIO_set_mem_buf(
Pointer< BIO> bio, Pointer<BUF_MEM> b, int take_ownership) → int -
BIO_set_mem_buf sets
bas the contents ofbio. Iftake_ownershipis non-zero, thenbwill be freed whenbiois closed. Returns one on success or zero otherwise. -
BIO_set_mem_eof_return(
Pointer< BIO> bio, int eof_value) → int -
BIO_set_mem_eof_return sets the value that will be returned from reading
biowhen empty. Ifeof_valueis zero then an empty memory BIO will return EOF (that is it will return zero andBIO_should_retrywill be false). Ifeof_valueis non zero then it will returneof_valuewhen it is empty and it will set the read retry flag (that isBIO_read_retryis true). To avoid ambiguity with a normal positive return value,eof_valueshould be set to a negative value, typically -1. -
BIO_set_nbio(
Pointer< BIO> bio, int on) → int -
BIO_set_nbio sets whether
biowill use non-blocking I/O operations. It returns one on success and zero otherwise. This only works for connect BIOs and must be called beforebiois connected to take effect. -
BIO_set_retry_read(
Pointer< BIO> bio) → void -
BIO_set_retry_read sets the
BIO_FLAGS_READandBIO_FLAGS_SHOULD_RETRYflags onbio. -
BIO_set_retry_reason(
Pointer< BIO> bio, int reason) → void -
BIO_set_retry_reason sets the special I/O operation that needs to be retried
to
reason, which should be one of theBIO_RR_*values. -
BIO_set_retry_special(
Pointer< BIO> bio) → void -
BIO_set_retry_write(
Pointer< BIO> bio) → void -
BIO_set_retry_write sets the
BIO_FLAGS_WRITEandBIO_FLAGS_SHOULD_RETRYflags onbio. -
BIO_set_shutdown(
Pointer< BIO> bio, int shutdown) → void -
BIO_set_shutdown sets a method-specific "shutdown" bit on
bio. -
BIO_set_write_buffer_size(
Pointer< BIO> bio, int buffer_size) → int - BIO_set_write_buffer_size returns zero.
-
BIO_should_io_special(
Pointer< BIO> bio) → int -
BIO_should_io_special returns non-zero if
bioencountered a temporary error while performing a special I/O operation, indicating that the caller should retry. The operation that caused the error is returned byBIO_get_retry_reason. -
BIO_should_read(
Pointer< BIO> bio) → int -
BIO_should_read returns non-zero if
bioencountered a temporary error while reading (i.e. EAGAIN), indicating that the caller should retry the read. -
BIO_should_retry(
Pointer< BIO> bio) → int - BIO_should_retry returns non-zero if the reason that caused a failed I/O operation is temporary and thus the operation should be retried. Otherwise, it was a permanent error and it returns zero.
-
BIO_should_write(
Pointer< BIO> bio) → int -
BIO_should_write returns non-zero if
bioencountered a temporary error while writing (i.e. EAGAIN), indicating that the caller should retry the write. -
BIO_shutdown_wr(
Pointer< BIO> bio) → int -
BIO_shutdown_wr marks
bioas closed, from the point of view of the other side of the pair. FutureBIO_writecalls onbiowill fail. It returns one on success and zero otherwise. -
BIO_snprintf(
Pointer< Char> buf, int n, Pointer<Char> format) → int - BIO_snprintf has the same behavior as snprintf(3).
-
BIO_tell(
Pointer< BIO> bio) → int -
BIO_tell returns the file offset of
bio, or a negative number on error or ifbiodoes not support the operation. -
BIO_test_flags(
Pointer< BIO> bio, int flags) → int -
BIO_test_flags returns
bio->flagsANDflags. -
BIO_up_ref(
Pointer< BIO> bio) → int -
BIO_up_ref increments the reference count of
bioand returns one. -
BIO_vfree(
Pointer< BIO> bio) → void -
BIO_vfree performs the same actions as
BIO_free, but has a void return value. This is provided for API-compat. -
BIO_wpending(
Pointer< BIO> bio) → int - BIO_wpending returns the number of bytes pending to be written.
-
BIO_write(
Pointer< BIO> bio, Pointer<Void> data, int len) → int -
BIO_write writes
lenbytes fromdatatobio. It returns the number of bytes written or a negative number on error. Callers that support non-blocking I/O should callBIO_should_writeon error to check if the error is fatal or retryable. -
BIO_write_all(
Pointer< BIO> bio, Pointer<Void> data, int len) → int -
BIO_write_all writes
lenbytes fromdatatobio, looping as necessary. It returns one if all bytes were successfully written and zero on error. -
BIO_write_ex(
Pointer< BIO> bio, Pointer<Void> data, int len, Pointer<Size> out_written) → int -
BIO_write_ex writes
lenbytes fromdatatobio. On success, it returns one and sets*out_writtento the number of bytes written. Otherwise, it returns zero.out_writtenmay be NULL to ignore the value. Callers that support non-blocking I/O should callBIO_should_writeon error to check if the error is fatal or retryable. -
BIO_write_filename(
Pointer< BIO> bio, Pointer<Char> filename) → int -
BIO_write_filename opens
filenamefor writing and sets the result as theFILEforbio. It returns one on success and zero otherwise. TheFILEwill be closed whenbiois freed. On Windows, the file is opened in binary mode. -
BN_abs_is_word(
Pointer< BIGNUM> bn, int w) → int -
BN_abs_is_word returns one if the absolute value of
bnequalswand zero otherwise. -
BN_add(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_add sets
r=a+b, wherermay be the same pointer as eitheraorb. It returns one on success and zero on allocation failure. -
BN_add_word(
Pointer< BIGNUM> a, int w) → int -
BN_add_word adds
wtoa. It returns one on success and zero otherwise. -
BN_asc2bn(
Pointer< Pointer< outp, Pointer<BIGNUM> >Char> in$) → int -
BN_asc2bn acts like
BN_dec2bnorBN_hex2bndepending on whetherinbegins with "0X" or "0x" (indicating hex) or not (indicating decimal). A leading '-' is still permitted and comes before the optional 0X/0x. It returns one on success or zero on error. -
BN_bin2bn(
Pointer< Uint8> in$, int len, Pointer<BIGNUM> ret) → Pointer<BIGNUM> -
BN_bin2bn sets
*retto the value oflenbytes fromin, interpreted as a big-endian number, and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. -
BN_bn2bin(
Pointer< BIGNUM> in$, Pointer<Uint8> out) → int -
BN_bn2bin serialises the absolute value of
intooutas a big-endian integer, which must haveBN_num_bytesof space available. It returns the number of bytes written. Note this function leaks the magnitude ofin. Ifinis secret, useBN_bn2bin_paddedinstead. -
BN_bn2bin_padded(
Pointer< Uint8> out, int len, Pointer<BIGNUM> in$) → int -
BN_bn2bin_padded serialises the absolute value of
intooutas a big-endian integer. The integer is padded with leading zeros up to sizelen. Iflenis smaller thanBN_num_bytes, the function fails and returns 0. Otherwise, it returns 1. -
BN_bn2binpad(
Pointer< BIGNUM> in$, Pointer<Uint8> out, int len) → int -
BN_bn2binpad behaves like
BN_bn2bin_padded, but it returnslenon success and -1 on error. -
BN_bn2cbb_padded(
Pointer< CBB> out, int len, Pointer<BIGNUM> in$) → int -
BN_bn2cbb_padded behaves like
BN_bn2bin_paddedbut writes to aCBB. -
BN_bn2dec(
Pointer< BIGNUM> a) → Pointer<Char> -
BN_bn2dec returns an allocated string that contains a NUL-terminated,
decimal representation of
bn. Ifbnis negative, the first char in the resulting string will be '-'. Returns NULL on allocation failure. -
BN_bn2hex(
Pointer< BIGNUM> bn) → Pointer<Char> -
BN_bn2hex returns an allocated string that contains a NUL-terminated, hex
representation of
bn. Ifbnis negative, the first char in the resulting string will be '-'. Returns NULL on allocation failure. -
BN_bn2le_padded(
Pointer< Uint8> out, int len, Pointer<BIGNUM> in$) → int -
BN_bn2le_padded serialises the absolute value of
intooutas a little-endian integer, which must havelenof space available, padding out the remainder of out with zeros. Iflenis smaller thanBN_num_bytes, the function fails and returns 0. Otherwise, it returns 1. -
BN_bn2lebinpad(
Pointer< BIGNUM> in$, Pointer<Uint8> out, int len) → int -
BN_bn2lebinpad behaves like
BN_bn2le_padded, but it returnslenon success and -1 on error. -
BN_bn2mpi(
Pointer< BIGNUM> in$, Pointer<Uint8> out) → int -
BN_bn2mpi serialises the value of
intoout, using a format that consists of the number's length in bytes represented as a 4-byte big-endian number, and the number itself in big-endian format, where the most significant bit signals a negative number. (The representation of numbers with the MSB set is prefixed with null byte).outmust have sufficient space available; to find the needed amount of space, call the function withoutset to NULL. -
BN_clear(
Pointer< BIGNUM> bn) → void -
BN_clear sets
bnto zero and erases the old data. -
BN_clear_bit(
Pointer< BIGNUM> a, int n) → int -
BN_clear_bit clears the
nth, least-significant bit ina. For example, ifais 3, clearing bit zero will make it two. It returns one on success or zero on allocation failure. -
BN_clear_free(
Pointer< BIGNUM> bn) → void -
BN_clear_free erases and frees the data referenced by
bnand, ifbnwas originally allocated on the heap, freesbnalso. -
BN_cmp(
Pointer< BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_cmp returns a value less than, equal to or greater than zero if
ais less than, equal to or greater thanb, respectively. -
BN_cmp_word(
Pointer< BIGNUM> a, int b) → int -
BN_cmp_word is like
BN_cmpexcept it takes its second argument as aBN_ULONGinstead of aBIGNUM. -
BN_copy(
Pointer< BIGNUM> dest, Pointer<BIGNUM> src) → Pointer<BIGNUM> -
BN_copy sets
destequal tosrcand returnsdestor NULL on allocation failure. -
BN_count_low_zero_bits(
Pointer< BIGNUM> bn) → int -
BN_count_low_zero_bits returns the number of low-order zero bits in
bn, or the number of factors of two which divide it. It returns zero ifbnis zero. -
BN_CTX_end(
Pointer< BN_CTX> ctx) → void -
BN_CTX_end invalidates all
BIGNUMs returned fromBN_CTX_getsince the matchingBN_CTX_startcall. -
BN_CTX_free(
Pointer< BN_CTX> ctx) → void -
BN_CTX_free frees all BIGNUMs contained in
ctxand then freesctxitself. -
BN_CTX_get(
Pointer< BN_CTX> ctx) → Pointer<BIGNUM> -
BN_CTX_get returns a new
BIGNUM, or NULL on allocation failure. OnceBN_CTX_gethas returned NULL, all future calls will also return NULL untilBN_CTX_endis called. -
BN_CTX_new(
) → Pointer< BN_CTX> - BN_CTX_new returns a new, empty BN_CTX or NULL on allocation failure.
-
BN_CTX_start(
Pointer< BN_CTX> ctx) → void -
BN_CTX_start "pushes" a new entry onto the
ctxstack and allows future calls toBN_CTX_get. -
BN_dec2bn(
Pointer< Pointer< outp, Pointer<BIGNUM> >Char> in$) → int -
BN_dec2bn parses the leading decimal number from
in, which may be proceeded by a '-' to indicate a negative number and may contain trailing, non-decimal data. Ifoutpis not NULL, it constructs a BIGNUM equal to the decimal number and stores it in*outp. If*outpis NULL then it allocates a new BIGNUM and updates*outp. It returns the number of bytes ofinprocessed or zero on error. -
BN_div(
Pointer< BIGNUM> quotient, Pointer<BIGNUM> rem, Pointer<BIGNUM> numerator, Pointer<BIGNUM> divisor, Pointer<BN_CTX> ctx) → int -
BN_div divides
numeratorbydivisorand places the result inquotientand the remainder inrem. Either ofquotientorremmay be NULL, in which case the respective value is not returned. It returns one on success or zero on error. It is an error condition ifdivisoris zero. -
BN_div_word(
Pointer< BIGNUM> numerator, int divisor) → int -
BN_div_word sets
numerator=numerator/divisorand returns the remainder or (BN_ULONG)-1 on error. -
BN_dup(
Pointer< BIGNUM> src) → Pointer<BIGNUM> -
BN_dup allocates a new BIGNUM and sets it equal to
src. It returns the allocated BIGNUM on success or NULL otherwise. -
BN_enhanced_miller_rabin_primality_test(
Pointer< UnsignedInt> out_result, Pointer<BIGNUM> w, int checks, Pointer<BN_CTX> ctx, Pointer<BN_GENCB> cb) → int -
BN_enhanced_miller_rabin_primality_test tests whether
wis probably a prime number using the Enhanced Miller-Rabin Test (FIPS 186-5 B.3.2) withchecksiterations and returns the result inout_result. Enhanced Miller-Rabin tests primality for odd integers greater than 3, returningbn_probably_primeif the number is probably prime,bn_non_prime_power_compositeif the number is a composite that is not the power of a single prime, andbn_compositeotherwise. It returns one on success and zero on failure. Ifcbis not NULL, then it is called during each iteration of the primality test. -
BN_equal_consttime(
Pointer< BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_equal_consttime returns one if
ais equal tob, and zero otherwise. It takes an amount of time dependent on the sizes ofaandb, but independent of the contents (including the signs) ofaandb. -
BN_exp(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> p, Pointer<BN_CTX> ctx) → int -
BN_exp sets
requal toa^{p}. It does so with a square-and-multiply algorithm that leaks side-channel information. It returns one on success or zero otherwise. -
BN_free(
Pointer< BIGNUM> bn) → void -
BN_free frees the data referenced by
bnand, ifbnwas originally allocated on the heap, freesbnalso. -
BN_from_montgomery(
Pointer< BIGNUM> ret, Pointer<BIGNUM> a, Pointer<BN_MONT_CTX> mont, Pointer<BN_CTX> ctx) → int -
BN_from_montgomery sets
retequal toa* R^-1, i.e. translates values out of the Montgomery domain.ais assumed to be in the range [0, nR), wherenis the Montgomery modulus. Note n < R, so inputs in the range [0, nn) are valid. This function returns one on success or zero on error. -
BN_gcd(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BN_CTX> ctx) → int -
BN_gcd sets
r= gcd(a,b). It returns one on success and zero otherwise. -
BN_GENCB_call(
Pointer< BN_GENCB> callback, int event, int n) → int -
BN_GENCB_call calls
callback, if not NULL, and returns the return value of the callback, or 1 ifcallbackis NULL. -
BN_GENCB_free(
Pointer< BN_GENCB> callback) → void -
BN_GENCB_free releases memory associated with
callback. -
BN_GENCB_get_arg(
Pointer< BN_GENCB> callback) → Pointer<Void> -
BN_GENCB_get_arg returns
callback->arg. -
BN_GENCB_new(
) → Pointer< BN_GENCB> -
BN_GENCB_new returns a newly-allocated
BN_GENCBobject, or NULL on allocation failure. The result must be released withBN_GENCB_freewhen done. -
BN_GENCB_set(
Pointer< BN_GENCB> callback, Pointer<NativeFunction< f, Pointer<Int Function(Int, Int, Pointer< >BN_GENCB> )>Void> arg) → void -
BN_GENCB_set configures
callbackto callfand setscallout->argtoarg. -
BN_generate_prime_ex(
Pointer< BIGNUM> ret, int bits, int safe, Pointer<BIGNUM> add, Pointer<BIGNUM> rem, Pointer<BN_GENCB> cb) → int -
BN_generate_prime_ex sets
retto a prime number ofbitslength. If safe is non-zero then the prime will be such that (ret-1)/2 is also a prime. (This is needed for Diffie-Hellman groups to ensure that the only subgroups are of size 2 and (p-1)/2.). -
BN_get_rfc3526_prime_1536(
Pointer< BIGNUM> ret) → Pointer<BIGNUM> -
BN_get_rfc3526_prime_1536 sets
*retto the 1536-bit MODP group from RFC 3526 and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. The generator for this group is 2. -
BN_get_rfc3526_prime_2048(
Pointer< BIGNUM> ret) → Pointer<BIGNUM> -
BN_get_rfc3526_prime_2048 sets
*retto the 2048-bit MODP group from RFC 3526 and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. The generator for this group is 2. -
BN_get_rfc3526_prime_3072(
Pointer< BIGNUM> ret) → Pointer<BIGNUM> -
BN_get_rfc3526_prime_3072 sets
*retto the 3072-bit MODP group from RFC 3526 and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. The generator for this group is 2. -
BN_get_rfc3526_prime_4096(
Pointer< BIGNUM> ret) → Pointer<BIGNUM> -
BN_get_rfc3526_prime_4096 sets
*retto the 4096-bit MODP group from RFC 3526 and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. The generator for this group is 2. -
BN_get_rfc3526_prime_6144(
Pointer< BIGNUM> ret) → Pointer<BIGNUM> -
BN_get_rfc3526_prime_6144 sets
*retto the 6144-bit MODP group from RFC 3526 and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. The generator for this group is 2. -
BN_get_rfc3526_prime_8192(
Pointer< BIGNUM> ret) → Pointer<BIGNUM> -
BN_get_rfc3526_prime_8192 sets
*retto the 8192-bit MODP group from RFC 3526 and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. The generator for this group is 2. -
BN_get_u64(
Pointer< BIGNUM> bn, Pointer<Uint64> out) → int -
BN_get_u64 sets
*outto the absolute value ofbnas auint64_tand returns one. Ifbnis too large to be represented as auint64_t, it returns zero. -
BN_get_word(
Pointer< BIGNUM> bn) → int -
BN_get_word returns the absolute value of
bnas a single word. Ifbnis too large to be represented as a single word, the maximum possible value will be returned. -
BN_hex2bn(
Pointer< Pointer< outp, Pointer<BIGNUM> >Char> in$) → int -
BN_hex2bn parses the leading hex number from
in, which may be proceeded by a '-' to indicate a negative number and may contain trailing, non-hex data. Ifoutpis not NULL, it constructs a BIGNUM equal to the hex number and stores it in*outp. If*outpis NULL then it allocates a new BIGNUM and updates*outp. It returns the number of bytes ofinprocessed or zero on error. -
BN_init(
Pointer< BIGNUM> bn) → void -
BN_init initialises a stack allocated
BIGNUM. -
BN_is_bit_set(
Pointer< BIGNUM> a, int n) → int -
BN_is_bit_set returns one if the
nth least-significant bit inaexists and is set. Otherwise, it returns zero. -
BN_is_negative(
Pointer< BIGNUM> bn) → int -
BN_is_negative returns one if
bnis negative and zero otherwise. -
BN_is_odd(
Pointer< BIGNUM> bn) → int -
BN_is_odd returns one if
bnis odd and zero otherwise. -
BN_is_one(
Pointer< BIGNUM> bn) → int -
BN_is_one returns one if
bnequals one and zero otherwise. -
BN_is_pow2(
Pointer< BIGNUM> a) → int -
BN_is_pow2 returns 1 if
ais a power of two, and 0 otherwise. -
BN_is_prime_ex(
Pointer< BIGNUM> candidate, int checks, Pointer<BN_CTX> ctx, Pointer<BN_GENCB> cb) → int -
BN_is_prime_ex acts the same as
BN_is_prime_fasttest_exwithdo_trial_divisionset to zero. -
BN_is_prime_fasttest_ex(
Pointer< BIGNUM> candidate, int checks, Pointer<BN_CTX> ctx, int do_trial_division, Pointer<BN_GENCB> cb) → int -
BN_is_prime_fasttest_ex returns one if
candidateis probably a prime number by the Miller-Rabin test, zero if it's certainly not and -1 on error. -
BN_is_word(
Pointer< BIGNUM> bn, int w) → int -
BN_is_word returns one if
bnis exactlywand zero otherwise. -
BN_is_zero(
Pointer< BIGNUM> bn) → int -
BN_is_zero returns one if
bnis zero and zero otherwise. -
BN_le2bn(
Pointer< Uint8> in$, int len, Pointer<BIGNUM> ret) → Pointer<BIGNUM> -
BN_le2bn calls
BN_lebin2bn. -
BN_lebin2bn(
Pointer< Uint8> in$, int len, Pointer<BIGNUM> ret) → Pointer<BIGNUM> -
BN_lebin2bn sets
*retto the value oflenbytes fromin, interpreted as a little-endian number, and returnsret. Ifretis NULL then a freshBIGNUMis allocated and returned. It returns NULL on allocation failure. -
BN_lshift(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, int n) → int -
BN_lshift sets
requal toa<< n. Theaandrarguments may be the sameBIGNUM. It returns one on success and zero on allocation failure. -
BN_lshift1(
Pointer< BIGNUM> r, Pointer<BIGNUM> a) → int -
BN_lshift1 sets
requal toa<< 1, whererandamay be the same pointer. It returns one on success and zero on allocation failure. -
BN_marshal_asn1(
Pointer< CBB> cbb, Pointer<BIGNUM> bn) → int -
BN_marshal_asn1 marshals
bnas a non-negative DER INTEGER and appends the result tocbb. It returns one on success and zero on failure. -
BN_mask_bits(
Pointer< BIGNUM> a, int n) → int -
BN_mask_bits truncates
aso that it is onlynbits long. It returns one on success or zero ifnis negative. -
BN_mod_add(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_add sets
r=a+bmodm. It returns one on success and zero on error. -
BN_mod_add_quick(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BIGNUM> m) → int -
BN_mod_add_quick acts like
BN_mod_addbut requires thataandbbe non-negative and less thanm. -
BN_mod_exp(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> p, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_exp sets
requal toa^{p} modm. It does so with the best algorithm for the values provided. It returns one on success or zero otherwise. TheBN_mod_exp_mont_consttimevariant must be used if the exponent is secret. -
BN_mod_exp2_mont(
Pointer< BIGNUM> r, Pointer<BIGNUM> a1, Pointer<BIGNUM> p1, Pointer<BIGNUM> a2, Pointer<BIGNUM> p2, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx, Pointer<BN_MONT_CTX> mont) → int - BN_mod_exp2_mont calculates (a1^p1) * (a2^p2) mod m. It returns 1 on success or zero otherwise.
-
BN_mod_exp_mont(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> p, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx, Pointer<BN_MONT_CTX> mont) → int -
BN_mod_exp_mont behaves like
BN_mod_expbut treatsaas secret and requires 0 <=a<m. -
BN_mod_exp_mont_consttime(
Pointer< BIGNUM> rr, Pointer<BIGNUM> a, Pointer<BIGNUM> p, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx, Pointer<BN_MONT_CTX> mont) → int -
BN_mod_exp_mont_consttime behaves like
BN_mod_expbut treatsa,p, andmas secret and requires 0 <=a<m. -
BN_mod_exp_mont_word(
Pointer< BIGNUM> r, int a, Pointer<BIGNUM> p, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx, Pointer<BN_MONT_CTX> mont) → int -
BN_mod_exp_mont_word is like
BN_mod_exp_montexcept that the baseais given as aBN_ULONGinstead of aBIGNUM *. It returns one on success or zero otherwise. -
BN_mod_inverse(
Pointer< BIGNUM> out, Pointer<BIGNUM> a, Pointer<BIGNUM> n, Pointer<BN_CTX> ctx) → Pointer<BIGNUM> -
BN_mod_inverse sets
outequal toa^-1, modn. Ifoutis NULL, a fresh BIGNUM is allocated. It returns the result or NULL on error. -
BN_mod_inverse_blinded(
Pointer< BIGNUM> out, Pointer<Int> out_no_inverse, Pointer<BIGNUM> a, Pointer<BN_MONT_CTX> mont, Pointer<BN_CTX> ctx) → int -
BN_mod_inverse_blinded sets
outequal toa^-1, modn, wherenis the Montgomery modulus formont.amust be non-negative and must be less thann.nmust be greater than 1.ais blinded (masked by a random value) to protect it against side-channel attacks. On failure, if the failure was caused byahaving no inverse modnthen*out_no_inversewill be set to one; otherwise it will be set to zero. -
BN_mod_inverse_odd(
Pointer< BIGNUM> out, Pointer<Int> out_no_inverse, Pointer<BIGNUM> a, Pointer<BIGNUM> n, Pointer<BN_CTX> ctx) → int -
BN_mod_inverse_odd sets
outequal toa^-1, modn.amust be non-negative and must be less thann.nmust be odd. This function shouldn't be used for secret values; useBN_mod_inverse_blindedinstead. Or, ifnis guaranteed to be prime, useBN_mod_exp_mont_consttime(out, a, m_minus_2, m, ctx, m_mont), taking advantage of Fermat's Little Theorem. It returns one on success or zero on failure. On failure, if the failure was caused byahaving no inverse modnthen*out_no_inversewill be set to one; otherwise it will be set to zero. -
BN_mod_lshift(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, int n, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_lshift sets
r= (a<< n) modm, whererandamay be the same pointer. It returns one on success and zero on error. -
BN_mod_lshift1(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_lshift1 sets
r= (a<< 1) modm, whererandamay be the same pointer. It returns one on success and zero on error. -
BN_mod_lshift1_quick(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> m) → int -
BN_mod_lshift1_quick acts like
BN_mod_lshift1but requires thatabe non-negative and less thanm. -
BN_mod_lshift_quick(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, int n, Pointer<BIGNUM> m) → int -
BN_mod_lshift_quick acts like
BN_mod_lshiftbut requires thatabe non-negative and less thanm. -
BN_mod_mul(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_mul sets
r=a*bmodm. It returns one on success and zero on error. -
BN_mod_mul_montgomery(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BN_MONT_CTX> mont, Pointer<BN_CTX> ctx) → int -
BN_mod_mul_montgomery set
requal toa*b, in the Montgomery domain. Bothaandbmust already be in the Montgomery domain (byBN_to_montgomery). In particular,aandbare assumed to be in the range [0, n), wherenis the Montgomery modulus. It returns one on success or zero on error. -
BN_mod_pow2(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, int e) → int -
BN_mod_pow2 sets
r=amod 2^e. It returns 1 on success and 0 on error. -
BN_mod_sqr(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_sqr sets
r=a^2 modm. It returns one on success and zero on error. -
BN_mod_sqrt(
Pointer< BIGNUM> in$, Pointer<BIGNUM> a, Pointer<BIGNUM> p, Pointer<BN_CTX> ctx) → Pointer<BIGNUM> -
BN_mod_sqrt returns a newly-allocated
BIGNUM, r, such that r^2 == a (mod p). It returns NULL on error or ifais not a square modp. In the latter case, it will addBN_R_NOT_A_SQUAREto the error queue. Ifais a square andp> 2, there are two possible square roots. This function may return either and may even select one non-deterministically. -
BN_mod_sub(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
BN_mod_sub sets
r=a-bmodm. It returns one on success and zero on error. -
BN_mod_sub_quick(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BIGNUM> m) → int -
BN_mod_sub_quick acts like
BN_mod_subbut requires thataandbbe non-negative and less thanm. -
BN_mod_word(
Pointer< BIGNUM> a, int w) → int -
BN_mod_word returns
amodwor (BN_ULONG)-1 on error. -
BN_MONT_CTX_copy(
Pointer< BN_MONT_CTX> to, Pointer<BN_MONT_CTX> from) → Pointer<BN_MONT_CTX> -
BN_MONT_CTX_copy sets
toequal tofrom. It returnstoon success or NULL on error. -
BN_MONT_CTX_free(
Pointer< BN_MONT_CTX> mont) → void -
BN_MONT_CTX_free frees memory associated with
mont. -
BN_MONT_CTX_new(
) → Pointer< BN_MONT_CTX> -
BN_MONT_CTX_new returns a fresh
BN_MONT_CTXor NULL on allocation failure. UseBN_MONT_CTX_new_for_modulusinstead. -
BN_MONT_CTX_new_consttime(
Pointer< BIGNUM> mod, Pointer<BN_CTX> ctx) → Pointer<BN_MONT_CTX> -
BN_MONT_CTX_new_consttime behaves like
BN_MONT_CTX_new_for_modulusbut treatsmodas secret. -
BN_MONT_CTX_new_for_modulus(
Pointer< BIGNUM> mod, Pointer<BN_CTX> ctx) → Pointer<BN_MONT_CTX> -
BN_MONT_CTX_new_for_modulus returns a fresh
BN_MONT_CTXgiven the modulus,modor NULL on error. Note this function assumesmodis public. -
BN_MONT_CTX_set(
Pointer< BN_MONT_CTX> mont, Pointer<BIGNUM> mod, Pointer<BN_CTX> ctx) → int -
BN_MONT_CTX_set sets up a Montgomery context given the modulus,
mod. It returns one on success and zero on error. UseBN_MONT_CTX_new_for_modulusinstead. -
BN_mpi2bn(
Pointer< Uint8> in$, int len, Pointer<BIGNUM> out) → Pointer<BIGNUM> -
BN_mpi2bn parses
lenbytes frominand returns the resulting value. The bytes atinare expected to be in the format emitted byBN_bn2mpi. -
BN_mul(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BN_CTX> ctx) → int -
BN_mul sets
r=a*b, wherermay be the same pointer asaorb. Returns one on success and zero otherwise. -
BN_mul_word(
Pointer< BIGNUM> bn, int w) → int -
BN_mul_word sets
bn=bn*w. It returns one on success or zero on allocation failure. -
BN_new(
) → Pointer< BIGNUM> - BN_new creates a new, allocated BIGNUM and initialises it.
-
BN_nnmod(
Pointer< BIGNUM> rem, Pointer<BIGNUM> numerator, Pointer<BIGNUM> divisor, Pointer<BN_CTX> ctx) → int -
BN_nnmod is a non-negative modulo function. It acts like
BN_mod, but 0 <=rem<divisoris always true. It returns one on success and zero on error. -
BN_nnmod_pow2(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, int e) → int -
BN_nnmod_pow2 sets
r=amod 2^ewhereris always positive. It returns 1 on success and 0 on error. -
BN_num_bits(
Pointer< BIGNUM> bn) → int -
BN_num_bits returns the minimum number of bits needed to represent the
absolute value of
bn. -
BN_num_bits_word(
int l) → int -
BN_num_bytes(
Pointer< BIGNUM> bn) → int -
BN_num_bytes returns the minimum number of bytes needed to represent the
absolute value of
bn. -
BN_one(
Pointer< BIGNUM> bn) → int -
BN_one sets
bnto one. It returns one on success or zero on allocation failure. -
BN_parse_asn1_unsigned(
Pointer< CBS> cbs, Pointer<BIGNUM> ret) → int -
BN_parse_asn1_unsigned parses a non-negative DER INTEGER from
cbswrites the result toret. It returns one on success and zero on failure. -
BN_primality_test(
Pointer< Int> is_probably_prime, Pointer<BIGNUM> candidate, int checks, Pointer<BN_CTX> ctx, int do_trial_division, Pointer<BN_GENCB> cb) → int -
BN_primality_test sets
*is_probably_primeto one ifcandidateis probably a prime number by the Miller-Rabin test or zero if it's certainly not. -
BN_print(
Pointer< BIO> bio, Pointer<BIGNUM> a) → int -
BN_print writes a hex encoding of
atobio. It returns one on success and zero on error. -
BN_print_fp(
Pointer< FILE> fp, Pointer<BIGNUM> a) → int -
BN_print_fp acts like
BIO_print, but wrapsfpin aBIOfirst. -
BN_pseudo_rand(
Pointer< BIGNUM> rnd, int bits, int top, int bottom) → int -
BN_pseudo_rand is an alias for
BN_rand. -
BN_pseudo_rand_range(
Pointer< BIGNUM> rnd, Pointer<BIGNUM> range) → int - BN_pseudo_rand_range is an alias for BN_rand_range.
-
BN_rand(
Pointer< BIGNUM> rnd, int bits, int top, int bottom) → int -
BN_rand sets
rndto a random number of lengthbits. It returns one on success and zero otherwise. -
BN_rand_range(
Pointer< BIGNUM> rnd, Pointer<BIGNUM> range) → int -
BN_rand_range is equivalent to
BN_rand_range_exwithmin_inclusiveset to zero andmax_exclusiveset torange. -
BN_rand_range_ex(
Pointer< BIGNUM> r, int min_inclusive, Pointer<BIGNUM> max_exclusive) → int -
BN_rand_range_ex sets
rndto a random value in [min_inclusive..max_exclusive). It returns one on success and zero otherwise. -
BN_rshift(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, int n) → int -
BN_rshift sets
requal toa>> n, whererandamay be the same pointer. It returns one on success and zero on allocation failure. -
BN_rshift1(
Pointer< BIGNUM> r, Pointer<BIGNUM> a) → int -
BN_rshift1 sets
requal toa>> 1, whererandamay be the same pointer. It returns one on success and zero on allocation failure. -
BN_secure_new(
) → Pointer< BIGNUM> -
BN_secure_new calls
BN_new. -
BN_set_bit(
Pointer< BIGNUM> a, int n) → int -
BN_set_bit sets the
nth, least-significant bit ina. For example, ifais 2 then setting bit zero will make it 3. It returns one on success or zero on allocation failure. -
BN_set_negative(
Pointer< BIGNUM> bn, int sign) → void -
BN_set_negative sets the sign of
bn. -
BN_set_u64(
Pointer< BIGNUM> bn, int value) → int -
BN_set_u64 sets
bntovalue. It returns one on success or zero on allocation failure. -
BN_set_word(
Pointer< BIGNUM> bn, int value) → int -
BN_set_word sets
bntovalue. It returns one on success or zero on allocation failure. -
BN_sqr(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BN_CTX> ctx) → int -
BN_sqr sets
r=a^2 (i.e. squares), wherermay be the same pointer asa. Returns one on success and zero otherwise. This is more efficient than BN_mul(r, a, a, ctx). -
BN_sqrt(
Pointer< BIGNUM> out_sqrt, Pointer<BIGNUM> in$, Pointer<BN_CTX> ctx) → int -
BN_sqrt sets
*out_sqrt(which may be the sameBIGNUMasin) to the square root ofin, usingctx. It returns one on success or zero on error. Negative numbers and non-square numbers will result in an error with appropriate errors on the error queue. -
BN_sub(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_sub sets
r=a-b, wherermay be the same pointer as eitheraorb. It returns one on success and zero on allocation failure. -
BN_sub_word(
Pointer< BIGNUM> a, int w) → int -
BN_sub_word subtracts
wfroma. It returns one on success and zero on allocation failure. -
BN_to_ASN1_ENUMERATED(
Pointer< BIGNUM> bn, Pointer<ASN1_OCTET_STRING> ai) → Pointer<ASN1_OCTET_STRING> -
BN_to_ASN1_ENUMERATED sets
aito an ENUMERATED with valuebnand returnsaion success or NULL or error. Ifaiis NULL, it returns a newly-allocatedASN1_ENUMERATEDon success instead, which the caller must release withASN1_ENUMERATED_free. -
BN_to_ASN1_INTEGER(
Pointer< BIGNUM> bn, Pointer<ASN1_OCTET_STRING> ai) → Pointer<ASN1_OCTET_STRING> -
BN_to_ASN1_INTEGER sets
aito an INTEGER with valuebnand returnsaion success or NULL or error. Ifaiis NULL, it returns a newly-allocatedASN1_INTEGERon success instead, which the caller must release withASN1_INTEGER_free. -
BN_to_montgomery(
Pointer< BIGNUM> ret, Pointer<BIGNUM> a, Pointer<BN_MONT_CTX> mont, Pointer<BN_CTX> ctx) → int -
BN_to_montgomery sets
retequal toain the Montgomery domain.ais assumed to be in the range [0, n), wherenis the Montgomery modulus. It returns one on success or zero on error. -
BN_uadd(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_uadd sets
r=a+b, considering only the absolute values ofaandb.rmay be the same pointer as eitheraorb. It returns one on success and zero on allocation failure. -
BN_ucmp(
Pointer< BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_ucmp returns a value less than, equal to or greater than zero if the
absolute value of
ais less than, equal to or greater than the absolute value ofb, respectively. -
BN_usub(
Pointer< BIGNUM> r, Pointer<BIGNUM> a, Pointer<BIGNUM> b) → int -
BN_usub sets
r=a-b, considering only the absolute values ofaandb. The result must be non-negative, i.e.b<=a.rmay be the same pointer as eitheraorb. It returns one on success and zero on error. -
BN_value_one(
) → Pointer< BIGNUM> - BN_value_one returns a static BIGNUM with value 1.
-
BN_zero(
Pointer< BIGNUM> bn) → void -
BN_zero sets
bnto zero. -
BORINGSSL_self_test(
) → int - BORINGSSL_self_test triggers most of the FIPS KAT-based self tests. It returns one on success and zero on error. It currently skips the SLH-DSA tests, which take a really long time to run.
-
BORINGSSL_self_test_all(
) → int - BORINGSSL_self_test_all triggers all of the FIPS KAT-based self tests. This is the 'self-test' entry point required by FIPS 140. It returns one on success and zero on error. This test will take a very long time to run. You probably do not want to run this in a resource or time constrained test.
-
BUF_MEM_append(
Pointer< BUF_MEM> buf, Pointer<Void> in$, int len) → int -
BUF_MEM_append appends
intobuf. It returns one on success and zero on error. -
BUF_MEM_free(
Pointer< BUF_MEM> buf) → void -
BUF_MEM_free frees
buf->dataif needed and then freesbufitself. -
BUF_MEM_grow(
Pointer< BUF_MEM> buf, int len) → int -
BUF_MEM_grow ensures that
bufhas lengthlenand allocates memory if needed. If the length ofbufincreased, the new bytes are filled with zeros. It returns the length ofbuf, or zero if there's an error. -
BUF_MEM_grow_clean(
Pointer< BUF_MEM> buf, int len) → int -
BUF_MEM_grow_clean calls
BUF_MEM_grow. BoringSSL always zeros memory allocated memory on free. -
BUF_MEM_new(
) → Pointer< BUF_MEM> - BUF_MEM_new creates a new BUF_MEM which has no allocated data buffer.
-
BUF_MEM_reserve(
Pointer< BUF_MEM> buf, int cap) → int -
BUF_MEM_reserve ensures
bufhas capacitycapand allocates memory if needed. It returns one on success and zero on error. -
BUF_memdup(
Pointer< Void> data, int size) → Pointer<Void> -
BUF_memdup calls
OPENSSL_memdup. -
BUF_strdup(
Pointer< Char> str) → Pointer<Char> -
BUF_strdup calls
OPENSSL_strdup. -
BUF_strlcat(
Pointer< Char> dst, Pointer<Char> src, int dst_size) → int -
BUF_strlcat calls
OPENSSL_strlcat. -
BUF_strlcpy(
Pointer< Char> dst, Pointer<Char> src, int dst_size) → int -
BUF_strlcpy calls
OPENSSL_strlcpy. -
BUF_strndup(
Pointer< Char> str, int size) → Pointer<Char> -
BUF_strndup calls
OPENSSL_strndup. -
BUF_strnlen(
Pointer< Char> str, int max_len) → int -
BUF_strnlen calls
OPENSSL_strnlen. -
c2i_ASN1_BIT_STRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
c2i_ASN1_BIT_STRING decodes
lenbytes from*inpas the contents of a DER-encoded BIT STRING, excluding the tag and length. It behaves liked2i_SAMPLEexcept, on success, it always consumes alllenbytes. -
c2i_ASN1_INTEGER(
Pointer< Pointer< in$, Pointer<ASN1_OCTET_STRING> >Pointer< outp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
c2i_ASN1_INTEGER decodes
lenbytes from*inpas the contents of a DER-encoded INTEGER, excluding the tag and length. It behaves liked2i_SAMPLEexcept, on success, it always consumes alllenbytes. -
c2i_ASN1_OBJECT(
Pointer< Pointer< out, Pointer<ASN1_OBJECT> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OBJECT> -
c2i_ASN1_OBJECT decodes
lenbytes from*inpas the contents of a DER-encoded OBJECT IDENTIFIER, excluding the tag and length. It behaves liked2i_SAMPLEexcept, on success, it always consumes alllenbytes. -
CBB_add_asn1(
Pointer< CBB> cbb, Pointer<CBB> out_contents, int tag) → int -
CBB_add_asn1 sets
*out_contentsto aCBBinto which the contents of an ASN.1 object can be written. Thetagargument will be used as the tag for the object. It returns one on success or zero on error. -
CBB_add_asn1_bool(
Pointer< CBB> cbb, int value) → int -
CBB_add_asn1_bool writes an ASN.1 BOOLEAN into
cbbwhich is true iffvalueis non-zero. It returns one on success and zero on error. -
CBB_add_asn1_element(
Pointer< CBB> cbb, int tag, Pointer<Uint8> data, int data_len) → int -
CBB_add_asn1_element adds an ASN.1 element with the specified tag and
contents. It returns one on success and zero on error. This is a convenience
function over
CBB_add_asn1when the data is already available. -
CBB_add_asn1_int64(
Pointer< CBB> cbb, int value) → int -
CBB_add_asn1_int64 writes an ASN.1 INTEGER into
cbbusingCBB_add_asn1and writesvaluein its contents. It returns one on success and zero on error. -
CBB_add_asn1_int64_with_tag(
Pointer< CBB> cbb, int value, int tag) → int -
CBB_add_asn1_int64_with_tag behaves like
CBB_add_asn1_int64but usestagas the tag instead of INTEGER. This is useful if the INTEGER type uses implicit tagging. -
CBB_add_asn1_octet_string(
Pointer< CBB> cbb, Pointer<Uint8> data, int data_len) → int -
CBB_add_asn1_octet_string writes an ASN.1 OCTET STRING into
cbbwith the given contents. It returns one on success and zero on error. -
CBB_add_asn1_oid_component(
Pointer< CBB> cbb, int value) → int -
CBB_add_asn1_oid_component appends a single OID component to
cbb. It returns one on success and zero on error. -
CBB_add_asn1_oid_from_text(
Pointer< CBB> cbb, Pointer<Char> text, int len) → int -
CBB_add_asn1_oid_from_text decodes
lenbytes fromtextas an ASCII OID representation, e.g. "1.2.840.113554.4.1.72585", and writes the DER-encoded contents tocbb. It returns one on success and zero on malloc failure or iftextwas invalid. It does not include the OBJECT IDENTIFIER framing, only the element's contents. -
CBB_add_asn1_relative_oid_from_der_to_text(
Pointer< CBB> cbb, Pointer<Uint8> data, int data_len) → int -
CBB_add_asn1_relative_oid_from_der_to_text reads
data_lenbytes of DER-encoded ASN.1 RELATIVE-OID contents (not including the element framing) fromdataand writes the ASCII representation (e.g., "32473.1") tocbb(without a trailing NUL byte). It returns one on success and zero on failure. -
CBB_add_asn1_relative_oid_from_text(
Pointer< CBB> cbb, Pointer<Char> text, int len) → int -
CBB_add_asn1_relative_oid_from_text decodes
lenbytes fromtextas an ASCII RELATIVE-OID representation, e.g. "32473.1", and writes the DER-encoded contents tocbb. It returns one on success and zero on malloc failure or iftextwas invalid. It does not include any framing, only the element's contents. -
CBB_add_asn1_uint64(
Pointer< CBB> cbb, int value) → int -
CBB_add_asn1_uint64 writes an ASN.1 INTEGER into
cbbusingCBB_add_asn1and writesvaluein its contents. It returns one on success and zero on error. -
CBB_add_asn1_uint64_with_tag(
Pointer< CBB> cbb, int value, int tag) → int -
CBB_add_asn1_uint64_with_tag behaves like
CBB_add_asn1_uint64but usestagas the tag instead of INTEGER. This is useful if the INTEGER type uses implicit tagging. -
CBB_add_bytes(
Pointer< CBB> cbb, Pointer<Uint8> data, int len) → int -
CBB_add_bytes appends
lenbytes fromdatatocbb. It returns one on success and zero otherwise. -
CBB_add_latin1(
Pointer< CBB> cbb, int u) → int -
CBB_add_space(
Pointer< CBB> cbb, Pointer<Pointer< out_data, int len) → intUint8> > -
CBB_add_space appends
lenbytes tocbband sets*out_datato point to the beginning of that space. The caller must then writelenbytes of actual contents to*out_data. It returns one on success and zero otherwise. -
CBB_add_u16(
Pointer< CBB> cbb, int value) → int -
CBB_add_u16 appends a 16-bit, big-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u16_length_prefixed(
Pointer< CBB> cbb, Pointer<CBB> out_contents) → int -
CBB_add_u16_length_prefixed sets
*out_contentsto a new child ofcbb. The data written to*out_contentswill be prefixed incbbwith a 16-bit, big-endian length. It returns one on success or zero on error. -
CBB_add_u16le(
Pointer< CBB> cbb, int value) → int -
CBB_add_u16le appends a 16-bit, little-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u24(
Pointer< CBB> cbb, int value) → int -
CBB_add_u24 appends a 24-bit, big-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u24_length_prefixed(
Pointer< CBB> cbb, Pointer<CBB> out_contents) → int -
CBB_add_u24_length_prefixed sets
*out_contentsto a new child ofcbb. The data written to*out_contentswill be prefixed incbbwith a 24-bit, big-endian length. It returns one on success or zero on error. -
CBB_add_u32(
Pointer< CBB> cbb, int value) → int -
CBB_add_u32 appends a 32-bit, big-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u32le(
Pointer< CBB> cbb, int value) → int -
CBB_add_u32le appends a 32-bit, little-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u48(
Pointer< CBB> cbb, int value) → int -
CBB_add_u48 appends a 48-bit, big-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u64(
Pointer< CBB> cbb, int value) → int -
CBB_add_u64 appends a 64-bit, big-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u64le(
Pointer< CBB> cbb, int value) → int -
CBB_add_u64le appends a 64-bit, little-endian number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u8(
Pointer< CBB> cbb, int value) → int -
CBB_add_u8 appends an 8-bit number from
valuetocbb. It returns one on success and zero otherwise. -
CBB_add_u8_length_prefixed(
Pointer< CBB> cbb, Pointer<CBB> out_contents) → int -
CBB_add_u8_length_prefixed sets
*out_contentsto a new child ofcbb. The data written to*out_contentswill be prefixed incbbwith an 8-bit length. It returns one on success or zero on error. -
CBB_add_ucs2_be(
Pointer< CBB> cbb, int u) → int -
CBB_add_utf32_be(
Pointer< CBB> cbb, int u) → int -
CBB_add_utf8(
Pointer< CBB> cbb, int u) → int -
The following functions encode
utocbbwith the corresponding encoding. They return one on success and zero on error. Error conditions includeubeing an invalid code point, orubeing unencodable in the specified encoding. -
CBB_add_zeros(
Pointer< CBB> cbb, int len) → int -
CBB_add_zeros append
lenbytes with value zero tocbb. It returns one on success and zero otherwise. -
CBB_cleanup(
Pointer< CBB> cbb) → void -
CBB_cleanup frees all resources owned by
cbband otherCBBobjects writing to the same buffer. This should be used in an error case where a serialisation is abandoned. -
CBB_data(
Pointer< CBB> cbb) → Pointer<Uint8> -
CBB_data returns a pointer to the bytes written to
cbb. It does not flushcbb. The pointer is valid until the next operation tocbb. -
CBB_did_write(
Pointer< CBB> cbb, int len) → int -
CBB_did_write advances
cbbbylenbytes, assuming the space has been written to by the caller. It returns one on success and zero on error. -
CBB_discard(
Pointer< CBB> cbb, int len) → void -
CBB_discard discards the last
lenbytes written tocbb. The process will abort ifcbbhas an unflushed child, or its length is smaller thanlen. -
CBB_discard_child(
Pointer< CBB> cbb) → void -
CBB_discard_child discards the current unflushed child of
cbb. Neither the child's contents nor the length prefix will be included in the output. -
CBB_finish(
Pointer< CBB> cbb, Pointer<Pointer< out_data, Pointer<Uint8> >Size> out_len) → int -
CBB_finish completes any pending length prefix and sets
*out_datato a malloced buffer and*out_lento the length of that buffer. The caller takes ownership of the buffer and, unless the buffer was fixed withCBB_init_fixed, must callOPENSSL_freewhen done. -
CBB_flush(
Pointer< CBB> cbb) → int -
CBB_flush causes any pending length prefixes to be written out and any child
CBBobjects ofcbbto be invalidated. This allowscbbto continue to be used after the children go out of scope, e.g. when localCBBobjects are added as children to aCBBthat persists after a function returns. This function returns one on success or zero on error. -
CBB_flush_asn1_set_of(
Pointer< CBB> cbb) → int -
CBB_flush_asn1_set_of calls
CBB_flushoncbband then reorders the contents for a DER-encoded ASN.1 SET OF type. It returns one on success and zero on failure. DER canonicalizes SET OF contents by sorting lexicographically by encoding. Call this function when encoding a SET OF type in an order that is not already known to be canonical. -
CBB_get_utf8_len(
int u) → int -
CBB_get_utf8_len returns the number of bytes needed to represent
uin UTF-8. -
CBB_init(
Pointer< CBB> cbb, int initial_capacity) → int -
CBB_init initialises
cbbwithinitial_capacity. Since aCBBgrows as needed, theinitial_capacityis just a hint. It returns one on success or zero on allocation failure. -
CBB_init_fixed(
Pointer< CBB> cbb, Pointer<Uint8> buf, int len) → int -
CBB_init_fixed initialises
cbbto write tolenbytes atbuf. Sincebufcannot grow, trying to write more thanlenbytes will cause CBB functions to fail. This function is infallible and always returns one. It is safe, but not necessary, to callCBB_cleanuponcbb. -
CBB_len(
Pointer< CBB> cbb) → int -
CBB_len returns the number of bytes written to
cbb. It does not flushcbb. -
CBB_reserve(
Pointer< CBB> cbb, Pointer<Pointer< out_data, int len) → intUint8> > -
CBB_reserve ensures
cbbhas room forlenadditional bytes and sets*out_datato point to the beginning of that space. It returns one on success and zero otherwise. The caller may write up tolenbytes to*out_dataand callCBB_did_writeto complete the write.*out_datais valid until the next operation oncbbor an ancestorCBB. -
CBB_zero(
Pointer< CBB> cbb) → void -
CBB_zero sets an uninitialised
cbbto the zero state. It must be initialised withCBB_initorCBB_init_fixedbefore use, but it is safe to callCBB_cleanupwithout a successfulCBB_init. This may be used for more uniform cleanup of aCBB. -
CBS_asn1_bitstring_has_bit(
Pointer< CBS> cbs, int bit) → int -
CBS_asn1_bitstring_has_bit returns one if
cbsis a valid ASN.1 BIT STRING body and the specified bit is present and set. Otherwise, it returns zero.bitis indexed starting from zero. -
CBS_asn1_oid_to_text(
Pointer< CBS> cbs) → Pointer<Char> -
CBS_asn1_oid_to_text interprets
cbsas DER-encoded ASN.1 OBJECT IDENTIFIER contents (not including the element framing) and returns the ASCII representation (e.g., "1.2.840.113554.4.1.72585") in a newly-allocated string, or NULL on failure. The caller must release the result withOPENSSL_free. -
CBS_asn1_relative_oid_to_text(
Pointer< CBS> cbs) → Pointer<Char> -
CBS_asn1_relative_oid_to_text interprets
cbsas DER-encoded ASN.1 RELATIVE-OID contents (not including the element framing) and returns the ASCII representation (e.g., "32473.1") in a newly-allocated string, or NULL on failure. The caller must release the result withOPENSSL_free. -
CBS_contains_zero_byte(
Pointer< CBS> cbs) → int -
CBS_contains_zero_byte returns one if the current contents of
cbscontains a NUL byte and zero otherwise. -
CBS_copy_bytes(
Pointer< CBS> cbs, Pointer<Uint8> out, int len) → int -
CBS_copy_bytes copies the next
lenbytes fromcbstooutand advancescbs. It returns one on success and zero on error. -
CBS_get_any_asn1(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<CBS_ASN1_TAG> out_tag) → int -
CBS_get_any_asn1 sets
*outto contain the next ASN.1 element from*cbs(not including tag and length bytes), sets*out_tagto the tag number, and advances*cbs. It returns one on success and zero on error. Either ofoutandout_tagmay be NULL to ignore the value. -
CBS_get_any_asn1_element(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<CBS_ASN1_TAG> out_tag, Pointer<Size> out_header_len) → int -
CBS_get_any_asn1_element sets
*outto contain the next ASN.1 element from*cbs(including header bytes) and advances*cbs. It sets*out_tagto the tag number and*out_header_lento the length of the ASN.1 header. Each ofout,out_tag, andout_header_lenmay be NULL to ignore the value. -
CBS_get_any_ber_asn1_element(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<CBS_ASN1_TAG> out_tag, Pointer<Size> out_header_len, Pointer<Int> out_ber_found, Pointer<Int> out_indefinite) → int -
CBS_get_any_ber_asn1_element acts the same as
CBS_get_any_asn1_elementbut also allows indefinite-length elements to be returned and does not enforce that lengths are minimal. It sets*out_indefiniteto one if the length was indefinite and zero otherwise. If indefinite,*out_header_lenandCBS_len(out)will be equal as only the header is returned (although this is also true for empty elements so*out_indefiniteshould be checked). Ifout_ber_foundis not NULL then it is set to one if any case of invalid DER but valid BER is found, and to zero otherwise. -
CBS_get_asn1(
Pointer< CBS> cbs, Pointer<CBS> out, int tag_value) → int -
CBS_get_asn1 sets
*outto the contents of DER-encoded, ASN.1 element (not including tag and length bytes) and advancescbsover it. The ASN.1 element must matchtag_value. It returns one on success and zero on error. -
CBS_get_asn1_bool(
Pointer< CBS> cbs, Pointer<Int> out) → int -
CBS_get_asn1_bool gets an ASN.1 BOOLEAN from
cbsand sets*outto zero or one based on its value. It returns one on success or zero on error. -
CBS_get_asn1_element(
Pointer< CBS> cbs, Pointer<CBS> out, int tag_value) → int -
CBS_get_asn1_element acts like
CBS_get_asn1butoutwill include the ASN.1 header bytes too. -
CBS_get_asn1_int64(
Pointer< CBS> cbs, Pointer<Int64> out) → int -
CBS_get_asn1_int64 gets an ASN.1 INTEGER from
cbsusingCBS_get_asn1and sets*outto its value. It returns one on success and zero on error, where error includes the integer being too large to represent in 64 bits. -
CBS_get_asn1_int64_with_tag(
Pointer< CBS> cbs, Pointer<Int64> out, int tag) → int -
CBS_get_asn1_int64_with_tag gets an ASN.1 INTEGER from
cbsusingCBS_get_asn1and sets*outto its value.tagis used to handle to handle implicitly tagged INTEGER fields. It returns one on success and zero on error, where error includes the integer being too large to represent in 64 bits. -
CBS_get_asn1_oid_component(
Pointer< CBS> cbs, Pointer<Uint64> out) → int -
CBS_get_asn1_oid_component gets a single OID component from
cbs. On success, it sets*outto the value, advancescbspast the component, and returns one. If the input does not contain a valid OID component or if the OID component is bigger thanuint64_t, it returns zero. -
CBS_get_asn1_uint64(
Pointer< CBS> cbs, Pointer<Uint64> out) → int -
CBS_get_asn1_uint64 gets an ASN.1 INTEGER from
cbsusingCBS_get_asn1and sets*outto its value. It returns one on success and zero on error, where error includes the integer being negative, or too large to represent in 64 bits. -
CBS_get_asn1_uint64_with_tag(
Pointer< CBS> cbs, Pointer<Uint64> out, int tag) → int -
CBS_get_asn1_uint64_with_tag gets an ASN.1 INTEGER from
cbsusingCBS_get_asn1and sets*outto its value.tagis used to handle to handle implicitly tagged INTEGER fields. It returns one on success and zero on error, where error includes the integer being negative, or too large to represent in 64 bits. -
CBS_get_bytes(
Pointer< CBS> cbs, Pointer<CBS> out, int len) → int -
CBS_get_bytes sets
*outto the nextlenbytes fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_last_u8(
Pointer< CBS> cbs, Pointer<Uint8> out) → int -
CBS_get_last_u8 sets
*outto the last uint8_t fromcbsand shortenscbs. It returns one on success and zero on error. -
CBS_get_latin1(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
CBS_get_optional_asn1(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<Int> out_present, int tag) → int -
CBS_get_optional_asn1 gets an optional explicitly-tagged element from
cbstagged withtagand sets*outto its contents, or ignores it ifoutis NULL. If present and ifout_presentis not NULL, it sets*out_presentto one, otherwise zero. It returns one on success, whether or not the element was present, and zero on decode failure. -
CBS_get_optional_asn1_bool(
Pointer< CBS> cbs, Pointer<Int> out, int tag, int default_value) → int -
CBS_get_optional_asn1_bool gets an optional, explicitly-tagged BOOLEAN from
cbs. If present, it sets*outto either zero or one, based on the boolean. Otherwise, it sets*outtodefault_value. It returns one on success, whether or not the element was present, and zero on decode failure. -
CBS_get_optional_asn1_octet_string(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<Int> out_present, int tag) → int -
CBS_get_optional_asn1_octet_string gets an optional
explicitly-tagged OCTET STRING from
cbs. If present, it sets*outto the string and*out_presentto one. Otherwise, it sets*outto empty and*out_presentto zero.out_presentmay be NULL. It returns one on success, whether or not the element was present, and zero on decode failure. -
CBS_get_optional_asn1_uint64(
Pointer< CBS> cbs, Pointer<Uint64> out, int tag, int default_value) → int -
CBS_get_optional_asn1_uint64 gets an optional explicitly-tagged
INTEGER from
cbs. If present, it sets*outto the value. Otherwise, it sets*outtodefault_value. It returns one on success, whether or not the element was present, and zero on decode failure. -
CBS_get_u16(
Pointer< CBS> cbs, Pointer<Uint16> out) → int -
CBS_get_u16 sets
*outto the next, big-endian uint16_t fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u16_length_prefixed(
Pointer< CBS> cbs, Pointer<CBS> out) → int -
CBS_get_u16_length_prefixed sets
*outto the contents of a 16-bit, big-endian, length-prefixed value fromcbsand advancescbsover it. It returns one on success and zero on error. -
CBS_get_u16le(
Pointer< CBS> cbs, Pointer<Uint16> out) → int -
CBS_get_u16le sets
*outto the next, little-endian uint16_t fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u24(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
CBS_get_u24 sets
*outto the next, big-endian 24-bit value fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u24_length_prefixed(
Pointer< CBS> cbs, Pointer<CBS> out) → int -
CBS_get_u24_length_prefixed sets
*outto the contents of a 24-bit, big-endian, length-prefixed value fromcbsand advancescbsover it. It returns one on success and zero on error. -
CBS_get_u32(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
CBS_get_u32 sets
*outto the next, big-endian uint32_t value fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u32le(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
CBS_get_u32le sets
*outto the next, little-endian uint32_t value fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u48(
Pointer< CBS> cbs, Pointer<Uint64> out) → int -
CBS_get_u48 sets
*outto the next, big-endian 48-bit value fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u64(
Pointer< CBS> cbs, Pointer<Uint64> out) → int -
CBS_get_u64 sets
*outto the next, big-endian uint64_t value fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u64_decimal(
Pointer< CBS> cbs, Pointer<Uint64> out) → int -
CBS_get_u64_decimal reads a decimal integer from
cbsand writes it to*out. It stops reading at the end of the string, or the first non-digit character. It returns one on success and zero on error. This function behaves analogously tostrtoulexcept it does not accept empty inputs, leading zeros, or negative values. -
CBS_get_u64le(
Pointer< CBS> cbs, Pointer<Uint64> out) → int -
CBS_get_u64le sets
*outto the next, little-endian uint64_t value fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u8(
Pointer< CBS> cbs, Pointer<Uint8> out) → int -
CBS_get_u8 sets
*outto the next uint8_t fromcbsand advancescbs. It returns one on success and zero on error. -
CBS_get_u8_length_prefixed(
Pointer< CBS> cbs, Pointer<CBS> out) → int -
CBS_get_u8_length_prefixed sets
*outto the contents of an 8-bit, length-prefixed value fromcbsand advancescbsover it. It returns one on success and zero on error. -
CBS_get_ucs2_be(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
CBS_get_until_first(
Pointer< CBS> cbs, Pointer<CBS> out, int c) → int -
CBS_get_until_first finds the first instance of
cincbs. If found, it sets*outto the text before the match, advancescbsover it, and returns one. Otherwise, it returns zero and leavescbsunmodified. -
CBS_get_until_first_not_of(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<Char> chars) → int -
CBS_get_until_first_not_of finds the first byte in
cbsthat does not match any of the characters inchars, which is a NUL-terminated C string. If found, it sets*outto the text before the match, advancescbsover it, and returns one. Otherwise, it returns zero and leavescbsunmodified. -
CBS_get_until_first_of(
Pointer< CBS> cbs, Pointer<CBS> out, Pointer<Char> chars) → int -
CBS_get_until_first_of finds the first byte in
cbsmatching one of the characters inchars, which is a NUL-terminated C string. If found, it sets*outto the text before the match, advancescbsover it, and returns one. Otherwise, it returns zero and leavescbsunmodified. -
CBS_get_utf32_be(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
CBS_get_utf8(
Pointer< CBS> cbs, Pointer<CBS_ASN1_TAG> out) → int -
The following functions read one Unicode code point from
cbswith the corresponding encoding and store it in*out. They return one on success and zero on error. -
CBS_is_unsigned_asn1_integer(
Pointer< CBS> cbs) → int -
CBS_is_unsigned_asn1_integer returns one if
cbsis a valid non-negative ASN.1 INTEGER body and zero otherwise. -
CBS_is_valid_asn1_bitstring(
Pointer< CBS> cbs) → int -
CBS_is_valid_asn1_bitstring returns one if
cbsis a valid ASN.1 BIT STRING body and zero otherwise. -
CBS_is_valid_asn1_integer(
Pointer< CBS> cbs, Pointer<Int> out_is_negative) → int -
CBS_is_valid_asn1_integer returns one if
cbsis a valid ASN.1 INTEGER, body and zero otherwise. On success, ifout_is_negativeis non-NULL,*out_is_negativewill be set to one ifcbsis negative and zero otherwise. -
CBS_is_valid_asn1_oid(
Pointer< CBS> cbs) → int -
CBS_is_valid_asn1_oid returns one if
cbsis a valid DER-encoded ASN.1 OBJECT IDENTIFIER contents (not including the element framing) and zero otherwise. This function tolerates arbitrarily large OID components. -
CBS_is_valid_asn1_relative_oid(
Pointer< CBS> cbs) → int -
CBS_is_valid_asn1_relative_oid returns one if
cbsis a valid DER-encoded ASN.1 RELATIVE-OID contents (not including the element framing) and zero otherwise. This function tolerates arbitrarily large OID components. -
CBS_mem_equal(
Pointer< CBS> cbs, Pointer<Uint8> data, int len) → int -
CBS_mem_equal compares the current contents of
cbswith thelenbytes starting atdata. If they're equal, it returns one, otherwise zero. If the lengths match, it uses a constant-time comparison. -
CBS_parse_generalized_time(
Pointer< CBS> cbs, Pointer<tm> out_tm, int allow_timezone_offset) → int -
CBS_parse_generalized_time returns one if
cbsis a valid DER-encoded, ASN.1 GeneralizedTime body within the limitations imposed by RFC 5280, or zero otherwise. Ifallow_timezone_offsetis non-zero, four-digit timezone offsets, which would not be allowed by DER, are permitted. On success, ifout_tmis non-NULL,*out_tmwill be zeroed, and then set to the corresponding time in UTC. This function does not computeout_tm->tm_wdayorout_tm->tm_yday. -
CBS_parse_utc_time(
Pointer< CBS> cbs, Pointer<tm> out_tm, int allow_timezone_offset) → int -
CBS_parse_utc_time returns one if
cbsis a valid DER-encoded, ASN.1 UTCTime body within the limitations imposed by RFC 5280, or zero otherwise. Ifallow_timezone_offsetis non-zero, four-digit timezone offsets, which would not be allowed by DER, are permitted. On success, ifout_tmis non-NULL,*out_tmwill be zeroed, and then set to the corresponding time in UTC. This function does not computeout_tm->tm_wdayorout_tm->tm_yday. -
CBS_peek_any_asn1_tag(
Pointer< CBS> cbs) → int -
CBS_peek_any_asn1_tag looks ahead at the next ASN.1 tag and returns it. If a
tag could not be parsed, it returns zero, which is never a valid tag. Note:
if it returns non-zero,
CBS_get_asn1may still fail if the rest of the element is malformed. -
CBS_peek_asn1_tag(
Pointer< CBS> cbs, int tag_value) → int -
CBS_peek_asn1_tag looks ahead at the next ASN.1 tag and returns one if the
next ASN.1 element on
cbswould have tagtag_value. Ifcbsis empty or the tag does not match, it returns zero. Note: if it returns one,CBS_get_asn1may still fail if the rest of the element is malformed. -
CBS_skip(
Pointer< CBS> cbs, int len) → int -
CBS_skip advances
cbsbylenbytes. It returns one on success and zero otherwise. -
CBS_stow(
Pointer< CBS> cbs, Pointer<Pointer< out_ptr, Pointer<Uint8> >Size> out_len) → int -
CBS_stow copies the current contents of
cbsinto*out_ptrand*out_len. If*out_ptris not NULL, the contents are freed with OPENSSL_free. It returns one on success and zero on allocation failure. On success,*out_ptrshould be freed with OPENSSL_free. Ifcbsis empty,*out_ptrwill be NULL. -
CBS_strdup(
Pointer< CBS> cbs, Pointer<Pointer< out_ptr) → intChar> > -
CBS_strdup copies the current contents of
cbsinto*out_ptras a NUL-terminated C string. If*out_ptris not NULL, the contents are freed with OPENSSL_free. It returns one on success and zero on allocation failure. On success,*out_ptrshould be freed with OPENSSL_free. -
CERTIFICATEPOLICIES_free(
Pointer< CERTIFICATEPOLICIES> policies) → void -
CERTIFICATEPOLICIES_free releases memory associated with
policies. -
CERTIFICATEPOLICIES_new(
) → Pointer< CERTIFICATEPOLICIES> -
CERTIFICATEPOLICIES_new returns a newly-allocated, empty
CERTIFICATEPOLICIESobject, or NULL on error. -
CONF_modules_free(
) → void - CONF_modules_free does nothing.
-
CONF_modules_load_file(
Pointer< Char> filename, Pointer<Char> appname, int flags) → int -
CONF_modules_load_file returns one. BoringSSL is defined to have no config
file options, thus loading from
filenamealways succeeds by doing nothing. -
CONF_modules_unload(
int all) → void - CONF_modules_unload does nothing.
-
CPACE_CTX_free(
Pointer< CPACE_CTX> ctx) → void -
CPACE_CTX_free frees
ctxand all the resources that it has allocated. -
CPACE_CTX_new(
int role, Pointer< Uint8> password, int password_len, Pointer<Uint8> channel_id, int channel_id_len, Pointer<Uint8> assoc_data, int assoc_data_len, Pointer<Uint8> session_id, int session_id_len) → Pointer<CPACE_CTX> -
CPACE_CTX_new returns a newly-allocated
CPACE_CTXobject that implements one side of the CPace protocol, or nullptr on error. This function implements CPACE-X25519-SHA512 in initiator-responder mode, acting asroleand withpasswordas the password-related string (PRS). -
CPACE_generate_msg(
Pointer< CPACE_CTX> ctx, Pointer<Uint8> out_msg) → int -
CPACE_generate_msg generates the message to be sent to the peer. On success,
it writes the message to
out_msgand returns one. Otherwise, it returns zero.ctxmust have been allocated byCPACE_CTX_new, with no subsequent functions called on it. -
CPACE_process_msg(
Pointer< CPACE_CTX> ctx, Pointer<Uint8> in_msg, Pointer<Uint8> peer_assoc_data, int peer_assoc_data_len, Pointer<Uint8> sid_out) → int -
CPACE_process_msg processes
msgandpeer_assoc_datafrom the peer and computes the shared secret, or intermediate session key (ISK). On success, it writes the secret toout_shared_secretand returns one; it also writes a derived session ID ifout_sidis not NULL. Otherwise, it returns zero.ctxmust have successfully been passed toCPACE_generate_msg, with no subsequent functions called on it. -
CRL_DIST_POINTS_free(
Pointer< CRL_DIST_POINTS> crldp) → void -
CRL_DIST_POINTS_free releases memory associated with
crldp. -
CRL_DIST_POINTS_new(
) → Pointer< CRL_DIST_POINTS> -
CRL_DIST_POINTS_new returns a newly-allocated, empty
CRL_DIST_POINTSobject, or NULL on error. -
CRYPTO_BUFFER_alloc(
Pointer< Pointer< out_data, int len) → Pointer<Uint8> >CRYPTO_BUFFER> -
CRYPTO_BUFFER_alloc creates an unpooled
CRYPTO_BUFFERof the given size and writes the underlying data pointer to*out_data. It returns NULL on error. -
CRYPTO_BUFFER_data(
Pointer< CRYPTO_BUFFER> buf) → Pointer<Uint8> -
CRYPTO_BUFFER_data returns a pointer to the data contained in
buf. -
CRYPTO_BUFFER_dup_ref(
Pointer< CRYPTO_BUFFER> buf) → Pointer<CRYPTO_BUFFER> -
CRYPTO_BUFFER_dup_ref increments the reference count of
bufand returnsbuf. The caller must callCRYPTO_BUFFER_freeon the result to release the reference. -
CRYPTO_BUFFER_free(
Pointer< CRYPTO_BUFFER> buf) → void -
CRYPTO_BUFFER_free decrements the reference count of
buf. If there are no other references, or if the only remaining reference is from a pool, thenbufwill be freed. -
CRYPTO_BUFFER_init_CBS(
Pointer< CRYPTO_BUFFER> buf, Pointer<CBS> out) → void -
CRYPTO_BUFFER_init_CBS initialises
outto point at the data frombuf. -
CRYPTO_BUFFER_len(
Pointer< CRYPTO_BUFFER> buf) → int -
CRYPTO_BUFFER_len returns the length, in bytes, of the data contained in
buf. -
CRYPTO_BUFFER_new(
Pointer< Uint8> data, int len, Pointer<CRYPTO_BUFFER_POOL> pool) → Pointer<CRYPTO_BUFFER> -
CRYPTO_BUFFER_new returns a
CRYPTO_BUFFERcontaining a copy ofdata, or else NULL on error. Ifpoolis not NULL then the returned value may be a reference to a previously existingCRYPTO_BUFFERthat contained the same data. Otherwise, the returned, freshCRYPTO_BUFFERwill be added to the pool. -
CRYPTO_BUFFER_new_from_CBS(
Pointer< CBS> cbs, Pointer<CRYPTO_BUFFER_POOL> pool) → Pointer<CRYPTO_BUFFER> -
CRYPTO_BUFFER_new_from_CBS acts the same as
CRYPTO_BUFFER_new. -
CRYPTO_BUFFER_new_from_static_data_unsafe(
Pointer< Uint8> data, int len, Pointer<CRYPTO_BUFFER_POOL> pool) → Pointer<CRYPTO_BUFFER> -
CRYPTO_BUFFER_new_from_static_data_unsafe behaves like
CRYPTO_BUFFER_newbut does not copydata.datamust be immutable and last for the lifetime of the address space. -
CRYPTO_BUFFER_POOL_dup_ref(
Pointer< CRYPTO_BUFFER_POOL> pool) → Pointer<CRYPTO_BUFFER_POOL> -
CRYPTO_BUFFER_POOL_dup_ref increments the reference count of
pooland returns the same handle. It does not mutatepoolfor thread-safety purposes and may be used concurrently. -
CRYPTO_BUFFER_POOL_free(
Pointer< CRYPTO_BUFFER_POOL> pool) → void -
CRYPTO_BUFFER_POOL_free decrements the reference count of
pooland frees it if the reference count drops to zero. -
CRYPTO_BUFFER_POOL_new(
) → Pointer< CRYPTO_BUFFER_POOL> -
CRYPTO_BUFFER_POOL_new returns a freshly allocated
CRYPTO_BUFFER_POOLor NULL on error. -
CRYPTO_BUFFER_POOL_up_ref(
Pointer< CRYPTO_BUFFER_POOL> pool) → int -
CRYPTO_BUFFER_POOL_up_ref increments the reference count of
pooland returns one. It does not mutatepoolfor thread-safety purposes and may be used concurrently. -
CRYPTO_BUFFER_up_ref(
Pointer< CRYPTO_BUFFER> buf) → int -
CRYPTO_BUFFER_up_ref increments the reference count of
bufand returns one. -
CRYPTO_cleanup_all_ex_data(
) → void - CRYPTO_cleanup_all_ex_data does nothing.
-
CRYPTO_fips_186_2_prf(
Pointer< Uint8> out, int out_len, Pointer<Uint8> xkey) → void -
CRYPTO_fips_186_2_prf derives
out_lenbytes fromxkeyusing the PRF defined in FIPS 186-2, Appendix 3.1, with change notice 1 applied. The b parameter is 160 and seed, XKEY, is also 160 bits. The optional XSEED user input is all zeros. -
CRYPTO_free(
Pointer< Void> ptr, Pointer<Char> file, int line) → void -
CRYPTO_free calls
OPENSSL_free.fileandlineare ignored. -
CRYPTO_get_dynlock_create_callback(
) → Pointer< NativeFunction< Pointer< >CRYPTO_dynlock_value> Function(Pointer<Char> , Int)> - CRYPTO_get_dynlock_create_callback returns NULL.
-
CRYPTO_get_dynlock_destroy_callback(
) → Pointer< NativeFunction< Void Function(Pointer< >CRYPTO_dynlock_value> , Pointer<Char> , Int)> - CRYPTO_get_dynlock_destroy_callback returns NULL.
-
CRYPTO_get_dynlock_lock_callback(
) → Pointer< NativeFunction< Void Function(Int, Pointer< >CRYPTO_dynlock_value> , Pointer<Char> , Int)> - CRYPTO_get_dynlock_lock_callback returns NULL.
-
CRYPTO_get_lock_name(
int lock_num) → Pointer< Char> - CRYPTO_get_lock_name returns a fixed, dummy string.
-
CRYPTO_get_locking_callback(
) → Pointer< NativeFunction< Void Function(Int, Int, Pointer< >Char> , Int)> - CRYPTO_get_locking_callback returns NULL.
-
CRYPTO_has_asm(
) → int - CRYPTO_has_asm returns one unless BoringSSL was built with OPENSSL_NO_ASM, in which case it returns zero.
-
CRYPTO_is_confidential_build(
) → int - CRYPTO_is_confidential_build returns one if the linked version of BoringSSL has been built with the BORINGSSL_CONFIDENTIAL define and zero otherwise.
-
CRYPTO_library_init(
) → void - CRYPTO_library_init does nothing. Historically, it was needed in some build configurations to initialization the library. This is no longer necessary.
-
CRYPTO_malloc(
int size, Pointer< Char> file, int line) → Pointer<Void> -
CRYPTO_malloc calls
OPENSSL_malloc.fileandlineare ignored. -
CRYPTO_malloc_init(
) → int - CRYPTO_malloc_init returns one.
-
CRYPTO_memcmp(
Pointer< Void> a, Pointer<Void> b, int len) → int -
CRYPTO_memcmp returns zero iff the
lenbytes ataandbare equal. It takes an amount of time dependent onlen, but independent of the contents ofaandb. Unlike memcmp, it cannot be used to put elements into a defined order as the return value when a != b is undefined, other than to be non-zero. -
CRYPTO_num_locks(
) → int - CRYPTO_num_locks returns one. (This is non-zero that callers who allocate sizeof(lock) times this value don't get zero and then fail because malloc(0) returned NULL.)
-
CRYPTO_pre_sandbox_init(
) → void - CRYPTO_pre_sandbox_init initializes the crypto library, pre-acquiring some unusual resources to aid running in sandboxed environments. It is safe to call this function multiple times and concurrently from multiple threads.
-
CRYPTO_realloc(
Pointer< Void> ptr, int new_size, Pointer<Char> file, int line) → Pointer<Void> -
CRYPTO_realloc calls
OPENSSL_realloc.fileandlineare ignored. -
CRYPTO_secure_malloc_init(
int size, int min_size) → int - CRYPTO_secure_malloc_init returns zero.
-
CRYPTO_secure_malloc_initialized(
) → int - CRYPTO_secure_malloc_initialized returns zero.
-
CRYPTO_secure_used(
) → int - CRYPTO_secure_used returns zero.
-
CRYPTO_set_add_lock_callback(
Pointer< NativeFunction< func) → voidInt Function(Pointer< >Int> num, Int amount, Int lock_num, Pointer<Char> file, Int line)> - CRYPTO_set_add_lock_callback does nothing.
-
CRYPTO_set_dynlock_create_callback(
Pointer< NativeFunction< dyn_create_function) → voidPointer< >CRYPTO_dynlock_value> Function(Pointer<Char> , Int)> - CRYPTO_set_dynlock_create_callback does nothing.
-
CRYPTO_set_dynlock_destroy_callback(
Pointer< NativeFunction< dyn_destroy_function) → voidVoid Function(Pointer< >CRYPTO_dynlock_value> , Pointer<Char> , Int)> - CRYPTO_set_dynlock_destroy_callback does nothing.
-
CRYPTO_set_dynlock_lock_callback(
Pointer< NativeFunction< dyn_lock_function) → voidVoid Function(Int, Pointer< >CRYPTO_dynlock_value> , Pointer<Char> , Int)> - CRYPTO_set_dynlock_lock_callback does nothing.
-
CRYPTO_set_id_callback(
Pointer< NativeFunction< func) → voidUnsignedLong Function()> > - CRYPTO_set_id_callback does nothing.
-
CRYPTO_set_locking_callback(
Pointer< NativeFunction< func) → voidVoid Function(Int, Int, Pointer< >Char> , Int)> - CRYPTO_set_locking_callback does nothing.
-
CRYPTO_THREADID_current(
Pointer< Int> id) → void - CRYPTO_THREADID_current does nothing.
-
CRYPTO_THREADID_set_callback(
Pointer< NativeFunction< threadid_func) → intVoid Function(Pointer< >Int> threadid)> - CRYPTO_THREADID_set_callback returns one.
-
CRYPTO_THREADID_set_numeric(
Pointer< Int> id, int val) → void - CRYPTO_THREADID_set_numeric does nothing.
-
CRYPTO_THREADID_set_pointer(
Pointer< Int> id, Pointer<Void> ptr) → void - CRYPTO_THREADID_set_pointer does nothing.
-
d2i_ASN1_BIT_STRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_BIT_STRING parses up to
lenbytes from*inpas a DER-encoded ASN.1 BIT STRING, as described ind2i_SAMPLE. -
d2i_ASN1_BMPSTRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
The following functions parse up to
lenbytes from*inpas a DER-encoded ASN.1 value of the corresponding type, as described ind2i_SAMPLE. -
d2i_ASN1_BOOLEAN(
Pointer< Int> out, Pointer<Pointer< inp, int len) → intUnsignedChar> > -
d2i_ASN1_BOOLEAN parses a DER-encoded ASN.1 BOOLEAN from up to
lenbytes at*inp. On success, it advances*inpby the number of bytes read and returns the result. Ifoutis non-NULL, it additionally writes the result to*out. On error, it returnsASN1_BOOLEAN_NONE. -
d2i_ASN1_ENUMERATED(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_ENUMERATED parses up to
lenbytes from*inpas a DER-encoded ASN.1 ENUMERATED, as described ind2i_SAMPLE. -
d2i_ASN1_GENERALIZEDTIME(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_GENERALIZEDTIME parses up to
lenbytes from*inpas a DER-encoded ASN.1 GeneralizedTime, as described ind2i_SAMPLE. -
d2i_ASN1_GENERALSTRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_IA5STRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_INTEGER(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_INTEGER parses up to
lenbytes from*inpas a DER-encoded ASN.1 INTEGER, as described ind2i_SAMPLE. -
d2i_ASN1_NULL(
Pointer< Pointer< out, Pointer<ASN1_NULL> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_NULL> -
d2i_ASN1_NULL parses a DER-encoded ASN.1 NULL value from up to
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_ASN1_OBJECT(
Pointer< Pointer< out, Pointer<ASN1_OBJECT> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OBJECT> -
d2i_ASN1_OBJECT parses a DER-encoded ASN.1 OBJECT IDENTIFIER from up to
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_ASN1_OCTET_STRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_PRINTABLESTRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_SEQUENCE_ANY(
Pointer< Pointer< out, Pointer<ASN1_SEQUENCE_ANY> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_SEQUENCE_ANY> -
d2i_ASN1_SEQUENCE_ANY parses up to
lenbytes from*inpas a DER-encoded ASN.1 SEQUENCE OF ANY structure, as described ind2i_SAMPLE. The resultingASN1_SEQUENCE_ANYowns its contents and thus must be released withsk_ASN1_TYPE_pop_freeandASN1_TYPE_free, notsk_ASN1_TYPE_free. -
d2i_ASN1_SET_ANY(
Pointer< Pointer< out, Pointer<ASN1_SEQUENCE_ANY> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_SEQUENCE_ANY> -
d2i_ASN1_SET_ANY parses up to
lenbytes from*inpas a DER-encoded ASN.1 SET OF ANY structure, as described ind2i_SAMPLE. The resultingASN1_SEQUENCE_ANYowns its contents and thus must be released withsk_ASN1_TYPE_pop_freeandASN1_TYPE_free, notsk_ASN1_TYPE_free. -
d2i_ASN1_T61STRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_TIME(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_TIME parses up to
lenbytes from*inpas a DER-encoded X.509 Time (RFC 5280), as described ind2i_SAMPLE. -
d2i_ASN1_TYPE(
Pointer< Pointer< out, Pointer<ASN1_TYPE> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_TYPE> -
d2i_ASN1_TYPE parses up to
lenbytes from*inpas an ASN.1 value of any type, as described ind2i_SAMPLE. Note this function only validates primitive, universal types supported by this library. Values of typeV_ASN1_SEQUENCE,V_ASN1_SET,V_ASN1_OTHER, or an unsupported primitive type must be validated by the caller when interpreting. -
d2i_ASN1_UNIVERSALSTRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_UTCTIME(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_UTCTIME parses up to
lenbytes from*inpas a DER-encoded ASN.1 UTCTime, as described ind2i_SAMPLE. -
d2i_ASN1_UTF8STRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_ASN1_VISIBLESTRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_AUTHORITY_INFO_ACCESS(
Pointer< Pointer< out, Pointer<AUTHORITY_INFO_ACCESS> >Pointer< inp, int len) → Pointer<Uint8> >AUTHORITY_INFO_ACCESS> -
d2i_AUTHORITY_INFO_ACCESS parses up to
lenbytes from*inpas a DER-encoded AuthorityInfoAccessSyntax (RFC 5280), as described ind2i_SAMPLE. -
d2i_AUTHORITY_KEYID(
Pointer< Pointer< out, Pointer<AUTHORITY_KEYID> >Pointer< inp, int len) → Pointer<Uint8> >AUTHORITY_KEYID> -
d2i_AUTHORITY_KEYID parses up to
lenbytes from*inpas a DER-encoded AuthorityKeyIdentifier (RFC 5280), as described ind2i_SAMPLE. -
d2i_AutoPrivateKey(
Pointer< Pointer< out, Pointer<EVP_PKEY> >Pointer< inp, int len) → Pointer<Uint8> >EVP_PKEY> -
d2i_AutoPrivateKey acts the same as
d2i_PrivateKey, but detects the type of the private key. -
d2i_BASIC_CONSTRAINTS(
Pointer< Pointer< out, Pointer<BASIC_CONSTRAINTS> >Pointer< inp, int len) → Pointer<Uint8> >BASIC_CONSTRAINTS> -
d2i_BASIC_CONSTRAINTS parses up to
lenbytes from*inpas a DER-encoded BasicConstraints (RFC 5280), as described ind2i_SAMPLE. -
d2i_CERTIFICATEPOLICIES(
Pointer< Pointer< out, Pointer<CERTIFICATEPOLICIES> >Pointer< inp, int len) → Pointer<Uint8> >CERTIFICATEPOLICIES> -
d2i_CERTIFICATEPOLICIES parses up to
lenbytes from*inpas a DER-encoded CertificatePolicies (RFC 5280), as described ind2i_SAMPLE. -
d2i_CRL_DIST_POINTS(
Pointer< Pointer< out, Pointer<CRL_DIST_POINTS> >Pointer< inp, int len) → Pointer<Uint8> >CRL_DIST_POINTS> -
d2i_CRL_DIST_POINTS parses up to
lenbytes from*inpas a DER-encoded CRLDistributionPoints (RFC 5280), as described ind2i_SAMPLE. -
d2i_DHparams(
Pointer< Pointer< ret, Pointer<DH> >Pointer< inp, int len) → Pointer<UnsignedChar> >DH> -
d2i_DHparams parses a DER-encoded DHParameter structure (PKCS #3) from
lenbytes at*inp, as ind2i_SAMPLE. -
d2i_DHparams_bio(
Pointer< BIO> bp, Pointer<Pointer< dh) → Pointer<DH> >DH> -
d2i_DIRECTORYSTRING(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_DIRECTORYSTRING parses up to
lenbytes from*inpas a DER-encoded X.509 DirectoryString (RFC 5280), as described ind2i_SAMPLE. -
d2i_DISPLAYTEXT(
Pointer< Pointer< out, Pointer<ASN1_OCTET_STRING> >Pointer< inp, int len) → Pointer<Uint8> >ASN1_OCTET_STRING> -
d2i_DISPLAYTEXT parses up to
lenbytes from*inpas a DER-encoded X.509 DisplayText (RFC 5280), as described ind2i_SAMPLE. -
d2i_DSA_PUBKEY(
Pointer< Pointer< out, Pointer<DSA> >Pointer< inp, int len) → Pointer<Uint8> >DSA> -
d2i_DSA_PUBKEY parses a DSA public key as a DER-encoded SubjectPublicKeyInfo
from
lenbytes at*inp, as described ind2i_SAMPLE. SubjectPublicKeyInfo structures containing other key types are rejected. -
d2i_DSA_PUBKEY_bio(
Pointer< BIO> bp, Pointer<Pointer< dsa) → Pointer<DSA> >DSA> -
d2i_DSA_PUBKEY_fp(
Pointer< FILE> fp, Pointer<Pointer< dsa) → Pointer<DSA> >DSA> -
d2i_DSA_SIG(
Pointer< Pointer< out_sig, Pointer<DSA_SIG> >Pointer< inp, int len) → Pointer<Uint8> >DSA_SIG> -
d2i_DSA_SIG parses a DER-encoded DSA-Sig-Value structure from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_DSAparams(
Pointer< Pointer< out, Pointer<DSA> >Pointer< inp, int len) → Pointer<Uint8> >DSA> -
d2i_DSAparams parses a DER-encoded Dss-Parms structure (RFC 3279) from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_DSAPrivateKey(
Pointer< Pointer< out, Pointer<DSA> >Pointer< inp, int len) → Pointer<Uint8> >DSA> -
d2i_DSAPrivateKey parses a DER-encoded DSA private key from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_DSAPrivateKey_bio(
Pointer< BIO> bp, Pointer<Pointer< dsa) → Pointer<DSA> >DSA> -
d2i_DSAPrivateKey_fp(
Pointer< FILE> fp, Pointer<Pointer< dsa) → Pointer<DSA> >DSA> -
d2i_DSAPublicKey(
Pointer< Pointer< out, Pointer<DSA> >Pointer< inp, int len) → Pointer<Uint8> >DSA> -
d2i_DSAPublicKey parses a DER-encoded DSA public key from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_EC_PUBKEY(
Pointer< Pointer< out, Pointer<EC_KEY> >Pointer< inp, int len) → Pointer<Uint8> >EC_KEY> -
d2i_EC_PUBKEY parses an EC public key as a DER-encoded SubjectPublicKeyInfo
from
lenbytes at*inp, as described ind2i_SAMPLE. SubjectPublicKeyInfo structures containing other key types are rejected. -
d2i_EC_PUBKEY_bio(
Pointer< BIO> bp, Pointer<Pointer< eckey) → Pointer<EC_KEY> >EC_KEY> -
d2i_EC_PUBKEY_fp(
Pointer< FILE> fp, Pointer<Pointer< eckey) → Pointer<EC_KEY> >EC_KEY> -
d2i_ECDSA_SIG(
Pointer< Pointer< out, Pointer<ECDSA_SIG> >Pointer< inp, int len) → Pointer<Uint8> >ECDSA_SIG> -
d2i_ECDSA_SIG parses aa DER-encoded ECDSA-Sig-Value structure from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_ECParameters(
Pointer< Pointer< out_key, Pointer<EC_KEY> >Pointer< inp, int len) → Pointer<Uint8> >EC_KEY> -
d2i_ECParameters parses a DER-encoded ECParameters structure (RFC 5480) from
lenbytes at*inp, as described ind2i_SAMPLE. It returns the result as anEC_KEYwith parameters, but no key, configured. -
d2i_ECPKParameters(
Pointer< Pointer< out, Pointer<EC_GROUP> >Pointer< inp, int len) → Pointer<Uint8> >EC_GROUP> -
d2i_ECPKParameters parses a DER-encoded ECParameters structure (RFC 5480)
from
lenbytes at*inp, as described ind2i_SAMPLE. For legacy reasons, it recognizes the specifiedCurve form, but only for curves that are already supported as named curves. -
d2i_ECPrivateKey(
Pointer< Pointer< out_key, Pointer<EC_KEY> >Pointer< inp, int len) → Pointer<Uint8> >EC_KEY> -
d2i_ECPrivateKey parses a DER-encoded ECPrivateKey structure (RFC 5915) from
lenbytes at*inp, as described ind2i_SAMPLE. On input, if*out_keyis non-NULL and has a group configured, the parameters field may be omitted but must match that group if present. -
d2i_ECPrivateKey_bio(
Pointer< BIO> bp, Pointer<Pointer< eckey) → Pointer<EC_KEY> >EC_KEY> -
d2i_ECPrivateKey_fp(
Pointer< FILE> fp, Pointer<Pointer< eckey) → Pointer<EC_KEY> >EC_KEY> -
d2i_EXTENDED_KEY_USAGE(
Pointer< Pointer< out, Pointer<EXTENDED_KEY_USAGE> >Pointer< inp, int len) → Pointer<Uint8> >EXTENDED_KEY_USAGE> -
d2i_EXTENDED_KEY_USAGE parses up to
lenbytes from*inpas a DER-encoded ExtKeyUsageSyntax (RFC 5280), as described ind2i_SAMPLE. -
d2i_GENERAL_NAME(
Pointer< Pointer< out, Pointer<GENERAL_NAME> >Pointer< inp, int len) → Pointer<Uint8> >GENERAL_NAME> -
d2i_GENERAL_NAME parses up to
lenbytes from*inpas a DER-encoded X.509 GeneralName (RFC 5280), as described ind2i_SAMPLE. -
d2i_GENERAL_NAMES(
Pointer< Pointer< out, Pointer<GENERAL_NAMES> >Pointer< inp, int len) → Pointer<Uint8> >GENERAL_NAMES> -
d2i_GENERAL_NAMES parses up to
lenbytes from*inpas a DER-encoded SEQUENCE OF GeneralName, as described ind2i_SAMPLE. -
d2i_ISSUING_DIST_POINT(
Pointer< Pointer< out, Pointer<ISSUING_DIST_POINT> >Pointer< inp, int len) → Pointer<Uint8> >ISSUING_DIST_POINT> -
d2i_ISSUING_DIST_POINT parses up to
lenbytes from*inpas a DER-encoded IssuingDistributionPoint (RFC 5280), as described ind2i_SAMPLE. -
d2i_NETSCAPE_SPKAC(
Pointer< Pointer< out, Pointer<NETSCAPE_SPKAC> >Pointer< inp, int len) → Pointer<Uint8> >NETSCAPE_SPKAC> -
d2i_NETSCAPE_SPKAC parses up to
lenbytes from*inpas a DER-encoded PublicKeyAndChallenge structure, as described ind2i_SAMPLE. -
d2i_NETSCAPE_SPKI(
Pointer< Pointer< out, Pointer<NETSCAPE_SPKI> >Pointer< inp, int len) → Pointer<Uint8> >NETSCAPE_SPKI> -
d2i_NETSCAPE_SPKI parses up to
lenbytes from*inpas a DER-encoded SignedPublicKeyAndChallenge structure, as described ind2i_SAMPLE. -
d2i_PKCS7(
Pointer< Pointer< out, Pointer<PKCS7> >Pointer< inp, int len) → Pointer<Uint8> >PKCS7> -
d2i_PKCS7 parses a BER-encoded, PKCS#7 signed data ContentInfo structure from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_PKCS7_bio(
Pointer< BIO> bio, Pointer<Pointer< out) → Pointer<PKCS7> >PKCS7> -
d2i_PKCS7_bio behaves like
d2i_PKCS7but reads the input frombio. If the length of the object is indefinite the full contents ofbioare read. -
d2i_PKCS8_bio(
Pointer< BIO> bp, Pointer<Pointer< p8) → Pointer<X509_SIG> >X509_SIG> -
d2i_PKCS8_fp(
Pointer< FILE> fp, Pointer<Pointer< p8) → Pointer<X509_SIG> >X509_SIG> -
d2i_PKCS8_PRIV_KEY_INFO(
Pointer< Pointer< out, Pointer<PKCS8_PRIV_KEY_INFO> >Pointer< inp, int len) → Pointer<Uint8> >PKCS8_PRIV_KEY_INFO> -
d2i_PKCS8_PRIV_KEY_INFO parses up to
lenbytes from*inpas a DER-encoded PrivateKeyInfo, as described ind2i_SAMPLE. -
d2i_PKCS8_PRIV_KEY_INFO_bio(
Pointer< BIO> bp, Pointer<Pointer< p8inf) → Pointer<PKCS8_PRIV_KEY_INFO> >PKCS8_PRIV_KEY_INFO> -
d2i_PKCS8_PRIV_KEY_INFO_fp(
Pointer< FILE> fp, Pointer<Pointer< p8inf) → Pointer<PKCS8_PRIV_KEY_INFO> >PKCS8_PRIV_KEY_INFO> -
d2i_PKCS8PrivateKey_bio(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<EVP_PKEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EVP_PKEY> -
d2i_PKCS8PrivateKey_bio reads a DER-encoded EncryptedPrivateKey structure
(RFC 5208) from
bio, decrypts it withPKCS8_decrypt, and returns the result as a newly-allocatedEVP_PKEY, or NULL on error. On success, ifoutis non-NULL, it additionally frees the previous value at*outand updates*outto the result. The password is determined by callingcb, orPEM_def_callbackif NULL. -
d2i_PKCS8PrivateKey_fp(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<EVP_PKEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EVP_PKEY> -
d2i_PKCS8PrivateKey_fp behaves like
d2i_PKCS8PrivateKey_biobut reads fromfp. -
d2i_PrivateKey(
int type, Pointer< Pointer< out, Pointer<EVP_PKEY> >Pointer< inp, int len) → Pointer<Uint8> >EVP_PKEY> -
d2i_PrivateKey parses a DER-encoded private key from
lenbytes at*inp, as described ind2i_SAMPLE. The private key must have typetype, otherwise it will be rejected. -
d2i_PrivateKey_bio(
Pointer< BIO> bp, Pointer<Pointer< a) → Pointer<EVP_PKEY> >EVP_PKEY> -
d2i_PrivateKey_bio behaves like
d2i_AutoPrivateKey, but reads frombpinstead. -
d2i_PrivateKey_fp(
Pointer< FILE> fp, Pointer<Pointer< a) → Pointer<EVP_PKEY> >EVP_PKEY> -
d2i_PUBKEY(
Pointer< Pointer< out, Pointer<EVP_PKEY> >Pointer< inp, int len) → Pointer<Uint8> >EVP_PKEY> -
d2i_PUBKEY parses a DER-encoded SubjectPublicKeyInfo from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_PUBKEY_bio(
Pointer< BIO> bp, Pointer<Pointer< a) → Pointer<EVP_PKEY> >EVP_PKEY> -
d2i_PUBKEY_fp(
Pointer< FILE> fp, Pointer<Pointer< a) → Pointer<EVP_PKEY> >EVP_PKEY> -
d2i_PublicKey(
int type, Pointer< Pointer< out, Pointer<EVP_PKEY> >Pointer< inp, int len) → Pointer<Uint8> >EVP_PKEY> -
d2i_PublicKey parses a public key from
lenbytes at*inpin a type- specific format specified bytype, as described ind2i_SAMPLE. -
d2i_RSA_PSS_PARAMS(
Pointer< Pointer< out, Pointer<RSA_PSS_PARAMS> >Pointer< inp, int len) → Pointer<Uint8> >RSA_PSS_PARAMS> -
d2i_RSA_PSS_PARAMS parses up to
lenbytes from*inpas a DER-encoded RSASSA-PSS-params (RFC 4055), as described ind2i_SAMPLE. -
d2i_RSA_PUBKEY(
Pointer< Pointer< out, Pointer<RSA> >Pointer< inp, int len) → Pointer<Uint8> >RSA> -
d2i_RSA_PUBKEY parses an RSA public key as a DER-encoded SubjectPublicKeyInfo
from
lenbytes at*inp, as described ind2i_SAMPLE. SubjectPublicKeyInfo structures containing other key types are rejected. -
d2i_RSA_PUBKEY_bio(
Pointer< BIO> bp, Pointer<Pointer< rsa) → Pointer<RSA> >RSA> -
d2i_RSA_PUBKEY_fp(
Pointer< FILE> fp, Pointer<Pointer< rsa) → Pointer<RSA> >RSA> -
d2i_RSAPrivateKey(
Pointer< Pointer< out, Pointer<RSA> >Pointer< inp, int len) → Pointer<Uint8> >RSA> -
d2i_RSAPrivateKey parses a DER-encoded RSAPrivateKey structure (RFC 8017)
from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_RSAPrivateKey_bio(
Pointer< BIO> bp, Pointer<Pointer< rsa) → Pointer<RSA> >RSA> -
d2i_RSAPrivateKey_fp(
Pointer< FILE> fp, Pointer<Pointer< rsa) → Pointer<RSA> >RSA> -
d2i_RSAPublicKey(
Pointer< Pointer< out, Pointer<RSA> >Pointer< inp, int len) → Pointer<Uint8> >RSA> -
d2i_RSAPublicKey parses a DER-encoded RSAPublicKey structure (RFC 8017) from
lenbytes at*inp, as described ind2i_SAMPLE. -
d2i_RSAPublicKey_bio(
Pointer< BIO> bp, Pointer<Pointer< rsa) → Pointer<RSA> >RSA> -
d2i_RSAPublicKey_fp(
Pointer< FILE> fp, Pointer<Pointer< rsa) → Pointer<RSA> >RSA> -
d2i_X509(
Pointer< Pointer< out, Pointer<X509> >Pointer< inp, int len) → Pointer<Uint8> >X509> -
d2i_X509 parses up to
lenbytes from*inpas a DER-encoded X.509 Certificate (RFC 5280), as described ind2i_SAMPLE. -
d2i_X509_ALGOR(
Pointer< Pointer< out, Pointer<X509_ALGOR> >Pointer< inp, int len) → Pointer<Uint8> >X509_ALGOR> -
d2i_X509_ALGOR parses up to
lenbytes from*inpas a DER-encoded AlgorithmIdentifier, as described ind2i_SAMPLE. -
d2i_X509_ATTRIBUTE(
Pointer< Pointer< out, Pointer<X509_ATTRIBUTE> >Pointer< inp, int len) → Pointer<Uint8> >X509_ATTRIBUTE> -
d2i_X509_ATTRIBUTE parses up to
lenbytes from*inpas a DER-encoded Attribute (RFC 2986), as described ind2i_SAMPLE. -
d2i_X509_AUX(
Pointer< Pointer< x509, Pointer<X509> >Pointer< inp, int length) → Pointer<Uint8> >X509> -
d2i_X509_AUX parses up to
lengthbytes from*inpas a DER-encoded X.509 Certificate (RFC 5280), followed optionally by a separate, OpenSSL-specific structure with auxiliary properties. It behaves as described ind2i_SAMPLE. -
d2i_X509_bio(
Pointer< BIO> bp, Pointer<Pointer< x509) → Pointer<X509> >X509> -
The following functions behave like the corresponding unsuffixed
d2i_*functions, but read the result frombpinstead. Callers using these functions with memoryBIOs to parse structures already in memory should used2i_*instead. -
d2i_X509_CRL(
Pointer< Pointer< out, Pointer<X509_CRL> >Pointer< inp, int len) → Pointer<Uint8> >X509_CRL> -
d2i_X509_CRL parses up to
lenbytes from*inpas a DER-encoded X.509 CertificateList (RFC 5280), as described ind2i_SAMPLE. -
d2i_X509_CRL_bio(
Pointer< BIO> bp, Pointer<Pointer< crl) → Pointer<X509_CRL> >X509_CRL> -
d2i_X509_CRL_fp(
Pointer< FILE> fp, Pointer<Pointer< crl) → Pointer<X509_CRL> >X509_CRL> -
d2i_X509_EXTENSION(
Pointer< Pointer< out, Pointer<X509_EXTENSION> >Pointer< inp, int len) → Pointer<Uint8> >X509_EXTENSION> -
d2i_X509_EXTENSION parses up to
lenbytes from*inpas a DER-encoded X.509 Extension (RFC 5280), as described ind2i_SAMPLE. -
d2i_X509_EXTENSIONS(
Pointer< Pointer< out, Pointer<X509_EXTENSIONS> >Pointer< inp, int len) → Pointer<Uint8> >X509_EXTENSIONS> -
d2i_X509_EXTENSIONS parses up to
lenbytes from*inpas a DER-encoded SEQUENCE OF Extension (RFC 5280), as described ind2i_SAMPLE. -
d2i_X509_fp(
Pointer< FILE> fp, Pointer<Pointer< x509) → Pointer<X509> >X509> -
The following functions behave like the corresponding
d2i_*_biofunctions, but read fromfpinstead. -
d2i_X509_NAME(
Pointer< Pointer< out, Pointer<X509_NAME> >Pointer< inp, int len) → Pointer<Uint8> >X509_NAME> -
d2i_X509_NAME parses up to
lenbytes from*inpas a DER-encoded X.509 Name (RFC 5280), as described ind2i_SAMPLE. -
d2i_X509_PUBKEY(
Pointer< Pointer< out, Pointer<X509_PUBKEY> >Pointer< inp, int len) → Pointer<Uint8> >X509_PUBKEY> -
d2i_X509_PUBKEY parses up to
lenbytes from*inpas a DER-encoded SubjectPublicKeyInfo, as described ind2i_SAMPLE. -
d2i_X509_REQ(
Pointer< Pointer< out, Pointer<X509_REQ> >Pointer< inp, int len) → Pointer<Uint8> >X509_REQ> -
d2i_X509_REQ parses up to
lenbytes from*inpas a DER-encoded CertificateRequest (RFC 2986), as described ind2i_SAMPLE. -
d2i_X509_REQ_bio(
Pointer< BIO> bp, Pointer<Pointer< req) → Pointer<X509_REQ> >X509_REQ> -
d2i_X509_REQ_fp(
Pointer< FILE> fp, Pointer<Pointer< req) → Pointer<X509_REQ> >X509_REQ> -
d2i_X509_REVOKED(
Pointer< Pointer< out, Pointer<X509_REVOKED> >Pointer< inp, int len) → Pointer<Uint8> >X509_REVOKED> -
d2i_X509_REVOKED parses up to
lenbytes from*inpas a DER-encoded X.509 CRL entry, as described ind2i_SAMPLE. -
d2i_X509_SIG(
Pointer< Pointer< out, Pointer<X509_SIG> >Pointer< inp, int len) → Pointer<Uint8> >X509_SIG> -
d2i_X509_SIG parses up to
lenbytes from*inpas a DER-encoded algorithm and octet string pair, as described ind2i_SAMPLE. -
DH_bits(
Pointer< DH> dh) → int -
DH_bits returns the size of
dh's group modulus, in bits. -
DH_check(
Pointer< DH> dh, Pointer<Int> out_flags) → int -
DH_check checks the suitability of
dhas a Diffie-Hellman group. and setsDH_CHECK_*flags in*out_flagsif it finds any errors. It returns one if*out_flagswas successfully set and zero on error. -
DH_check_pub_key(
Pointer< DH> dh, Pointer<BIGNUM> pub_key, Pointer<Int> out_flags) → int -
DH_check_pub_key checks the suitability of
pub_keyas a public key for the DH group indhand setsDH_CHECK_PUBKEY_*flags in*out_flagsif it finds any errors. It returns one if*out_flagswas successfully set and zero on error. -
DH_compute_key(
Pointer< Uint8> out, Pointer<BIGNUM> peers_key, Pointer<DH> dh) → int -
DH_compute_key behaves like
DH_compute_key_paddedbut, contrary to PKCS #3, returns a variable-length shared key with leading zeros. It returns the number of bytes written, or a negative number on error.outmust haveDH_sizebytes of space. -
DH_compute_key_hashed(
Pointer< DH> dh, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<BIGNUM> peers_key, Pointer<EVP_MD> digest) → int -
DH_compute_key_hashed calculates the shared key between
dhandpeers_keyand hashes it with the givendigest. If the hash output is less thanmax_out_lenbytes then it writes the hash output tooutand sets*out_lento the number of bytes written. Otherwise it signals an error. It returns one on success or zero on error. -
DH_compute_key_padded(
Pointer< Uint8> out, Pointer<BIGNUM> peers_key, Pointer<DH> dh) → int -
DH_compute_key_padded calculates the shared key between
dhandpeers_keyand writes it as a big-endian integer intoout, padded up toDH_sizebytes. It returns the number of bytes written, which is alwaysDH_size, or a negative number on error.outmust haveDH_sizebytes of space. -
DH_dup_ref(
Pointer< DH> dh) → Pointer<DH> -
DH_dup_ref increments the reference count of
dhand returns the same handle. It does not mutatedhfor thread-safety purposes and may be used concurrently. -
DH_free(
Pointer< DH> dh) → void -
DH_free decrements the reference count of
dhand frees it if the reference count drops to zero. -
DH_generate_key(
Pointer< DH> dh) → int -
DH_generate_key generates a new, random, private key and stores it in
dh, ifdhdoes not already have a private key. Otherwise, it updatesdh's public key to match the private key. It returns one on success and zero on error. -
DH_generate_parameters_ex(
Pointer< DH> dh, int prime_bits, int generator, Pointer<BN_GENCB> cb) → int -
DH_generate_parameters_ex generates a suitable Diffie-Hellman group with a
prime that is
prime_bitslong and stores it indh. The generator of the group will begenerator, which should beDH_GENERATOR_2unless there's a good reason to use a different value. Thecbargument contains a callback function that will be called during the generation. See the documentation inbn.habout this. In addition to the callback invocations fromBN,cbwill also be called witheventequal to three when the generation is complete. -
DH_get0_g(
Pointer< DH> dh) → Pointer<BIGNUM> -
DH_get0_g returns
dh's group generator. -
DH_get0_key(
Pointer< DH> dh, Pointer<Pointer< out_pub_key, Pointer<BIGNUM> >Pointer< out_priv_key) → voidBIGNUM> > -
DH_get0_key sets
*out_pub_keyand*out_priv_key, if non-NULL, todh's public and private key, respectively. Ifdhis a public key, the private key will be set to NULL. -
DH_get0_p(
Pointer< DH> dh) → Pointer<BIGNUM> -
DH_get0_p returns
dh's group modulus. -
DH_get0_pqg(
Pointer< DH> dh, Pointer<Pointer< out_p, Pointer<BIGNUM> >Pointer< out_q, Pointer<BIGNUM> >Pointer< out_g) → voidBIGNUM> > -
DH_get0_pqg sets
*out_p,*out_q, and*out_g, if non-NULL, todh's p, q, and g parameters, respectively. -
DH_get0_priv_key(
Pointer< DH> dh) → Pointer<BIGNUM> -
DH_get0_priv_key returns
dh's private key, or NULL ifdhis a public key. -
DH_get0_pub_key(
Pointer< DH> dh) → Pointer<BIGNUM> -
DH_get0_pub_key returns
dh's public key. -
DH_get0_q(
Pointer< DH> dh) → Pointer<BIGNUM> -
DH_get0_q returns the size of
dh's subgroup, or NULL if it is unset. -
DH_get_rfc7919_2048(
) → Pointer< DH> -
DH_get_rfc7919_2048 returns the group
ffdhe2048from https://tools.ietf.org/html/rfc7919#appendix-A.1. It returns NULL if out of memory. -
DH_marshal_parameters(
Pointer< CBB> cbb, Pointer<DH> dh) → int -
DH_marshal_parameters marshals
dhas a DER-encoded DHParameter structure (PKCS #3) and appends the result tocbb. It returns one on success and zero on error. -
DH_new(
) → Pointer< DH> - DH_new returns a new, empty DH object or NULL on error.
-
DH_parse_parameters(
Pointer< CBS> cbs) → Pointer<DH> -
DH_parse_parameters decodes a DER-encoded DHParameter structure (PKCS #3)
from
cbsand advancescbs. It returns a newly-allocatedDHor NULL on error. -
DH_set0_key(
Pointer< DH> dh, Pointer<BIGNUM> pub_key, Pointer<BIGNUM> priv_key) → int -
DH_set0_key sets
dh's public and private key to the specified values. If NULL, the field is left unchanged. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
DH_set0_pqg(
Pointer< DH> dh, Pointer<BIGNUM> p, Pointer<BIGNUM> q, Pointer<BIGNUM> g) → int -
DH_set0_pqg sets
dh's p, q, and g parameters to the specified values. If NULL, the field is left unchanged. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero.qmay be NULL, butpandgmust either be specified or already configured ondh. -
DH_set_length(
Pointer< DH> dh, int priv_length) → int -
DH_set_length sets the number of bits to use for the secret exponent when
calling
DH_generate_keyondhand returns one. If unset,DH_generate_keywill use the bit length of p. -
DH_size(
Pointer< DH> dh) → int - DH_size returns the number of bytes in the DH group's prime.
-
DH_up_ref(
Pointer< DH> dh) → int -
DH_up_ref increments the reference count of
dhand returns one. It does not mutatedhfor thread-safety purposes and may be used concurrently. -
DHparams_dup(
Pointer< DH> dh) → Pointer<DH> -
DHparams_dup allocates a fresh
DHand copies the parameters fromdhinto it. It returns the newDHor NULL on error. -
DIRECTORYSTRING_free(
Pointer< ASN1_OCTET_STRING> str) → void -
DIRECTORYSTRING_free calls
ASN1_STRING_free. -
DIRECTORYSTRING_new(
) → Pointer< ASN1_OCTET_STRING> -
DIRECTORYSTRING_new returns a newly-allocated
ASN1_STRINGwith type -1, or NULL on error. The resultingASN1_STRINGis not a valid X.509 DirectoryString until initialized with a value. -
DISPLAYTEXT_free(
Pointer< ASN1_OCTET_STRING> str) → void -
DISPLAYTEXT_free calls
ASN1_STRING_free. -
DISPLAYTEXT_new(
) → Pointer< ASN1_OCTET_STRING> -
DISPLAYTEXT_new returns a newly-allocated
ASN1_STRINGwith type -1, or NULL on error. The resultingASN1_STRINGis not a valid X.509 DisplayText until initialized with a value. -
DIST_POINT_free(
Pointer< DIST_POINT> dp) → void -
DIST_POINT_free releases memory associated with
dp. -
DIST_POINT_NAME_free(
Pointer< DIST_POINT_NAME> name) → void -
DIST_POINT_NAME_free releases memory associated with
name. -
DIST_POINT_NAME_new(
) → Pointer< DIST_POINT_NAME> -
DIST_POINT_NAME_new returns a newly-allocated, empty
DIST_POINT_NAMEobject, or NULL on error. -
DIST_POINT_new(
) → Pointer< DIST_POINT> -
DIST_POINT_new returns a newly-allocated, empty
DIST_POINTobject, or NULL on error. -
DSA_bits(
Pointer< DSA> dsa) → int -
DSA_bits returns the size of
dsa's group modulus, in bits. -
DSA_check_signature(
Pointer< Int> out_valid, Pointer<Uint8> digest, int digest_len, Pointer<Uint8> sig, int sig_len, Pointer<DSA> dsa) → int -
DSA_check_signature sets
*out_validto zero. Then it verifies thatsigis a valid, ASN.1 signature, by the public key indsa, of the hash indigest. If so, it sets*out_validto one. -
DSA_do_check_signature(
Pointer< Int> out_valid, Pointer<Uint8> digest, int digest_len, Pointer<DSA_SIG> sig, Pointer<DSA> dsa) → int -
DSA_do_check_signature sets
*out_validto zero. Then it verifies thatsigis a valid signature, by the public key indsaof the hash indigestand, if so, it sets*out_validto one. -
DSA_do_sign(
Pointer< Uint8> digest, int digest_len, Pointer<DSA> dsa) → Pointer<DSA_SIG> -
DSA_do_sign returns a signature of the hash in
digestby the key indsaand returns an allocated, DSA_SIG structure, or NULL on error. -
DSA_do_verify(
Pointer< Uint8> digest, int digest_len, Pointer<DSA_SIG> sig, Pointer<DSA> dsa) → int -
DSA_do_verify verifies that
sigis a valid signature, by the public key indsa, of the hash indigest. It returns one if so, zero if invalid and -1 on error. -
DSA_dup_DH(
Pointer< DSA> dsa) → Pointer<DH> -
DSA_dup_DH returns a
DHconstructed from the parameters ofdsa. This is sometimes needed when Diffie-Hellman parameters are stored in the form of DSA parameters. It returns an allocatedDHon success or NULL on error. -
DSA_dup_ref(
Pointer< DSA> dsa) → Pointer<DSA> -
DSA_dup_ref increments the reference count of
dsaand returns the same handle. It does not mutatedsafor thread-safety purposes and may be used concurrently. -
DSA_free(
Pointer< DSA> dsa) → void -
DSA_free decrements the reference count of
dsaand frees it if the reference count drops to zero. -
DSA_generate_key(
Pointer< DSA> dsa) → int -
DSA_generate_key generates a public/private key pair in
dsa, which must already have parameters setup. It returns one on success and zero on error. -
DSA_generate_parameters_ex(
Pointer< DSA> dsa, int bits, Pointer<Uint8> seed, int seed_len, Pointer<Int> out_counter, Pointer<UnsignedLong> out_h, Pointer<BN_GENCB> cb) → int - DSA_generate_parameters_ex generates a set of DSA parameters by following the procedure given in FIPS 186-4, appendix A. (http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf)
-
DSA_get0_g(
Pointer< DSA> dsa) → Pointer<BIGNUM> -
DSA_get0_g returns
dsa's group generator. -
DSA_get0_key(
Pointer< DSA> dsa, Pointer<Pointer< out_pub_key, Pointer<BIGNUM> >Pointer< out_priv_key) → voidBIGNUM> > -
DSA_get0_key sets
*out_pub_keyand*out_priv_key, if non-NULL, todsa's public and private key, respectively. Ifdsais a public key, the private key will be set to NULL. -
DSA_get0_p(
Pointer< DSA> dsa) → Pointer<BIGNUM> -
DSA_get0_p returns
dsa's group modulus. -
DSA_get0_pqg(
Pointer< DSA> dsa, Pointer<Pointer< out_p, Pointer<BIGNUM> >Pointer< out_q, Pointer<BIGNUM> >Pointer< out_g) → voidBIGNUM> > -
DSA_get0_pqg sets
*out_p,*out_q, and*out_g, if non-NULL, todsa's p, q, and g parameters, respectively. -
DSA_get0_priv_key(
Pointer< DSA> dsa) → Pointer<BIGNUM> -
DSA_get0_priv_key returns
dsa's private key, or NULL ifdsais a public key. -
DSA_get0_pub_key(
Pointer< DSA> dsa) → Pointer<BIGNUM> -
DSA_get0_pub_key returns
dsa's public key. -
DSA_get0_q(
Pointer< DSA> dsa) → Pointer<BIGNUM> -
DSA_get0_q returns the size of
dsa's subgroup. -
DSA_get_ex_data(
Pointer< DSA> dsa, int idx) → Pointer<Void> -
DSA_get_ex_new_index(
int argl, Pointer< Void> argp, Pointer<Int> unused, Pointer<CRYPTO_EX_dup> dup_unused, Pointer<CRYPTO_EX_free> free_func) → int - ex_data functions.
-
DSA_marshal_parameters(
Pointer< CBB> cbb, Pointer<DSA> dsa) → int -
DSA_marshal_parameters marshals
dsaas a DER-encoded Dss-Parms structure (RFC 3279) and appends the result tocbb. It returns one on success and zero on failure. -
DSA_marshal_private_key(
Pointer< CBB> cbb, Pointer<DSA> dsa) → int -
DSA_marshal_private_key marshals
dsaas a DER-encoded DSA private key and appends the result tocbb. It returns one on success and zero on failure. -
DSA_marshal_public_key(
Pointer< CBB> cbb, Pointer<DSA> dsa) → int -
DSA_marshal_public_key marshals
dsaas a DER-encoded DSA public key and appends the result tocbb. It returns one on success and zero on failure. -
DSA_new(
) → Pointer< DSA> - DSA_new returns a new, empty DSA object or NULL on error.
-
DSA_parse_parameters(
Pointer< CBS> cbs) → Pointer<DSA> -
DSA_parse_parameters parses a DER-encoded Dss-Parms structure (RFC 3279)
from
cbsand advancescbs. It returns a newly-allocatedDSAor NULL on error. -
DSA_parse_private_key(
Pointer< CBS> cbs) → Pointer<DSA> -
DSA_parse_private_key parses a DER-encoded DSA private key from
cbsand advancescbs. It returns a newly-allocatedDSAor NULL on error. -
DSA_parse_public_key(
Pointer< CBS> cbs) → Pointer<DSA> -
DSA_parse_public_key parses a DER-encoded DSA public key from
cbsand advancescbs. It returns a newly-allocatedDSAor NULL on error. -
DSA_set0_key(
Pointer< DSA> dsa, Pointer<BIGNUM> pub_key, Pointer<BIGNUM> priv_key) → int -
DSA_set0_key sets
dsa's public and private key topub_keyandpriv_key, respectively, if non-NULL. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
DSA_set0_pqg(
Pointer< DSA> dsa, Pointer<BIGNUM> p, Pointer<BIGNUM> q, Pointer<BIGNUM> g) → int -
DSA_set0_pqg sets
dsa's parameters top,q, andg, if non-NULL, and takes ownership of them. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
DSA_set_ex_data(
Pointer< DSA> dsa, int idx, Pointer<Void> arg) → int -
DSA_SIG_free(
Pointer< DSA_SIG> sig) → void -
DSA_SIG_free frees the contents of
sigand then freessigitself. -
DSA_SIG_get0(
Pointer< DSA_SIG> sig, Pointer<Pointer< out_r, Pointer<BIGNUM> >Pointer< out_s) → voidBIGNUM> > -
DSA_SIG_get0 sets
*out_rand*out_s, if non-NULL, to the two components ofsig. -
DSA_SIG_marshal(
Pointer< CBB> cbb, Pointer<DSA_SIG> sig) → int -
DSA_SIG_marshal marshals
sigas a DER-encoded DSA-Sig-Value and appends the result tocbb. It returns one on success and zero on error. -
DSA_SIG_new(
) → Pointer< DSA_SIG> -
DSA_SIG_new returns a freshly allocated, DIG_SIG structure or NULL on error.
Both
randsin the signature will be NULL. -
DSA_SIG_parse(
Pointer< CBS> cbs) → Pointer<DSA_SIG> -
DSA_SIG_parse parses a DER-encoded DSA-Sig-Value structure from
cbsand advancescbs. It returns a newly-allocatedDSA_SIGor NULL on error. -
DSA_SIG_set0(
Pointer< DSA_SIG> sig, Pointer<BIGNUM> r, Pointer<BIGNUM> s) → int -
DSA_SIG_set0 sets
sig's components torands, neither of which may be NULL. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
DSA_sign(
int type, Pointer< Uint8> digest, int digest_len, Pointer<Uint8> out_sig, Pointer<UnsignedInt> out_siglen, Pointer<DSA> dsa) → int -
DSA_sign signs
digestwith the key indsaand writes the resulting signature, in ASN.1 form, toout_sigand the length of the signature to*out_siglen. There must be, at least,DSA_size(dsa)bytes of space inout_sig. It returns one on success and zero otherwise. -
DSA_size(
Pointer< DSA> dsa) → int -
DSA_size returns the size, in bytes, of an ASN.1 encoded, DSA signature
generated by
dsa. Parameters must already have been setup indsa. -
DSA_up_ref(
Pointer< DSA> dsa) → int -
DSA_up_ref increments the reference count of
dsaand returns one. It does not mutatedsafor thread-safety purposes and may be used concurrently. -
DSA_verify(
int type, Pointer< Uint8> digest, int digest_len, Pointer<Uint8> sig, int sig_len, Pointer<DSA> dsa) → int -
DSA_verify verifies that
sigis a valid, ASN.1 signature, by the public key indsa, of the hash indigest. It returns one if so, zero if invalid and -1 on error. -
DSAparams_dup(
Pointer< DSA> dsa) → Pointer<DSA> -
DSAparams_dup returns a freshly allocated
DSAthat contains a copy of the parameters fromdsa. It returns NULL on error. -
EC_curve_nid2nist(
int nid) → Pointer< Char> -
EC_curve_nid2nist returns the NIST name of the elliptic curve specified by
nid, or NULL ifnidis not a NIST curve. For example, it returns "P-256" forNID_X9_62_prime256v1. -
EC_curve_nist2nid(
Pointer< Char> name) → int -
EC_curve_nist2nid returns the NID of the elliptic curve specified by the NIST
name
name, orNID_undefifnameis not a recognized name. For example, it returnsNID_X9_62_prime256v1for "P-256". -
EC_encode_to_curve_p256_xmd_sha256_sswu(
Pointer< EC_GROUP> group, Pointer<EC_POINT> out, Pointer<Uint8> dst, int dst_len, Pointer<Uint8> msg, int msg_len) → int -
EC_encode_to_curve_p256_xmd_sha256_sswu hashes
msgto a point ongroupand writes the result toout, implementing the P256_XMD:SHA-256_SSWU_NU_ suite from RFC 9380. It returns one on success and zero on error. -
EC_encode_to_curve_p384_xmd_sha384_sswu(
Pointer< EC_GROUP> group, Pointer<EC_POINT> out, Pointer<Uint8> dst, int dst_len, Pointer<Uint8> msg, int msg_len) → int -
EC_encode_to_curve_p384_xmd_sha384_sswu hashes
msgto a point ongroupand writes the result toout, implementing the P384_XMD:SHA-384_SSWU_NU_ suite from RFC 9380. It returns one on success and zero on error. -
EC_get_builtin_curves(
Pointer< EC_builtin_curve> out_curves, int max_num_curves) → int -
EC_get_builtin_curves writes at most
max_num_curveselements toout_curvesand returns the total number that it would have written, hadmax_num_curvesbeen large enough. -
EC_GROUP_cmp(
Pointer< EC_GROUP> a, Pointer<EC_GROUP> b, Pointer<BN_CTX> ignored) → int -
EC_GROUP_cmp returns zero if
aandbare the same group and non-zero otherwise. -
EC_GROUP_dup(
Pointer< EC_GROUP> group) → Pointer<EC_GROUP> -
EC_GROUP_dup increments
group's reference count and returns it, ifgroupwas created byEC_GROUP_new_curve_GFp. Ifgroupis static, it simply returnsgroup. -
EC_GROUP_free(
Pointer< EC_GROUP> group) → void -
EC_GROUP_free releases a reference to
group, ifgroupwas created byEC_GROUP_new_curve_GFp. Ifgroupis static, it does nothing. -
EC_GROUP_get0_generator(
Pointer< EC_GROUP> group) → Pointer<EC_POINT> -
EC_GROUP_get0_generator returns a pointer to the internal
EC_POINTobject ingroupthat specifies the generator for the group. -
EC_GROUP_get0_order(
Pointer< EC_GROUP> group) → Pointer<BIGNUM> -
EC_GROUP_get0_order returns a pointer to the internal
BIGNUMobject ingroupthat specifies the order of the group. -
EC_GROUP_get_asn1_flag(
Pointer< EC_GROUP> group) → int -
EC_GROUP_get_asn1_flag returns
OPENSSL_EC_NAMED_CURVE. -
EC_GROUP_get_cofactor(
Pointer< EC_GROUP> group, Pointer<BIGNUM> cofactor, Pointer<BN_CTX> ctx) → int -
EC_GROUP_get_cofactor sets
*cofactorto the cofactor ofgroup. It returns one on success and zero otherwise.ctxis ignored and may be NULL. -
EC_GROUP_get_curve_GFp(
Pointer< EC_GROUP> group, Pointer<BIGNUM> out_p, Pointer<BIGNUM> out_a, Pointer<BIGNUM> out_b, Pointer<BN_CTX> ctx) → int -
EC_GROUP_get_curve_GFp gets various parameters about a group. It sets
*out_pto the order of the coordinate field and*out_aand*out_bto the parameters of the curve when expressed as y² = x³ + ax + b. Any of the output parameters can be NULL. It returns one on success and zero on error.ctxis ignored and may be NULL. -
EC_GROUP_get_curve_name(
Pointer< EC_GROUP> group) → int -
EC_GROUP_get_curve_name returns a NID that identifies
group. -
EC_GROUP_get_degree(
Pointer< EC_GROUP> group) → int -
EC_GROUP_get_degree returns the number of bits needed to represent an
element of the field underlying
group. -
EC_GROUP_get_order(
Pointer< EC_GROUP> group, Pointer<BIGNUM> order, Pointer<BN_CTX> ctx) → int -
EC_GROUP_get_order sets
*orderto the order ofgroup, if it's not NULL. It returns one on success and zero otherwise.ctxis ignored and may be NULL. UseEC_GROUP_get0_orderinstead. -
EC_GROUP_method_of(
Pointer< EC_GROUP> group) → Pointer<EC_METHOD> - EC_GROUP_method_of returns a dummy non-NULL pointer.
-
EC_GROUP_new_by_curve_name(
int nid) → Pointer< EC_GROUP> -
EC_GROUP_new_by_curve_name returns the
EC_GROUPobject for the elliptic curve specified bynid, or NULL on unsupported NID. For OpenSSL compatibility, this function returns a non-const pointer which may be passed toEC_GROUP_free. However, the resulting object is actually static and callingEC_GROUP_freeis optional. -
EC_GROUP_new_curve_GFp(
Pointer< BIGNUM> p, Pointer<BIGNUM> a, Pointer<BIGNUM> b, Pointer<BN_CTX> ctx) → Pointer<EC_GROUP> -
EC_GROUP_new_curve_GFp creates a new, arbitrary elliptic curve group based
on the equation y² = x³ + a·x + b. It returns the new group or NULL on
error. The lifetime of the resulting object must be managed with
EC_GROUP_dupandEC_GROUP_free. -
EC_GROUP_order_bits(
Pointer< EC_GROUP> group) → int -
EC_GROUP_order_bits returns the number of bits of the order of
group. -
EC_group_p224(
) → Pointer< EC_GROUP> -
EC_group_p224 returns an
EC_GROUPfor P-224, also known as secp224r1. -
EC_group_p256(
) → Pointer< EC_GROUP> -
EC_group_p256 returns an
EC_GROUPfor P-256, also known as secp256r1 or prime256v1. -
EC_group_p384(
) → Pointer< EC_GROUP> -
EC_group_p384 returns an
EC_GROUPfor P-384, also known as secp384r1. -
EC_group_p521(
) → Pointer< EC_GROUP> -
EC_group_p521 returns an
EC_GROUPfor P-521, also known as secp521r1. -
EC_GROUP_set_asn1_flag(
Pointer< EC_GROUP> group, int flag) → void - EC_GROUP_set_asn1_flag does nothing.
-
EC_GROUP_set_generator(
Pointer< EC_GROUP> group, Pointer<EC_POINT> generator, Pointer<BIGNUM> order, Pointer<BIGNUM> cofactor) → int -
EC_GROUP_set_generator sets the generator for
grouptogenerator, which must have the given order and cofactor. It may only be used withEC_GROUPobjects returned byEC_GROUP_new_curve_GFpand may only be used once on each group.generatormust have been created usinggroup. -
EC_GROUP_set_point_conversion_form(
Pointer< EC_GROUP> group, int form) → void -
EC_GROUP_set_point_conversion_form aborts the process if
formis notPOINT_CONVERSION_UNCOMPRESSEDand otherwise does nothing. -
EC_hash_to_curve_p256_xmd_sha256_sswu(
Pointer< EC_GROUP> group, Pointer<EC_POINT> out, Pointer<Uint8> dst, int dst_len, Pointer<Uint8> msg, int msg_len) → int -
EC_hash_to_curve_p256_xmd_sha256_sswu hashes
msgto a point ongroupand writes the result toout, implementing the P256_XMD:SHA-256_SSWU_RO_ suite from RFC 9380. It returns one on success and zero on error. -
EC_hash_to_curve_p384_xmd_sha384_sswu(
Pointer< EC_GROUP> group, Pointer<EC_POINT> out, Pointer<Uint8> dst, int dst_len, Pointer<Uint8> msg, int msg_len) → int -
EC_hash_to_curve_p384_xmd_sha384_sswu hashes
msgto a point ongroupand writes the result toout, implementing the P384_XMD:SHA-384_SSWU_RO_ suite from RFC 9380. It returns one on success and zero on error. -
EC_KEY_check_fips(
Pointer< EC_KEY> key) → int - EC_KEY_check_fips performs both a signing pairwise consistency test (FIPS 140-2 4.9.2) and the consistency test from SP 800-56Ar3 section 5.6.2.1.4. It returns one if it passes and zero otherwise.
-
EC_KEY_check_key(
Pointer< EC_KEY> key) → int -
EC_KEY_check_key performs several checks on
key(possibly including an expensive check that the public key is in the primary subgroup). It returns one if all checks pass and zero otherwise. If it returns zero then detail about the problem can be found on the error stack. -
EC_KEY_derive_from_secret(
Pointer< EC_GROUP> group, Pointer<Uint8> secret, int secret_len) → Pointer<EC_KEY> -
EC_KEY_derive_from_secret deterministically derives a private key for
groupfrom an input secret using HKDF-SHA256. It returns a newly-allocatedEC_KEYon success or NULL on error.secretmust not be used in any other algorithm. If using a base secret for multiple operations, derive separate values with a KDF such as HKDF first. -
EC_KEY_dup(
Pointer< EC_KEY> src) → Pointer<EC_KEY> -
EC_KEY_dup returns a fresh copy of
srcor NULL on error. -
EC_KEY_dup_ref(
Pointer< EC_KEY> key) → Pointer<EC_KEY> -
EC_KEY_dup_ref increases the reference count of
keyand returns the same handle. It does not mutatekeyfor thread-safety purposes and may be used concurrently. -
EC_KEY_free(
Pointer< EC_KEY> key) → void -
EC_KEY_free frees all the data owned by
keyandkeyitself. -
EC_KEY_generate_key(
Pointer< EC_KEY> key) → int -
EC_KEY_generate_key generates a random, private key, calculates the
corresponding public key and stores both in
key. It returns one on success or zero otherwise. -
EC_KEY_generate_key_fips(
Pointer< EC_KEY> key) → int -
EC_KEY_generate_key_fips behaves like
EC_KEY_generate_keybut performs additional checks for FIPS compliance. This function is applicable when generating keys for either signing/verification or key agreement because both types of consistency check (PCT) are performed. -
EC_KEY_get0_group(
Pointer< EC_KEY> key) → Pointer<EC_GROUP> -
EC_KEY_get0_group returns a pointer to the
EC_GROUPobject insidekey. -
EC_KEY_get0_private_key(
Pointer< EC_KEY> key) → Pointer<BIGNUM> -
EC_KEY_get0_private_key returns a pointer to the private key inside
key. -
EC_KEY_get0_public_key(
Pointer< EC_KEY> key) → Pointer<EC_POINT> -
EC_KEY_get0_public_key returns a pointer to the public key point inside
key. -
EC_KEY_get_conv_form(
Pointer< EC_KEY> key) → int -
EC_KEY_get_conv_form returns the conversion form that will be used by
key. -
EC_KEY_get_enc_flags(
Pointer< EC_KEY> key) → int -
EC_KEY_get_enc_flags returns the encoding flags for
key, which is a bitwise-OR ofEC_PKEY_*values. -
EC_KEY_get_ex_data(
Pointer< EC_KEY> r, int idx) → Pointer<Void> -
EC_KEY_get_ex_new_index(
int argl, Pointer< Void> argp, Pointer<Int> unused, Pointer<CRYPTO_EX_dup> dup_unused, Pointer<CRYPTO_EX_free> free_func) → int - ex_data functions.
-
EC_KEY_is_opaque(
Pointer< EC_KEY> key) → int -
EC_KEY_is_opaque returns one if
keyis opaque and doesn't expose its key material. Otherwise it return zero. -
EC_KEY_key2buf(
Pointer< EC_KEY> key, int form, Pointer<Pointer< out_buf, Pointer<Uint8> >BN_CTX> ctx) → int -
EC_KEY_key2buf behaves like
EC_POINT_point2buf, except it encodes the public key inkey.ctxis ignored and may be NULL. -
EC_KEY_marshal_curve_name(
Pointer< CBB> cbb, Pointer<EC_GROUP> group) → int -
EC_KEY_marshal_curve_name marshals
groupas a DER-encoded OBJECT IDENTIFIER and appends the result tocbb. It returns one on success and zero on failure. -
EC_KEY_marshal_private_key(
Pointer< CBB> cbb, Pointer<EC_KEY> key, int enc_flags) → int -
EC_KEY_marshal_private_key marshals
keyas a DER-encoded ECPrivateKey structure (RFC 5915) and appends the result tocbb. It returns one on success and zero on failure.enc_flagsis a combination ofEC_PKEY_*values and controls whether corresponding fields are omitted. -
EC_KEY_new(
) → Pointer< EC_KEY> -
EC_KEY_new returns a fresh
EC_KEYobject or NULL on error. -
EC_KEY_new_by_curve_name(
int nid) → Pointer< EC_KEY> -
EC_KEY_new_by_curve_name returns a fresh EC_KEY for group specified by
nidor NULL on error. -
EC_KEY_new_method(
Pointer< ENGINE> engine) → Pointer<EC_KEY> -
EC_KEY_new_method acts the same as
EC_KEY_new, but takes an explicitENGINE. -
EC_KEY_oct2key(
Pointer< EC_KEY> key, Pointer<Uint8> in$, int len, Pointer<BN_CTX> ctx) → int -
EC_KEY_oct2key decodes
lenbytes frominas an EC public key in X9.62 form.keymust already have a group configured. On success, it sets the public key inkeyto the result and returns one. Otherwise, it returns zero.ctxmay be NULL. -
EC_KEY_oct2priv(
Pointer< EC_KEY> key, Pointer<Uint8> in$, int len) → int -
EC_KEY_oct2priv decodes a big-endian, zero-padded integer from
lenbytes frominand setskey's private key to the result. It returns one on success and zero on error. The input must be padded to the size ofkey's group order. -
EC_KEY_parse_curve_name(
Pointer< CBS> cbs) → Pointer<EC_GROUP> -
EC_KEY_parse_curve_name parses a DER-encoded OBJECT IDENTIFIER as a curve
name from
cbsand advancescbs. It returns the decodedEC_GROUPor NULL on error. -
EC_KEY_parse_parameters(
Pointer< CBS> cbs) → Pointer<EC_GROUP> -
EC_KEY_parse_parameters parses a DER-encoded ECParameters structure (RFC
5480) from
cbsand advancescbs. It returns the resultingEC_GROUPor NULL on error. It supports the namedCurve and specifiedCurve options, but use of specifiedCurve is deprecated. UseEC_KEY_parse_curve_nameinstead. -
EC_KEY_parse_private_key(
Pointer< CBS> cbs, Pointer<EC_GROUP> group) → Pointer<EC_KEY> -
EC_KEY_parse_private_key parses a DER-encoded ECPrivateKey structure (RFC
5915) from
cbsand advancescbs. It returns a newly-allocatedEC_KEYor NULL on error. Ifgroupis non-null, the parameters field of the ECPrivateKey may be omitted (but must matchgroupif present). Otherwise, the parameters field is required. -
EC_KEY_priv2buf(
Pointer< EC_KEY> key, Pointer<Pointer< out_buf) → intUint8> > -
EC_KEY_priv2buf behaves like
EC_KEY_priv2octbut sets*out_bufto a newly-allocated buffer containing the result. It returns the size of the result on success and zero on error. The caller must release*out_bufwithOPENSSL_freewhen done. -
EC_KEY_priv2oct(
Pointer< EC_KEY> key, Pointer<Uint8> out, int max_out) → int -
EC_KEY_priv2oct serializes
key's private key as a big-endian integer, zero-padded to the size ofkey's group order and writes the result to at mostmax_outbytes ofout. It returns the number of bytes written on success and zero on error. Ifoutis NULL, it returns the number of bytes needed without writing anything. -
EC_KEY_set_asn1_flag(
Pointer< EC_KEY> key, int flag) → void - EC_KEY_set_asn1_flag does nothing.
-
EC_KEY_set_conv_form(
Pointer< EC_KEY> key, int cform) → void -
EC_KEY_set_conv_form sets the conversion form to be used by
key. -
EC_KEY_set_enc_flags(
Pointer< EC_KEY> key, int flags) → void -
EC_KEY_set_enc_flags sets the encoding flags for
key, which is a bitwise-OR ofEC_PKEY_*values. -
EC_KEY_set_ex_data(
Pointer< EC_KEY> r, int idx, Pointer<Void> arg) → int -
EC_KEY_set_group(
Pointer< EC_KEY> key, Pointer<EC_GROUP> group) → int -
EC_KEY_set_group sets the
EC_GROUPobject thatkeywill use togroup. It returns one on success and zero ifkeyis already configured with a different group. -
EC_KEY_set_private_key(
Pointer< EC_KEY> key, Pointer<BIGNUM> priv) → int -
EC_KEY_set_private_key sets the private key of
keytopriv. It returns one on success and zero otherwise.keymust already have had a group configured (seeEC_KEY_set_groupandEC_KEY_new_by_curve_name). -
EC_KEY_set_public_key(
Pointer< EC_KEY> key, Pointer<EC_POINT> pub) → int -
EC_KEY_set_public_key sets the public key of
keytopub, by copying it. It returns one on success and zero otherwise.keymust already have had a group configured (seeEC_KEY_set_groupandEC_KEY_new_by_curve_name), andpubmust also belong to that group, and must not be the point at infinity. -
EC_KEY_set_public_key_affine_coordinates(
Pointer< EC_KEY> key, Pointer<BIGNUM> x, Pointer<BIGNUM> y) → int -
EC_KEY_set_public_key_affine_coordinates sets the public key in
keyto (x,y). It returns one on success and zero on error. It's considered an error ifxandydo not represent a point onkey's curve. -
EC_KEY_up_ref(
Pointer< EC_KEY> key) → int -
EC_KEY_up_ref increases the reference count of
keyand returns one. It does not mutatekeyfor thread-safety purposes and may be used concurrently. -
EC_METHOD_get_field_type(
Pointer< EC_METHOD> meth) → int - EC_METHOD_get_field_type returns NID_X9_62_prime_field.
-
EC_POINT_add(
Pointer< EC_GROUP> group, Pointer<EC_POINT> r, Pointer<EC_POINT> a, Pointer<EC_POINT> b, Pointer<BN_CTX> ctx) → int -
EC_POINT_add sets
requal toaplusb. It returns one on success and zero otherwise.ctxis ignored and may be NULL. -
EC_POINT_clear_free(
Pointer< EC_POINT> point) → void -
EC_POINT_clear_free calls
EC_POINT_free. -
EC_POINT_cmp(
Pointer< EC_GROUP> group, Pointer<EC_POINT> a, Pointer<EC_POINT> b, Pointer<BN_CTX> ctx) → int -
EC_POINT_cmp returns zero if
ais equal tob, greater than zero if not equal and -1 on error.ctxis ignored and may be NULL. -
EC_POINT_copy(
Pointer< EC_POINT> dest, Pointer<EC_POINT> src) → int -
EC_POINT_copy sets
*destequal to*src. It returns one on success and zero otherwise. -
EC_POINT_dbl(
Pointer< EC_GROUP> group, Pointer<EC_POINT> r, Pointer<EC_POINT> a, Pointer<BN_CTX> ctx) → int -
EC_POINT_dbl sets
requal toaplusa. It returns one on success and zero otherwise.ctxis ignored and may be NULL. -
EC_POINT_dup(
Pointer< EC_POINT> src, Pointer<EC_GROUP> group) → Pointer<EC_POINT> -
EC_POINT_dup returns a fresh
EC_POINTthat contains the same values assrc, or NULL on error. -
EC_POINT_free(
Pointer< EC_POINT> point) → void -
EC_POINT_free frees
pointand the data that it points to. -
EC_POINT_get_affine_coordinates(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<BIGNUM> x, Pointer<BIGNUM> y, Pointer<BN_CTX> ctx) → int -
EC_POINT_get_affine_coordinates is an alias of
EC_POINT_get_affine_coordinates_GFp. -
EC_POINT_get_affine_coordinates_GFp(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<BIGNUM> x, Pointer<BIGNUM> y, Pointer<BN_CTX> ctx) → int -
EC_POINT_get_affine_coordinates_GFp sets
xandyto the affine value ofpoint. It returns one on success and zero otherwise.ctxis ignored and may be NULL. -
EC_POINT_invert(
Pointer< EC_GROUP> group, Pointer<EC_POINT> a, Pointer<BN_CTX> ctx) → int -
EC_POINT_invert sets
aequal to minusa. It returns one on success and zero otherwise.ctxis ignored and may be NULL. -
EC_POINT_is_at_infinity(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point) → int -
EC_POINT_is_at_infinity returns one iff
pointis the point at infinity and zero otherwise. -
EC_POINT_is_on_curve(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<BN_CTX> ctx) → int -
EC_POINT_is_on_curve returns one if
pointis an element ofgroupand and zero otherwise or when an error occurs. This is different from OpenSSL, which returns -1 on error.ctxis ignored and may be NULL. -
EC_POINT_mul(
Pointer< EC_GROUP> group, Pointer<EC_POINT> r, Pointer<BIGNUM> n, Pointer<EC_POINT> q, Pointer<BIGNUM> m, Pointer<BN_CTX> ctx) → int -
EC_POINT_mul sets r = generatorn + qm. It returns one on success and zero
otherwise.
ctxmay be NULL. -
EC_POINT_new(
Pointer< EC_GROUP> group) → Pointer<EC_POINT> -
EC_POINT_new returns a fresh
EC_POINTobject in the given group, or NULL on error. -
EC_POINT_oct2point(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<Uint8> buf, int len, Pointer<BN_CTX> ctx) → int -
EC_POINT_oct2point sets
pointfromlenbytes of X9.62 format serialisation inbuf. It returns one on success and zero on error.ctxmay be NULL. It's considered an error ifbufdoes not represent a point on the curve. -
EC_POINT_point2buf(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, int form, Pointer<Pointer< out_buf, Pointer<Uint8> >BN_CTX> ctx) → int -
EC_POINT_point2buf serialises
pointinto the X9.62 form given byformto a newly-allocated buffer and sets*out_bufto point to it. It returns the length of the result on success or zero on error. The caller must release*out_bufwithOPENSSL_freewhen done.ctxis ignored and may be NULL. -
EC_POINT_point2cbb(
Pointer< CBB> out, Pointer<EC_GROUP> group, Pointer<EC_POINT> point, int form, Pointer<BN_CTX> ctx) → int -
EC_POINT_point2cbb behaves like
EC_POINT_point2octbut appends the serialised point tocbb. It returns one on success and zero on error.ctxis ignored and may be NULL. -
EC_POINT_point2oct(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, int form, Pointer<Uint8> buf, int max_out, Pointer<BN_CTX> ctx) → int -
EC_POINT_point2oct serialises
pointinto the X9.62 form given byforminto, at most,max_outbytes atbuf. It returns the number of bytes written or zero on error ifbufis non-NULL, else the number of bytes needed.ctxis ignored and may be NULL. -
EC_POINT_set_affine_coordinates(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<BIGNUM> x, Pointer<BIGNUM> y, Pointer<BN_CTX> ctx) → int -
EC_POINT_set_affine_coordinates is an alias of
EC_POINT_set_affine_coordinates_GFp. -
EC_POINT_set_affine_coordinates_GFp(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<BIGNUM> x, Pointer<BIGNUM> y, Pointer<BN_CTX> ctx) → int -
EC_POINT_set_affine_coordinates_GFp sets the value of
pointto be (x,y).ctxis ignored and may be NULL. It returns one on success or zero on error. It's considered an error if the point is not on the curve. -
EC_POINT_set_compressed_coordinates_GFp(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point, Pointer<BIGNUM> x, int y_bit, Pointer<BN_CTX> ctx) → int -
EC_POINT_set_compressed_coordinates_GFp sets
pointto equal the point with the givenxcoordinate and the y coordinate specified byy_bit(see X9.62). It returns one on success and zero otherwise.ctxmay be NULL. -
EC_POINT_set_to_infinity(
Pointer< EC_GROUP> group, Pointer<EC_POINT> point) → int -
EC_POINT_set_to_infinity sets
pointto be the "point at infinity" for the given group. -
EC_wpa3_sae_hash_to_curve_p256(
Pointer< EC_GROUP> group, Pointer<EC_POINT> out, Pointer<Uint8> salt, int salt_len, Pointer<Uint8> ikm, int ikm_len) → int -
EC_wpa3_sae_hash_to_curve_p256 hashes
saltandikmto a point ongroupand writes the result toout, implementing the WPA3 SAE hash-to-curve variant for P-256 defined in IEEE Std 802.11-2020, Section 12.4.4.2.3. It returns one on success and zero on error.saltis the HKDF-Extract salt, which is the SSID.ikmis the HKDF-Extract input, or password and identifier concatenation. -
EC_wpa3_sae_hunt_and_peck_p256(
Pointer< EC_GROUP> group, Pointer<EC_POINT> out, Pointer<Uint8> salt, int salt_len, Pointer<Uint8> password, int password_len, int min_iterations) → int -
EC_wpa3_sae_hunt_and_peck_p256 hashes
saltandpasswordto a point ongroupand writes the result toout, using the WPA3 "hunt and peck" algorithm defined in IEEE Std 802.11-2020, Section 12.4.4.2.2. It returns one on success and zero on error.groupmust be P-256.saltis the HKDF-Extract salt, which is the MAC concatenation.passwordis the password, used to compute the HKDF-Extract input. -
ECDH_compute_key(
Pointer< Void> out, int outlen, Pointer<EC_POINT> pub_key, Pointer<EC_KEY> priv_key, Pointer<NativeFunction< kdf) → intPointer< >Void> Function(Pointer<Void> in$, Size inlen, Pointer<Void> out, Pointer<Size> outlen)> -
ECDH_compute_key calculates the shared key between
pub_keyandpriv_key. Ifkdfis not NULL, then it is called with the bytes of the shared key and the parameterout. Whenkdfreturns, the value of*outlenbecomes the return value. Otherwise, as many bytes of the shared key as will fit are copied directly to, at most,outlenbytes atout. It returns the number of bytes written toout, or -1 on error. -
ECDH_compute_key_fips(
Pointer< Uint8> out, int out_len, Pointer<EC_POINT> pub_key, Pointer<EC_KEY> priv_key) → int -
ECDH_compute_key_fips calculates the shared key between
pub_keyandpriv_keyand hashes it with the appropriate SHA function forout_len. The only value values forout_lenare thus 24 (SHA-224), 32 (SHA-256), 48 (SHA-384), and 64 (SHA-512). It returns one on success and zero on error. -
ECDSA_do_sign(
Pointer< Uint8> digest, int digest_len, Pointer<EC_KEY> key) → Pointer<ECDSA_SIG> -
ECDSA_do_sign signs
digest_lenbytes fromdigestwithkeyand returns the resulting signature structure, or NULL on error. -
ECDSA_do_verify(
Pointer< Uint8> digest, int digest_len, Pointer<ECDSA_SIG> sig, Pointer<EC_KEY> key) → int -
ECDSA_do_verify verifies that
sigconstitutes a valid signature bykeyofdigest. It returns one on success or zero if the signature is invalid or on error. -
ECDSA_SIG_free(
Pointer< ECDSA_SIG> sig) → void -
ECDSA_SIG_free frees
sigits memberBIGNUMs. -
ECDSA_SIG_from_bytes(
Pointer< Uint8> in$, int in_len) → Pointer<ECDSA_SIG> -
ECDSA_SIG_from_bytes parses
inas a DER-encoded ECDSA-Sig-Value structure. It returns a newly-allocatedECDSA_SIGstructure or NULL on error. -
ECDSA_SIG_get0(
Pointer< ECDSA_SIG> sig, Pointer<Pointer< out_r, Pointer<BIGNUM> >Pointer< out_s) → voidBIGNUM> > -
ECDSA_SIG_get0 sets
*out_rand*out_s, if non-NULL, to the two components ofsig. -
ECDSA_SIG_get0_r(
Pointer< ECDSA_SIG> sig) → Pointer<BIGNUM> -
ECDSA_SIG_get0_r returns the r component of
sig. -
ECDSA_SIG_get0_s(
Pointer< ECDSA_SIG> sig) → Pointer<BIGNUM> -
ECDSA_SIG_get0_s returns the s component of
sig. -
ECDSA_SIG_marshal(
Pointer< CBB> cbb, Pointer<ECDSA_SIG> sig) → int -
ECDSA_SIG_marshal marshals
sigas a DER-encoded ECDSA-Sig-Value and appends the result tocbb. It returns one on success and zero on error. -
ECDSA_SIG_max_len(
int order_len) → int -
ECDSA_SIG_max_len returns the maximum length of a DER-encoded ECDSA-Sig-Value
structure for a group whose order is represented in
order_lenbytes, or zero on overflow. -
ECDSA_SIG_new(
) → Pointer< ECDSA_SIG> -
ECDSA_SIG_new returns a fresh
ECDSA_SIGstructure or NULL on error. -
ECDSA_SIG_parse(
Pointer< CBS> cbs) → Pointer<ECDSA_SIG> -
ECDSA_SIG_parse parses a DER-encoded ECDSA-Sig-Value structure from
cbsand advancescbs. It returns a newly-allocatedECDSA_SIGor NULL on error. -
ECDSA_SIG_set0(
Pointer< ECDSA_SIG> sig, Pointer<BIGNUM> r, Pointer<BIGNUM> s) → int -
ECDSA_SIG_set0 sets
sig's components torands, neither of which may be NULL. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
ECDSA_SIG_to_bytes(
Pointer< Pointer< out_bytes, Pointer<Uint8> >Size> out_len, Pointer<ECDSA_SIG> sig) → int -
ECDSA_SIG_to_bytes marshals
sigas a DER-encoded ECDSA-Sig-Value and, on success, sets*out_bytesto a newly allocated buffer containing the result and returns one. Otherwise, it returns zero. The result should be freed withOPENSSL_free. -
ECDSA_sign(
int type, Pointer< Uint8> digest, int digest_len, Pointer<Uint8> sig, Pointer<UnsignedInt> sig_len, Pointer<EC_KEY> key) → int -
ECDSA_sign signs
digest_lenbytes fromdigestwithkeyand writes the resulting ASN.1-based signature tosig, which must haveECDSA_size(key)bytes of space. On successful exit,*sig_lenis set to the actual number of bytes written. Thetypeargument should be zero. It returns one on success and zero otherwise. -
ECDSA_sign_p1363(
Pointer< Uint8> digest, int digest_len, Pointer<Uint8> sig, Pointer<Size> out_sig_len, int max_sig_len, Pointer<EC_KEY> key) → int -
ECDSA_sign_p1363 signs
digest_lenbytes fromdigestwithkeyand writes the resulting P1363-based signature tosig, which must haveECDSA_size_p1363(key)bytes of space. On successful exit,*out_sig_lenis set to the actual number of bytes written, which will always matchECDSA_size_p1363(key). It returns one on success and zero otherwise. -
ECDSA_sign_with_nonce_and_leak_private_key_for_testing(
Pointer< Uint8> digest, int digest_len, Pointer<EC_KEY> eckey, Pointer<Uint8> nonce, int nonce_len) → Pointer<ECDSA_SIG> -
ECDSA_sign_with_nonce_and_leak_private_key_for_testing behaves like
ECDSA_do_signbut usesnoncefor the ECDSA nonce 'k', instead of a random value.nonceis interpreted as a big-endian integer. It must be reduced modulo the group order and padded with zeros up toBN_num_bytes(order)bytes. -
ECDSA_size(
Pointer< EC_KEY> key) → int -
ECDSA_size returns the maximum size of an ASN.1-based ECDSA signature using
key. It returns zero ifkeyis NULL or if it doesn't have a group set. -
ECDSA_size_p1363(
Pointer< EC_KEY> key) → int -
ECDSA_size_p1363 returns the size of a P1363-based ECDSA signature using
key. It returns zero ifkeyis NULL or if it doesn't have a group set. -
ECDSA_verify(
int type, Pointer< Uint8> digest, int digest_len, Pointer<Uint8> sig, int sig_len, Pointer<EC_KEY> key) → int -
ECDSA_verify verifies that
sig_lenbytes fromsigconstitute a valid ASN.1-based signature bykeyofdigest. (Thetypeargument should be zero.) It returns one on success or zero if the signature is invalid or an error occurred. -
ECDSA_verify_p1363(
Pointer< Uint8> digest, int digest_len, Pointer<Uint8> sig, int sig_len, Pointer<EC_KEY> key) → int -
ECDSA_verify_p1363 verifies that
sig_lenbytes fromsigconstitute a valid P1363-based signature bykeyofdigest. It returns one on success or zero if the signature is invalid or an error occurred. -
ED25519_keypair(
Pointer< Uint8> out_public_key, Pointer<Uint8> out_private_key) → void -
ED25519_keypair sets
out_public_keyandout_private_keyto a freshly generated, public–private key pair. -
ED25519_keypair_from_seed(
Pointer< Uint8> out_public_key, Pointer<Uint8> out_private_key, Pointer<Uint8> seed) → void - ED25519_keypair_from_seed calculates a public and private key from an Ed25519 “seed”. Seed values are not exposed by this API (although they happen to be the first 32 bytes of a private key) so this function is for interoperating with systems that may store just a seed instead of a full private key.
-
ED25519_sign(
Pointer< Uint8> out_sig, Pointer<Uint8> message, int message_len, Pointer<Uint8> private_key) → int -
ED25519_sign sets
out_sigto be a signature ofmessage_lenbytes frommessageusingprivate_key. It returns one on success or zero on allocation failure. -
ED25519_sign_prehashed(
Pointer< Uint8> out_sig, Pointer<Uint8> context, int context_len, Pointer<Uint8> sha512_digest, Pointer<Uint8> private_key) → int -
ED25519_sign_prehashed sets
out_sigto be a signature ofsha512_digestusingprivate_keyfollowing the Ed25519ph algorithm. It returns one on success, or zero otherwise.sha512_digestmust be the 64-byte result of hashing the input message with SHA-512.contextallows for domain separation; see https://www.rfc-editor.org/info/rfc8032/#section-8.3. -
ED25519_verify(
Pointer< Uint8> message, int message_len, Pointer<Uint8> signature, Pointer<Uint8> public_key) → int -
ED25519_verify returns one iff
signatureis a valid signature, bypublic_keyofmessage_lenbytes frommessage. It returns zero otherwise. -
ED25519_verify_prehashed(
Pointer< Uint8> context, int context_len, Pointer<Uint8> sha512_digest, Pointer<Uint8> signature, Pointer<Uint8> public_key) → int -
ED25519_verify_prehashed returns one if
signatureis a valid signature, bypublic_key, ofsha512_digestfollowing the Ed25519ph algorithm. It returns zero otherwise.sha512_digestmust be the 64-byte result of hashing the input message with SHA-512.contextallows for domain separation; see https://www.rfc-editor.org/info/rfc8032/#section-8.3. -
EDIPARTYNAME_free(
Pointer< EDIPARTYNAME> name) → void -
EDIPARTYNAME_free releases memory associated with
name. EDIPartyName is rarely used in practice, so callers are unlikely to need this function. -
EDIPARTYNAME_new(
) → Pointer< EDIPARTYNAME> -
EDIPARTYNAME_new returns a new, empty
EDIPARTYNAME, or NULL on error. EDIPartyName is rarely used in practice, so callers are unlikely to need this function. -
ENGINE_cleanup(
) → void - ENGINE_cleanup does nothing.
-
ENGINE_free(
Pointer< ENGINE> engine) → int -
ENGINE_free decrements the reference counts for all methods linked from
engineand freesengineitself. It returns one. -
ENGINE_get_ECDSA_method(
Pointer< ENGINE> engine) → Pointer<ECDSA_METHOD> -
ENGINE_get_RSA_method(
Pointer< ENGINE> engine) → Pointer<RSA_METHOD> -
ENGINE_load_builtin_engines(
) → void - ENGINE_load_builtin_engines does nothing.
-
ENGINE_new(
) → Pointer< ENGINE> - ENGINE_new returns an empty ENGINE that uses the default method for all algorithms.
-
ENGINE_register_all_complete(
) → int - ENGINE_register_all_complete returns one.
-
ENGINE_set_ECDSA_method(
Pointer< ENGINE> engine, Pointer<ECDSA_METHOD> method, int method_size) → int -
ENGINE_set_RSA_method(
Pointer< ENGINE> engine, Pointer<RSA_METHOD> method, int method_size) → int - Method accessors.
-
ERR_add_error_data(
int count) → void -
ERR_add_error_data takes a variable number (
count) of const char* pointers, concatenates them and sets the result as the data on the most recent error. -
ERR_add_error_dataf(
Pointer< Char> format) → void - ERR_add_error_dataf takes a printf-style format and arguments, and sets the result as the data on the most recent error.
-
ERR_clear_error(
) → void - ERR_clear_error clears the error queue for the current thread.
-
ERR_clear_system_error(
) → void - ERR_clear_system_error clears the system's error value (i.e. errno).
-
ERR_error_string(
int packed_error, Pointer< Char> buf) → Pointer<Char> -
ERR_error_string behaves like
ERR_error_string_nbutlenis implicitlyERR_ERROR_STRING_BUF_LEN. -
ERR_error_string_n(
int packed_error, Pointer< Char> buf, int len) → Pointer<Char> -
ERR_error_string_n generates a human-readable string representing
packed_error, places it atbuf, and returnsbuf. It writes at mostlenbytes (including the terminating NUL) and truncates the string if necessary. Iflenis greater than zero thenbufis always NUL terminated. -
ERR_free_strings(
) → void - ERR_free_strings does nothing.
-
ERR_func_error_string(
int packed_error) → Pointer< Char> - ERR_func_error_string returns the string "OPENSSL_internal".
-
ERR_get_error(
) → int - ERR_get_error gets the packed error code for the least recent error and removes that error from the queue. If there are no errors in the queue then it returns zero.
-
ERR_get_error_line(
Pointer< Pointer< file, Pointer<Char> >Int> line) → int -
ERR_get_error_line acts like
ERR_get_error, except that the file and line number of the call that added the error are also returned. -
ERR_get_error_line_data(
Pointer< Pointer< file, Pointer<Char> >Int> line, Pointer<Pointer< data, Pointer<Char> >Int> flags) → int -
ERR_get_error_line_data acts like
ERR_get_error_line, but also returns the error-specific data pointer and flags. The flags are a bitwise-OR ofERR_FLAG_*values. The error-specific data is owned by the error queue and the pointer becomes invalid after the next call that affects the same thread's error queue. If*flagscontainsERR_FLAG_STRINGthen*datais human-readable. -
ERR_GET_LIB(
int packedError) → int -
Returns the library code (
ERR_LIB_*) for a packed BoringSSL error code. -
ERR_get_next_error_library(
) → int -
ERR_get_next_error_library returns a value suitable for passing as the
libraryargument toERR_put_error. This is intended for code that wishes to push its own, non-standard errors to the error queue. -
ERR_GET_REASON(
int packedError) → int -
Returns the library-specific reason code (
*_R_*) for a packed BoringSSL error code. -
ERR_lib_error_string(
int packed_error) → Pointer< Char> -
ERR_lib_error_string returns a string representation of the library that
generated
packed_error, or a placeholder string is the library is unrecognized. -
ERR_lib_symbol_name(
int packed_error) → Pointer< Char> -
ERR_lib_symbol_name returns the symbol name of library that generated
packed_error, or NULL if unrecognized. For example, an error fromERR_LIB_EVPwould return "EVP". -
ERR_load_BIO_strings(
) → void - ERR_load_BIO_strings does nothing.
-
ERR_load_crypto_strings(
) → void - ERR_load_crypto_strings does nothing.
-
ERR_load_ERR_strings(
) → void - ERR_load_ERR_strings does nothing.
-
ERR_load_RAND_strings(
) → void - ERR_load_RAND_strings does nothing.
-
ERR_peek_error(
) → int -
The "peek" functions act like the
ERR_get_errorfunctions, above, but they do not remove the error from the queue. -
ERR_peek_error_line(
Pointer< Pointer< file, Pointer<Char> >Int> line) → int -
ERR_peek_error_line_data(
Pointer< Pointer< file, Pointer<Char> >Int> line, Pointer<Pointer< data, Pointer<Char> >Int> flags) → int -
ERR_peek_last_error(
) → int - The "peek last" functions act like the "peek" functions, above, except that they return the most recent error.
-
ERR_peek_last_error_line(
Pointer< Pointer< file, Pointer<Char> >Int> line) → int -
ERR_peek_last_error_line_data(
Pointer< Pointer< file, Pointer<Char> >Int> line, Pointer<Pointer< data, Pointer<Char> >Int> flags) → int -
ERR_pop_to_mark(
) → int -
ERR_pop_to_mark removes errors from the most recent to the least recent
until (and not including) a "marked" error. It returns zero if no marked
error was found (and thus all errors were removed) and one otherwise. Errors
are marked using
ERR_set_mark. -
ERR_print_errors(
Pointer< BIO> bio) → void -
ERR_print_errors prints the current contents of the error stack to
biousing human readable strings where possible. -
ERR_print_errors_cb(
ERR_print_errors_callback_t callback, Pointer< Void> ctx) → void -
ERR_print_errors_cb clears the current thread's error queue, calling
callbackwith a string representation of each error, from the least recent to the most recent error. -
ERR_print_errors_fp(
Pointer< FILE> file) → void -
ERR_print_errors_fp clears the current thread's error queue, printing each
error to
file. SeeERR_print_errors_cbfor the format. -
ERR_put_error(
int library, int unused, int reason, Pointer< Char> file, int line) → void - ERR_put_error adds an error to the error queue, dropping the least recent error if necessary for space reasons.
-
ERR_reason_error_string(
int packed_error) → Pointer< Char> -
ERR_reason_error_string returns a string representation of the reason for
packed_error, or a placeholder string if the reason is unrecognized. -
ERR_reason_symbol_name(
int packed_error) → Pointer< Char> -
ERR_reason_symbol_name returns the symbol name of the reason for
packed_error, or NULL if unrecognized. For example,ERR_R_INTERNAL_ERRORwould return "INTERNAL_ERROR". -
ERR_remove_state(
int pid) → void -
ERR_remove_state calls
ERR_clear_error. -
ERR_remove_thread_state(
Pointer< Int> tid) → void -
ERR_remove_thread_state clears the error queue for the current thread if
tidis NULL. Otherwise it callsassert(0), because it's no longer possible to delete the error queue for other threads. -
ERR_set_error_data(
Pointer< Char> data, int flags) → void -
ERR_set_error_data sets the data on the most recent error to
data, which must be a NUL-terminated string.flagsmust containERR_FLAG_STRING. IfflagscontainsERR_FLAG_MALLOCED, this function takes ownership ofdata, which must have been allocated withOPENSSL_malloc. Otherwise, it saves a copy ofdata. -
ERR_set_mark(
) → int -
ERR_set_mark "marks" the most recent error for use with
ERR_pop_to_mark. It returns one if an error was marked and zero if there are no errors. -
EVP_add_cipher_alias(
Pointer< Char> a, Pointer<Char> b) → int - EVP_add_cipher_alias does nothing and returns one.
-
EVP_add_digest(
Pointer< EVP_MD> digest) → int - EVP_add_digest does nothing and returns one. It exists only for compatibility with OpenSSL.
-
EVP_aead_aes_128_cbc_sha1_tls(
) → Pointer< EVP_AEAD> - The following functions implement legacy TLS CBC cipher suites.
-
EVP_aead_aes_128_cbc_sha1_tls_implicit_iv(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_128_cbc_sha256_tls(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_128_ccm_bluetooth(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_ccm_bluetooth is AES-128-CCM with M=4 and L=2 (4-byte tags and 13-byte nonces), as described in the Bluetooth Core Specification v5.0, Volume 6, Part E, Section 1.
-
EVP_aead_aes_128_ccm_bluetooth_8(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_ccm_bluetooth_8 is AES-128-CCM with M=8 and L=2 (8-byte tags and 13-byte nonces), as used in the Bluetooth Mesh Networking Specification v1.0.
-
EVP_aead_aes_128_ccm_matter(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_ccm_matter is AES-128-CCM with M=16 and L=2 (16-byte tags and 13-byte nonces), as used in the Matter specification.
-
EVP_aead_aes_128_ctr_hmac_sha256(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_ctr_hmac_sha256 is AES-128 in CTR mode with HMAC-SHA256 for authentication. The nonce is 12 bytes; the bottom 32-bits are used as the block counter, thus the maximum plaintext size is 64GB.
-
EVP_aead_aes_128_eax(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_eax is AES-128 in EAX mode. Nonce size is either 12 or 16 bytes, tag length is 16 bytes. See https://doi.org/10.1007/978-3-540-25937-4_25.
-
EVP_aead_aes_128_gcm(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_gcm is AES-128 in Galois Counter Mode.
-
EVP_aead_aes_128_gcm_randnonce(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_gcm_randnonce is AES-128 in Galois Counter Mode with internal nonce generation. The 12-byte nonce is appended to the tag and is generated internally. The "tag", for the purpurses of the API, is thus 12 bytes larger. The nonce parameter when using this AEAD must be zero-length. Since the nonce is random, a single key should not be used for more than 2^32 seal operations.
-
EVP_aead_aes_128_gcm_siv(
) → Pointer< EVP_AEAD> - EVP_aead_aes_128_gcm_siv is AES-128 in GCM-SIV mode. See RFC 8452.
-
EVP_aead_aes_128_gcm_tls12(
) → Pointer< EVP_AEAD> -
The following functions behave like
EVP_aead_aes_128_gcmorEVP_aead_aes_256_gcm, except that seal operations fail if nonces do not match the TLS 1.2 or TLS 1.3 nonce construction. -
EVP_aead_aes_128_gcm_tls13(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_192_gcm(
) → Pointer< EVP_AEAD> - EVP_aead_aes_192_gcm is AES-192 in Galois Counter Mode.
-
EVP_aead_aes_256_cbc_sha1_tls(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_256_cbc_sha1_tls_implicit_iv(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_256_ctr_hmac_sha256(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_256_ctr_hmac_sha256 is AES-256 in CTR mode with HMAC-SHA256 for
authentication. See
EVP_aead_aes_128_ctr_hmac_sha256for details. -
EVP_aead_aes_256_eax(
) → Pointer< EVP_AEAD> - EVP_aead_aes_256_eax is AES-256 in EAX mode. Nonce size is either 12 or 16 bytes, tag length is 16 bytes. See https://doi.org/10.1007/978-3-540-25937-4_25.
-
EVP_aead_aes_256_gcm(
) → Pointer< EVP_AEAD> - EVP_aead_aes_256_gcm is AES-256 in Galois Counter Mode.
-
EVP_aead_aes_256_gcm_randnonce(
) → Pointer< EVP_AEAD> - EVP_aead_aes_256_gcm_randnonce is AES-256 in Galois Counter Mode with internal nonce generation. The 12-byte nonce is appended to the tag and is generated internally. The "tag", for the purpurses of the API, is thus 12 bytes larger. The nonce parameter when using this AEAD must be zero-length. Since the nonce is random, a single key should not be used for more than 2^32 seal operations.
-
EVP_aead_aes_256_gcm_siv(
) → Pointer< EVP_AEAD> - EVP_aead_aes_256_gcm_siv is AES-256 in GCM-SIV mode. See RFC 8452.
-
EVP_aead_aes_256_gcm_tls12(
) → Pointer< EVP_AEAD> -
EVP_aead_aes_256_gcm_tls13(
) → Pointer< EVP_AEAD> -
EVP_aead_chacha20_poly1305(
) → Pointer< EVP_AEAD> - EVP_aead_chacha20_poly1305 is the AEAD built from ChaCha20 and Poly1305 as described in RFC 8439.
-
EVP_AEAD_CTX_aead(
Pointer< EVP_AEAD_CTX> ctx) → Pointer<EVP_AEAD> -
EVP_AEAD_CTX_aead returns the underlying AEAD for
ctx, or NULL if one has not been set. -
EVP_AEAD_CTX_cleanup(
Pointer< EVP_AEAD_CTX> ctx) → void -
EVP_AEAD_CTX_cleanup frees any data allocated by
ctx. It is a no-op to callEVP_AEAD_CTX_cleanupon aEVP_AEAD_CTXthat has beenmemsetto all zeros. -
EVP_AEAD_CTX_free(
Pointer< EVP_AEAD_CTX> ctx) → void -
EVP_AEAD_CTX_free calls
EVP_AEAD_CTX_cleanupandOPENSSL_freeonctx. -
EVP_AEAD_CTX_get_iv(
Pointer< EVP_AEAD_CTX> ctx, Pointer<Pointer< out_iv, Pointer<Uint8> >Size> out_len) → int -
EVP_AEAD_CTX_get_iv sets
*out_lento the length of the IV forctxand sets*out_ivto point to that many bytes of the current IV. This is only meaningful for AEADs with implicit IVs (i.e. CBC mode in TLS 1.0). -
EVP_AEAD_CTX_init(
Pointer< EVP_AEAD_CTX> ctx, Pointer<EVP_AEAD> aead, Pointer<Uint8> key, int key_len, int tag_len, Pointer<ENGINE> impl) → int -
EVP_AEAD_CTX_init initializes
ctxfor the given AEAD algorithm. Theimplargument is ignored and should be NULL. Authentication tags may be truncated by passing a size astag_len. Atag_lenof zero indicates the default tag length and this is defined as EVP_AEAD_DEFAULT_TAG_LENGTH for readability. -
EVP_AEAD_CTX_init_with_direction(
Pointer< EVP_AEAD_CTX> ctx, Pointer<EVP_AEAD> aead, Pointer<Uint8> key, int key_len, int tag_len, int dir) → int -
EVP_AEAD_CTX_init_with_direction calls
EVP_AEAD_CTX_initfor normal AEADs. For TLS-specific AEADs, it initializesctxfor a given direction. -
EVP_AEAD_CTX_new(
Pointer< EVP_AEAD> aead, Pointer<Uint8> key, int key_len, int tag_len) → Pointer<EVP_AEAD_CTX> -
EVP_AEAD_CTX_new allocates an
EVP_AEAD_CTX, callsEVP_AEAD_CTX_initand returns theEVP_AEAD_CTX, or NULL on error. -
EVP_AEAD_CTX_open(
Pointer< EVP_AEAD_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<Uint8> nonce, int nonce_len, Pointer<Uint8> in$, int in_len, Pointer<Uint8> ad, int ad_len) → int -
EVP_AEAD_CTX_open authenticates
in_lenbytes frominandad_lenbytes fromadand decrypts at mostin_lenbytes intoout. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_open_gather(
Pointer< EVP_AEAD_CTX> ctx, Pointer<Uint8> out, Pointer<Uint8> nonce, int nonce_len, Pointer<Uint8> in$, int in_len, Pointer<Uint8> in_tag, int in_tag_len, Pointer<Uint8> ad, int ad_len) → int -
EVP_AEAD_CTX_open_gather decrypts and authenticates
in_lenbytes frominand authenticatesad_lenbytes fromadusingin_tag_lenbytes of authentication tag fromin_tag. If successful, it writesin_lenbytes of plaintext toout. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_openv(
Pointer< EVP_AEAD_CTX> ctx, Pointer<CRYPTO_IOVEC> iovec, int num_iovec, Pointer<Size> out_total_bytes, Pointer<Uint8> nonce, int nonce_len, Pointer<CRYPTO_IVEC> aadvec, int num_aadvec) → int -
EVP_AEAD_CTX_openv authenticates the
inbytes fromiovecandaadvec, and decrypts theinbytes to theoutpointers ofiovec. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_openv_detached(
Pointer< EVP_AEAD_CTX> ctx, Pointer<CRYPTO_IOVEC> iovec, int num_iovec, Pointer<Uint8> nonce, int nonce_len, Pointer<Uint8> in_tag, int in_tag_len, Pointer<CRYPTO_IVEC> aadvec, int num_aadvec) → int -
EVP_AEAD_CTX_openv_detached authenticates the
inbytes fromiovecandaadvecusingin_tag_lenbytes of authentication tag fromin_tag. If successful, it writes the plaintext of theinbytes to theoutpointers ofiovec. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_seal(
Pointer< EVP_AEAD_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<Uint8> nonce, int nonce_len, Pointer<Uint8> in$, int in_len, Pointer<Uint8> ad, int ad_len) → int -
EVP_AEAD_CTX_seal encrypts and authenticates
in_lenbytes frominand authenticatesad_lenbytes fromadand writes the result toout. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_seal_scatter(
Pointer< EVP_AEAD_CTX> ctx, Pointer<Uint8> out, Pointer<Uint8> out_tag, Pointer<Size> out_tag_len, int max_out_tag_len, Pointer<Uint8> nonce, int nonce_len, Pointer<Uint8> in$, int in_len, Pointer<Uint8> extra_in, int extra_in_len, Pointer<Uint8> ad, int ad_len) → int -
EVP_AEAD_CTX_seal_scatter encrypts and authenticates
in_lenbytes frominand authenticatesad_lenbytes fromad. It writesin_lenbytes of ciphertext tooutand the authentication tag toout_tag. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_sealv(
Pointer< EVP_AEAD_CTX> ctx, Pointer<CRYPTO_IOVEC> iovec, int num_iovec, Pointer<Uint8> out_tag, Pointer<Size> out_tag_len, int max_out_tag_len, Pointer<Uint8> nonce, int nonce_len, Pointer<CRYPTO_IVEC> aadvec, int num_aadvec) → int -
EVP_AEAD_CTX_sealv encrypts and authenticates the
inbytes fromiovecand authenticates theaadvecbytes. It writes the same amount of ciphertext to theoutpointers ofiovecand the authentication tag toout_tag. It returns one on success and zero otherwise. -
EVP_AEAD_CTX_tag_len(
Pointer< EVP_AEAD_CTX> ctx, Pointer<Size> out_tag_len, int in_len, int extra_in_len) → int -
EVP_AEAD_CTX_tag_len computes the exact byte length of the tag written by
EVP_AEAD_CTX_seal_scatterand writes it to*out_tag_len. It returns one on success or zero on error.in_lenandextra_in_lenmust equal the arguments of the same names passed toEVP_AEAD_CTX_seal_scatter. -
EVP_AEAD_CTX_zero(
Pointer< EVP_AEAD_CTX> ctx) → void -
EVP_AEAD_CTX_zero sets an uninitialized
ctxto the zero state. It must be initialized withEVP_AEAD_CTX_initbefore use. It is safe, but not necessary, to callEVP_AEAD_CTX_cleanupin this state. This may be used for more uniform cleanup ofEVP_AEAD_CTX. -
EVP_aead_des_ede3_cbc_sha1_tls(
) → Pointer< EVP_AEAD> -
EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv(
) → Pointer< EVP_AEAD> -
EVP_AEAD_key_length(
Pointer< EVP_AEAD> aead) → int -
EVP_AEAD_key_length returns the length, in bytes, of the keys used by
aead. -
EVP_AEAD_max_overhead(
Pointer< EVP_AEAD> aead) → int -
EVP_AEAD_max_overhead returns the maximum number of additional bytes added
by the act of sealing data with
aead. -
EVP_AEAD_max_tag_len(
Pointer< EVP_AEAD> aead) → int -
EVP_AEAD_max_tag_len returns the maximum tag length when using
aead. This is the largest value that can be passed astag_lentoEVP_AEAD_CTX_init. -
EVP_AEAD_nonce_length(
Pointer< EVP_AEAD> aead) → int -
EVP_AEAD_nonce_length returns the length, in bytes, of the per-message nonce
for
aead. -
EVP_aead_xchacha20_poly1305(
) → Pointer< EVP_AEAD> - EVP_aead_xchacha20_poly1305 is ChaCha20-Poly1305 with an extended nonce that makes random generation of nonces safe.
-
EVP_aes_128_cbc(
) → Pointer< EVP_CIPHER> -
EVP_aes_128_ctr(
) → Pointer< EVP_CIPHER> -
EVP_aes_128_ecb(
) → Pointer< EVP_CIPHER> -
EVP_aes_128_gcm(
) → Pointer< EVP_CIPHER> -
These AEADs are deprecated AES-GCM implementations that set
EVP_CIPH_FLAG_CUSTOM_CIPHER. UseEVP_aead_aes_128_gcmandEVP_aead_aes_256_gcminstead. -
EVP_aes_128_ofb(
) → Pointer< EVP_CIPHER> -
EVP_aes_192_cbc(
) → Pointer< EVP_CIPHER> -
EVP_aes_192_ctr(
) → Pointer< EVP_CIPHER> -
EVP_aes_192_ecb(
) → Pointer< EVP_CIPHER> - These are deprecated, 192-bit version of AES.
-
EVP_aes_192_gcm(
) → Pointer< EVP_CIPHER> -
EVP_aes_192_ofb(
) → Pointer< EVP_CIPHER> -
EVP_aes_256_cbc(
) → Pointer< EVP_CIPHER> -
EVP_aes_256_ctr(
) → Pointer< EVP_CIPHER> -
EVP_aes_256_ecb(
) → Pointer< EVP_CIPHER> -
EVP_aes_256_gcm(
) → Pointer< EVP_CIPHER> -
EVP_aes_256_ofb(
) → Pointer< EVP_CIPHER> -
EVP_blake2b256(
) → Pointer< EVP_MD> -
EVP_BytesToKey(
Pointer< EVP_CIPHER> type, Pointer<EVP_MD> md, Pointer<Uint8> salt, Pointer<Uint8> data, int data_len, int count, Pointer<Uint8> key, Pointer<Uint8> iv) → int -
EVP_BytesToKey generates a key and IV for the cipher
typeby iteratingmdcounttimes usingdataand an optionalsalt, writing the result tokeyandiv. If not NULL, thekeyandivbuffers must have enough space to hold a key and IV fortype, as returned byEVP_CIPHER_key_lengthandEVP_CIPHER_iv_length. This function returns the length of the key (without the IV) on success or zero on error. -
EVP_Cipher(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Uint8> in$, int in_len) → int -
EVP_Cipher historically exposed an internal implementation detail of
ctxand should not be used. UseEVP_CipherUpdateandEVP_CipherFinal_exinstead. -
EVP_CIPHER_block_size(
Pointer< EVP_CIPHER> cipher) → int -
EVP_CIPHER_block_size returns the block size, in bytes, for
cipher, or one ifcipheris a stream cipher. -
EVP_CIPHER_CTX_block_size(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_block_size returns the block size, in bytes, of the cipher
underlying
ctx, or one if the cipher is a stream cipher. It will crash if no cipher has been configured. -
EVP_CIPHER_CTX_cipher(
Pointer< EVP_CIPHER_CTX> ctx) → Pointer<EVP_CIPHER> -
EVP_CIPHER_CTX_cipher returns the
EVP_CIPHERunderlyingctx, or NULL if none has been set. -
EVP_CIPHER_CTX_cleanup(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_cleanup frees any memory referenced by
ctx. It returns one. -
EVP_CIPHER_CTX_copy(
Pointer< EVP_CIPHER_CTX> out, Pointer<EVP_CIPHER_CTX> in$) → int -
EVP_CIPHER_CTX_copy sets
outto be a duplicate of the current state ofin. Theoutargument must have been previously initialised, e.g. withEVP_CIPHER_CTX_initorEVP_CIPHER_CTX_new. -
EVP_CIPHER_CTX_ctrl(
Pointer< EVP_CIPHER_CTX> ctx, int command, int arg, Pointer<Void> ptr) → int -
EVP_CIPHER_CTX_ctrl is an
ioctllike function. Thecommandargument should be one of theEVP_CTRL_*values. Theargandptrarguments are specific to the command in question. -
EVP_CIPHER_CTX_encrypting(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_encrypting returns one if
ctxis configured for encryption and zero otherwise. -
EVP_CIPHER_CTX_flags(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_flags returns a value which is the OR of zero or more
EVP_CIPH_*flags. It will crash if no cipher has been configured. -
EVP_CIPHER_CTX_free(
Pointer< EVP_CIPHER_CTX> ctx) → void -
EVP_CIPHER_CTX_free calls
EVP_CIPHER_CTX_cleanuponctxand then freesctxitself. -
EVP_CIPHER_CTX_get_app_data(
Pointer< EVP_CIPHER_CTX> ctx) → Pointer<Void> -
EVP_CIPHER_CTX_get_app_data returns the opaque, application data pointer for
ctx, or NULL if none has been set. -
EVP_CIPHER_CTX_init(
Pointer< EVP_CIPHER_CTX> ctx) → void -
EVP_CIPHER_CTX_init sets an uninitialized
EVP_CIPHER_CTXto the zero state. This is the same as setting the structure to zero. -
EVP_CIPHER_CTX_iv_length(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_iv_length returns the IV size, in bytes, of the cipher
underlying
ctx. It will crash if no cipher has been configured. -
EVP_CIPHER_CTX_key_length(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_key_length returns the key size, in bytes, of the cipher
underlying
ctxor zero if no cipher has been configured. -
EVP_CIPHER_CTX_max_final(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_max_final returns the maximum number of bytes that may
be output from
ctxby a call toEVP_CipherFinal_ex2. This takes the current state ofctxinto account, so the output will change as bytes are passed in and out. -
EVP_CIPHER_CTX_max_next_update(
Pointer< EVP_CIPHER_CTX> ctx, int in_len) → int -
EVP_CIPHER_CTX_max_next_update returns the maximum number of bytes that may
be output from
ctxby a call toEVP_CipherUpdate_exwithin_lenbytes of input. This takes the current state ofctxinto account, so the output will change as bytes are passed in and out. -
EVP_CIPHER_CTX_mode(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_mode returns one of the
EVP_CIPH_*cipher mode values enumerated below. It will crash if no cipher has been configured. -
EVP_CIPHER_CTX_new(
) → Pointer< EVP_CIPHER_CTX> -
EVP_CIPHER_CTX_new returns a newly-allocated
EVP_CIPHER_CTXin the zero state, or NULL on allocation failure. The caller must useEVP_CIPHER_CTX_freeto release the resulting object. -
EVP_CIPHER_CTX_nid(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_nid returns a NID identifying the
EVP_CIPHERunderlyingctx(e.g.NID_aes_128_gcm). It will crash if no cipher has been configured. -
EVP_CIPHER_CTX_reset(
Pointer< EVP_CIPHER_CTX> ctx) → int -
EVP_CIPHER_CTX_reset calls
EVP_CIPHER_CTX_cleanupfollowed byEVP_CIPHER_CTX_initand returns one. -
EVP_CIPHER_CTX_set_app_data(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Void> data) → void -
EVP_CIPHER_CTX_set_app_data sets the opaque, application data pointer for
ctxtodata. -
EVP_CIPHER_CTX_set_flags(
Pointer< EVP_CIPHER_CTX> ctx, int flags) → void - EVP_CIPHER_CTX_set_flags does nothing.
-
EVP_CIPHER_CTX_set_key_length(
Pointer< EVP_CIPHER_CTX> ctx, int key_len) → int -
EVP_CIPHER_CTX_set_key_length sets the key length for
ctx. This is only valid for ciphers that can take a variable length key. It returns one on success and zero on error. -
EVP_CIPHER_CTX_set_padding(
Pointer< EVP_CIPHER_CTX> ctx, int pad) → int -
EVP_CIPHER_CTX_set_padding sets whether padding is enabled for
ctxand returns one. Pass a non-zeropadto enable padding (the default) or zero to disable. -
EVP_CIPHER_flags(
Pointer< EVP_CIPHER> cipher) → int -
EVP_CIPHER_flags returns a value which is the OR of zero or more
EVP_CIPH_*flags. -
EVP_CIPHER_iv_length(
Pointer< EVP_CIPHER> cipher) → int -
EVP_CIPHER_iv_length returns the IV size, in bytes, of
cipher, or zero ifcipherdoesn't take an IV. -
EVP_CIPHER_key_length(
Pointer< EVP_CIPHER> cipher) → int -
EVP_CIPHER_key_length returns the key size, in bytes, for
cipher. Ifciphercan take a variable key length then this function returns the default key length andEVP_CIPHER_flagswill return a value withEVP_CIPH_VARIABLE_LENGTHset. -
EVP_CIPHER_mode(
Pointer< EVP_CIPHER> cipher) → int - EVP_CIPHER_mode returns one of the cipher mode values enumerated below.
-
EVP_CIPHER_nid(
Pointer< EVP_CIPHER> cipher) → int -
EVP_CIPHER_nid returns a NID identifying
cipher. (For example,NID_aes_128_gcm.) -
EVP_CipherFinal(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_CipherFinal calls
EVP_CipherFinal_ex. -
EVP_CipherFinal_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_CipherFinal_ex does the same as
EVP_CipherFinal_ex2, except that no output size is given and thus no bounds checking is performed. -
EVP_CipherFinal_ex2(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len) → int -
EVP_CipherFinal_ex2 calls either
EVP_EncryptFinal_ex2orEVP_DecryptFinal_ex2depending on howctxhas been setup. -
EVP_CipherInit(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<EVP_CIPHER> cipher, Pointer<Uint8> key, Pointer<Uint8> iv, int enc) → int -
EVP_CipherInit acts like
EVP_CipherInit_exexcept thatEVP_CIPHER_CTX_initis called oncipherfirst, ifcipheris not NULL. -
EVP_CipherInit_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<EVP_CIPHER> cipher, Pointer<ENGINE> engine, Pointer<Uint8> key, Pointer<Uint8> iv, int enc) → int -
EVP_CipherInit_ex configures
ctxfor a fresh encryption (or decryption, ifencis zero) operation usingcipher. The memory inctxmust already have been initialized, e.g. withEVP_CIPHER_CTX_initorEVP_CIPHER_CTX_new. If non-NULL,keyandivwill be used as the key and IV, respectively. These must point toEVP_CIPHER_key_lengthandEVP_CIPHER_iv_lengthbytes, respectively. It returns one on success and zero on error. -
EVP_CipherUpdate(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_CipherUpdate does the same as
EVP_CipherUpdate_ex, except that no output size is given and thus no bounds checking is performed. -
EVP_CipherUpdate_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_CipherUpdate_ex calls either
EVP_EncryptUpdate_exorEVP_DecryptUpdate_exdepending on howctxhas been setup. -
EVP_CipherUpdateAAD(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> in$, int in_len) → int -
EVP_CipherUpdateAAD adds
in_lenbytes frominto the AAD. The AAD must be fully specified in this way before any plaintext or ciphertext is supplied to the other functions. Please consider moving to theEVP_AEADAPIs instead. -
EVP_cleanup(
) → void - EVP_cleanup does nothing.
-
EVP_DecodeBase64(
Pointer< Uint8> out, Pointer<Size> out_len, int max_out, Pointer<Uint8> in$, int in_len) → int -
EVP_DecodeBase64 decodes
in_lenbytes from base64 and writes*out_lenbytes toout.max_outis the size of the output buffer. If it is not enough for the maximum output size, the operation fails. It returns one on success or zero on error. -
EVP_DecodeBlock(
Pointer< Uint8> dst, Pointer<Uint8> src, int src_len) → int -
EVP_DecodeBlock encodes
src_lenbytes fromsrcand writes the result todst. It returns the number of bytes written or -1 on error. -
EVP_DecodedLength(
Pointer< Size> out_len, int len) → int -
EVP_DecodedLength sets
*out_lento the maximum number of bytes that will be needed to callEVP_DecodeBase64on an input of lengthlen. It returns one on success or zero iflenis not a valid length for a base64-encoded string. -
EVP_DecodeFinal(
Pointer< EVP_ENCODE_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_DecodeFinal flushes any remaining output bytes from
ctxtooutand sets*out_lento the number of bytes written. It returns one on success and minus one on error. -
EVP_DecodeInit(
Pointer< EVP_ENCODE_CTX> ctx) → void -
EVP_DecodeInit initialises
*ctx, which is typically stack allocated, for a decoding operation. -
EVP_DecodeUpdate(
Pointer< EVP_ENCODE_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_DecodeUpdate decodes
in_lenbytes frominand writes the decoded data tooutand sets*out_lento the number of bytes written. Some state may be contained inctxsoEVP_DecodeFinalmust be used to flush it before using the encoded data. -
EVP_DecryptFinal(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_DecryptFinal calls
EVP_DecryptFinal_ex. -
EVP_DecryptFinal_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_DecryptFinal_ex does the same as
EVP_DecryptFinal_ex2, except that no output size is given and thus no bounds checking is performed. -
EVP_DecryptFinal_ex2(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len) → int -
EVP_DecryptFinal_ex2 finishes a decryption operation and writes up to
max_out_lenbytes of output to out. On success, it sets*out_lento the number of bytes written and returns one. Otherwise, it returns zero. -
EVP_DecryptInit(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<EVP_CIPHER> cipher, Pointer<Uint8> key, Pointer<Uint8> iv) → int -
EVP_DecryptInit calls
EVP_CipherInitwithencequal to zero. -
EVP_DecryptInit_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<EVP_CIPHER> cipher, Pointer<ENGINE> impl, Pointer<Uint8> key, Pointer<Uint8> iv) → int -
EVP_DecryptInit_ex calls
EVP_CipherInit_exwithencequal to zero. -
EVP_DecryptUpdate(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_DecryptUpdate does the same as
EVP_DecryptUpdate_ex, except that no output size is given and thus no bounds checking is performed. -
EVP_DecryptUpdate_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_DecryptUpdate_ex decrypts
in_lenbytes frominand writes up tomax_out_lenbytes of plaintext toout. On success, it sets*out_lento the number of output bytes and returns one. Otherwise, it returns zero. -
EVP_default_properties_is_fips_enabled(
Pointer< OSSL_LIB_CTX> libctx) → int -
EVP_default_properties_is_fips_enabled calls
FIPS_mode. -
EVP_des_cbc(
) → Pointer< EVP_CIPHER> -
EVP_des_ecb(
) → Pointer< EVP_CIPHER> -
EVP_des_ede(
) → Pointer< EVP_CIPHER> -
EVP_des_ede3(
) → Pointer< EVP_CIPHER> -
EVP_des_ede3_cbc(
) → Pointer< EVP_CIPHER> -
EVP_des_ede3_ecb(
) → Pointer< EVP_CIPHER> -
EVP_des_ede3_ecb is an alias for
EVP_des_ede3. Use the former instead. -
EVP_des_ede_cbc(
) → Pointer< EVP_CIPHER> -
EVP_Digest(
Pointer< Void> data, int len, Pointer<Uint8> md_out, Pointer<UnsignedInt> md_out_size, Pointer<EVP_MD> type, Pointer<ENGINE> impl) → int -
EVP_Digest performs a complete hashing operation in one call. It hashes
lenbytes fromdataand writes the digest tomd_out.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_sizeis not NULL then*out_sizeis set to the number of bytes written. It returns one on success and zero otherwise. -
EVP_DigestFinal(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> md_out, Pointer<UnsignedInt> out_size) → int -
EVP_DigestFinal acts like
EVP_DigestFinal_exexcept thatEVP_MD_CTX_cleanupis called onctxbefore returning. -
EVP_DigestFinal_ex(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> md_out, Pointer<UnsignedInt> out_size) → int -
EVP_DigestFinal_ex finishes the digest in
ctxand writes the output tomd_out.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_sizeis not NULL then*out_sizeis set to the number of bytes written. It returns one. After this call, the hash cannot be updated or finished again untilEVP_DigestInit_exis called to start another hashing operation. -
EVP_DigestFinalXOF(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> out, int len) → int -
EVP_DigestFinalXOF behaves like
EVP_DigestSqueezebut callsEVP_MD_CTX_cleanupafter being called, so it is not possible to call it multiple times. -
EVP_DigestInit(
Pointer< EVP_MD_CTX> ctx, Pointer<EVP_MD> type) → int -
EVP_DigestInit calls
EVP_MD_CTX_init, followed byEVP_DigestInit_ex. -
EVP_DigestInit_ex(
Pointer< EVP_MD_CTX> ctx, Pointer<EVP_MD> type, Pointer<ENGINE> engine) → int -
EVP_DigestInit_ex configures
ctx, whose memory must already have been initialised (e.g. withEVP_MD_CTX_initorEVP_MD_CTX_new), for a fresh hashing operation usingtype. It returns one on success and zero on allocation failure. -
EVP_DigestSign(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> out_sig, Pointer<Size> out_sig_len, Pointer<Uint8> data, int data_len) → int -
EVP_DigestSign signs
data_lenbytes fromdatausingctx. Ifout_sigis NULL then*out_sig_lenis set to the maximum number of output bytes. Otherwise, on entry,*out_sig_lenmust contain the length of theout_sigbuffer. If the call is successful, the signature is written toout_sigand*out_sig_lenis set to its length. -
EVP_DigestSignFinal(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> out_sig, Pointer<Size> out_sig_len) → int -
EVP_DigestSignFinal signs the data that has been included by one or more
calls to
EVP_DigestSignUpdate. Ifout_sigis NULL then*out_sig_lenis set to the maximum number of output bytes. Otherwise, on entry,*out_sig_lenmust contain the length of theout_sigbuffer. If the call is successful, the signature is written toout_sigand*out_sig_lenis set to its length. -
EVP_DigestSignInit(
Pointer< EVP_MD_CTX> ctx, Pointer<Pointer< pctx, Pointer<EVP_PKEY_CTX> >EVP_MD> type, Pointer<ENGINE> e, Pointer<EVP_PKEY> pkey) → int -
EVP_DigestSignInit sets up
ctxfor a signing operation withtypeandpkey. Thectxargument must have been initialised withEVP_MD_CTX_init. Ifpctxis not NULL, theEVP_PKEY_CTXof the signing operation will be written to*pctx; this can be used to set alternative signing options. -
EVP_DigestSignUpdate(
Pointer< EVP_MD_CTX> ctx, Pointer<Void> data, int len) → int -
EVP_DigestSignUpdate appends
lenbytes fromdatato the data which will be signed inEVP_DigestSignFinal. It returns one. -
EVP_DigestSqueeze(
Pointer< EVP_MD_CTX> ctx, Pointer<UnsignedChar> out, int len) → int -
EVP_DigestSqueeze writes len bytes of output from
ctxtooutand returns one. This operation is only implemented ifctxwas initialized with an extendable-output function, which can return arbitrarily long outputs. If not, this function returns zero. This function may be repeated to split its output over multiple calls. Doing so will give the same output as concatenating the calls into a single call. -
EVP_DigestUpdate(
Pointer< EVP_MD_CTX> ctx, Pointer<Void> data, int len) → int -
EVP_DigestUpdate hashes
lenbytes fromdatainto the hashing operation inctx. It returns one. -
EVP_DigestVerify(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> sig, int sig_len, Pointer<Uint8> data, int len) → int -
EVP_DigestVerify verifies that
sig_lenbytes fromsigare a valid signature fordata. It returns one on success or zero on error. -
EVP_DigestVerifyFinal(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> sig, int sig_len) → int -
EVP_DigestVerifyFinal verifies that
sig_lenbytes ofsigare a valid signature for the data that has been included by one or more calls toEVP_DigestVerifyUpdate. It returns one on success and zero otherwise. -
EVP_DigestVerifyInit(
Pointer< EVP_MD_CTX> ctx, Pointer<Pointer< pctx, Pointer<EVP_PKEY_CTX> >EVP_MD> type, Pointer<ENGINE> e, Pointer<EVP_PKEY> pkey) → int -
EVP_DigestVerifyInit sets up
ctxfor a signature verification operation withtypeandpkey. Thectxargument must have been initialised withEVP_MD_CTX_init. Ifpctxis not NULL, theEVP_PKEY_CTXof the signing operation will be written to*pctx; this can be used to set alternative signing options. -
EVP_DigestVerifyUpdate(
Pointer< EVP_MD_CTX> ctx, Pointer<Void> data, int len) → int -
EVP_DigestVerifyUpdate appends
lenbytes fromdatato the data which will be verified byEVP_DigestVerifyFinal. It returns one. -
EVP_enc_null(
) → Pointer< EVP_CIPHER> - EVP_enc_null returns a 'cipher' that passes plaintext through as ciphertext.
-
EVP_ENCODE_CTX_free(
Pointer< EVP_ENCODE_CTX> ctx) → void -
EVP_ENCODE_CTX_free releases memory associated with
ctx. -
EVP_ENCODE_CTX_new(
) → Pointer< EVP_ENCODE_CTX> -
EVP_ENCODE_CTX_new returns a newly-allocated
EVP_ENCODE_CTXor NULL on error. The caller must release the result withEVP_ENCODE_CTX_freewhen done. -
EVP_EncodeBlock(
Pointer< Uint8> dst, Pointer<Uint8> src, int src_len) → int -
EVP_EncodeBlock encodes
src_lenbytes fromsrcand writes the result todstwith a trailing NUL. It returns the number of bytes written, not including this trailing NUL. -
EVP_EncodedLength(
Pointer< Size> out_len, int len) → int -
EVP_EncodedLength sets
*out_lento the number of bytes that will be needed to callEVP_EncodeBlockon an input of lengthlen. This includes the final NUL thatEVP_EncodeBlockwrites. It returns one on success or zero on error. -
EVP_EncodeFinal(
Pointer< EVP_ENCODE_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → void -
EVP_EncodeFinal flushes any remaining output bytes from
ctxtooutand sets*out_lento the number of bytes written. -
EVP_EncodeInit(
Pointer< EVP_ENCODE_CTX> ctx) → void -
EVP_EncodeInit initialises
*ctx, which is typically stack allocated, for an encoding operation. -
EVP_EncodeUpdate(
Pointer< EVP_ENCODE_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len, Pointer<Uint8> in$, int in_len) → void -
EVP_EncodeUpdate encodes
in_lenbytes frominand writes an encoded version of them tooutand sets*out_lento the number of bytes written. Some state may be contained inctxsoEVP_EncodeFinalmust be used to flush it before using the encoded data. -
EVP_EncryptFinal(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_EncryptFinal calls
EVP_EncryptFinal_ex. -
EVP_EncryptFinal_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len) → int -
EVP_EncryptFinal_ex does the same as
EVP_EncryptFinal_ex2, except that no output size is given and thus no bounds checking is performed. -
EVP_EncryptFinal_ex2(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len) → int -
EVP_EncryptFinal_ex2 finishes an encryption operation and writes up to
max_out_lenbytes of output to out. On success, it sets*out_lento the number of bytes written and returns one. Otherwise, it returns zero. -
EVP_EncryptInit(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<EVP_CIPHER> cipher, Pointer<Uint8> key, Pointer<Uint8> iv) → int -
EVP_EncryptInit calls
EVP_CipherInitwithencequal to one. -
EVP_EncryptInit_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<EVP_CIPHER> cipher, Pointer<ENGINE> impl, Pointer<Uint8> key, Pointer<Uint8> iv) → int -
EVP_EncryptInit_ex calls
EVP_CipherInit_exwithencequal to one. -
EVP_EncryptUpdate(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Int> out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_EncryptUpdate does the same as
EVP_EncryptUpdate_ex, except that no output size is given and thus no bounds checking is performed. -
EVP_EncryptUpdate_ex(
Pointer< EVP_CIPHER_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_EncryptUpdate_ex encrypts
in_lenbytes frominand writes up tomax_out_lenbytes of ciphertext toout. On success, it sets*out_lento the number of output bytes and returns one. Otherwise, it returns zero. -
EVP_get_cipherbyname(
Pointer< Char> name) → Pointer<EVP_CIPHER> -
EVP_get_cipherbyname returns an
EVP_CIPHERgiven a human readable name inname, or NULL if the name is unknown. Note using this function links almost every cipher implemented by BoringSSL into the binary, not just the ones the caller requests. Size-conscious callers, such as client software, should not use this function. -
EVP_get_cipherbynid(
int nid) → Pointer< EVP_CIPHER> - EVP_get_cipherbynid returns the cipher corresponding to the given NID, or NULL if no such cipher is known. Note using this function links almost every cipher implemented by BoringSSL into the binary, whether the caller uses them or not. Size-conscious callers, such as client software, should not use this function.
-
EVP_get_digestbyname(
Pointer< Char> name) → Pointer<EVP_MD> -
EVP_get_digestbyname returns an
EVP_MDgiven a human readable name inname, or NULL if the name is unknown. -
EVP_get_digestbynid(
int nid) → Pointer< EVP_MD> -
EVP_get_digestbynid returns an
EVP_MDfor the given NID, or NULL if no such digest is known. -
EVP_get_digestbyobj(
Pointer< ASN1_OBJECT> obj) → Pointer<EVP_MD> -
EVP_get_digestbyobj returns an
EVP_MDfor the givenASN1_OBJECT, or NULL if no such digest is known. -
EVP_has_aes_hardware(
) → int - EVP_has_aes_hardware returns one if we enable hardware support for fast and constant-time AES-GCM.
-
EVP_KEM_ciphertext_len(
Pointer< EVP_KEM> kem) → int -
EVP_KEM_ciphertext_len returns the fixed length, in bytes, of a ciphertext
produced and consumed by
kem. -
EVP_KEM_decap(
Pointer< EVP_KEM> kem, Pointer<Uint8> out_secret, int secret_len, Pointer<Uint8> ciphertext, int ciphertext_len, Pointer<EVP_PKEY> key) → int -
EVP_KEM_decap uses
kemto decapsulate aciphertextof lengthciphertext_len, usingkeyas a decapsulation key. It outputs a shared secret of lengthsecret_leninto*out_secret.keymust be a private key of the type expected bykem.secret_lenmust match the output ofEVP_KEM_secret_lenwhen called withkem. This function returns one on success or zero on failure. Ifciphertexthas been corrupted, the function may fail or it may output a shared secret that appears to be random. Any subsequent symmetric encryption using*out_secretmust use an authenticated encryption scheme in order to discover the decapsulation failure. -
EVP_KEM_encap(
Pointer< EVP_KEM> kem, Pointer<Uint8> out_ciphertext, int ciphertext_len, Pointer<Uint8> out_secret, int secret_len, Pointer<EVP_PKEY> peer_key) → int -
EVP_KEM_encap uses
kemto encapsulate apeer_key. It outputs a ciphertext of lengthciphertext_leninto*out_ciphertextand outputs a shared secret of lengthsecret_leninto*out_secret.peer_keymust be a public key of the type expected bykem.ciphertext_lenandsecret_lenmust match the output ofEVP_KEM_ciphertext_lenandEVP_KEM_secret_len, respectively, when called withkem. This function returns one on success or zero on failure. -
EVP_KEM_encap_external_entropy_for_testing(
Pointer< EVP_KEM> kem, Pointer<Uint8> out_ciphertext, int ciphertext_len, Pointer<Uint8> out_secret, int secret_len, Pointer<EVP_PKEY> peer_key, Pointer<Uint8> entropy, int entropy_len) → int -
EVP_KEM_encap_external_entropy_for_testing behaves like
EVP_KEM_encap, but takesentropy_lenbytes of externalentropyto behave deterministically for testing. The format ofentropydepends onkem.entropy_lenmust match the output ofEVP_KEM_entropy_len_for_testingwhen called withkem. -
EVP_KEM_entropy_len_for_testing(
Pointer< EVP_KEM> kem) → int -
EVP_KEM_entropy_len_for_testing returns the fixed length, in bytes, of the
external entropy to provide to
EVP_KEM_encap_external_entropy_for_testing. -
EVP_kem_ml_kem_1024(
) → Pointer< EVP_KEM> -
EVP_kem_ml_kem_768(
) → Pointer< EVP_KEM> - EVP_kem_ml_kem_* implement ML-KEM, defined in FIPS 203.
-
EVP_KEM_secret_len(
Pointer< EVP_KEM> kem) → int -
EVP_KEM_secret_len returns the fixed length, in bytes, of the shared
secret produced and consumed by
kem. -
EVP_kem_xwing(
) → Pointer< EVP_KEM> - EVP_kem_xwing implements the hybrid KEM known as X-Wing or MLKEM768-X25519, defined in draft-irtf-cfrg-concrete-hybrid-kems.
-
EVP_marshal_digest_algorithm(
Pointer< CBB> cbb, Pointer<EVP_MD> md) → int -
EVP_marshal_digest_algorithm marshals
mdas an AlgorithmIdentifier structure and appends the result tocbb. It returns one on success and zero on error. It sets the parameters field to NULL. UseEVP_marshal_digest_algorithm_no_paramsto omit the parameters instead. -
EVP_marshal_digest_algorithm_no_params(
Pointer< CBB> cbb, Pointer<EVP_MD> md) → int -
EVP_marshal_digest_algorithm_no_params behaves like
EVP_marshal_digest_algorithmbut omits the parameters field. -
EVP_marshal_private_key(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
EVP_marshal_private_key marshals
keyas a DER-encoded PrivateKeyInfo structure (RFC 5208) and appends the result tocbb. It returns one on success and zero on error. -
EVP_marshal_public_key(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
EVP_marshal_public_key marshals
keyas a DER-encoded SubjectPublicKeyInfo structure (RFC 5280) and appends the result tocbb. It returns one on success and zero on error. -
EVP_md4(
) → Pointer< EVP_MD> - Hash algorithms.
-
EVP_md5(
) → Pointer< EVP_MD> -
EVP_md5_sha1(
) → Pointer< EVP_MD> -
EVP_md5_sha1 is a TLS-specific
EVP_MDwhich computes the concatenation of MD5 and SHA-1, as used in TLS 1.1 and below. -
EVP_MD_block_size(
Pointer< EVP_MD> md) → int -
EVP_MD_block_size returns the native block-size of
md, in bytes. -
EVP_MD_CTX_block_size(
Pointer< EVP_MD_CTX> ctx) → int -
EVP_MD_CTX_block_size returns the block size of the digest function used by
ctx, in bytes. It will crash if a digest hasn't been set onctx. -
EVP_MD_CTX_cleanse(
Pointer< EVP_MD_CTX> ctx) → void -
EVP_MD_CTX_cleanse zeros the digest state in
ctxand then performs the actions ofEVP_MD_CTX_cleanup. Note that someEVP_MD_CTXobjects contain more than just a digest (e.g. those resulting fromEVP_DigestSignInit) but this function does not zero out more than just the digest state even in that case. -
EVP_MD_CTX_cleanup(
Pointer< EVP_MD_CTX> ctx) → int -
EVP_MD_CTX_cleanup frees any resources owned by
ctxand resets it to the zero state. It does not freectxitself. It returns one. -
EVP_MD_CTX_copy(
Pointer< EVP_MD_CTX> out, Pointer<EVP_MD_CTX> in$) → int -
EVP_MD_CTX_copy calls
EVP_MD_CTX_init, followed byEVP_MD_CTX_copy_ex. -
EVP_MD_CTX_copy_ex(
Pointer< EVP_MD_CTX> out, Pointer<EVP_MD_CTX> in$) → int -
EVP_MD_CTX_copy_ex sets
outto be a copy ofin. It returns one on success and zero on allocation failure.outmust have been previously initialized, e.g. withEVP_MD_CTX_initorEVP_MD_CTX_new. -
EVP_MD_CTX_create(
) → Pointer< EVP_MD_CTX> -
EVP_MD_CTX_create calls
EVP_MD_CTX_new. -
EVP_MD_CTX_destroy(
Pointer< EVP_MD_CTX> ctx) → void -
EVP_MD_CTX_destroy calls
EVP_MD_CTX_free. -
EVP_MD_CTX_free(
Pointer< EVP_MD_CTX> ctx) → void -
EVP_MD_CTX_free calls
EVP_MD_CTX_cleanupand then freesctxitself. -
EVP_MD_CTX_get0_md(
Pointer< EVP_MD_CTX> ctx) → Pointer<EVP_MD> - EVP_MD_CTX_get0_md returns the underlying digest function, or NULL if one has not been set.
-
EVP_MD_CTX_init(
Pointer< EVP_MD_CTX> ctx) → void -
EVP_MD_CTX_init sets an uninitialized
EVP_MD_CTXto the zero state. This is the same as setting the structure to zero. -
EVP_MD_CTX_md(
Pointer< EVP_MD_CTX> ctx) → Pointer<EVP_MD> -
EVP_MD_CTX_md returns the underlying digest function, or NULL if one has not
been set. (This is the same as
EVP_MD_CTX_get0_mdbut OpenSSL has deprecated this spelling.) -
EVP_MD_CTX_move(
Pointer< EVP_MD_CTX> out, Pointer<EVP_MD_CTX> in$) → void -
EVP_MD_CTX_move sets
out, which must already be initialised, to the hash state inin.inis mutated and left in an empty state. -
EVP_MD_CTX_new(
) → Pointer< EVP_MD_CTX> -
EVP_MD_CTX_new returns a newly-allocated
EVP_MD_CTXin the zero state, or NULL on allocation failure. The caller must useEVP_MD_CTX_freeto release the resulting object. -
EVP_MD_CTX_pkey_ctx(
Pointer< EVP_MD_CTX> ctx) → Pointer<EVP_PKEY_CTX> -
EVP_MD_CTX_pkey_ctx returns the
EVP_PKEY_CTXused to configure additional parameters onctxifctxis used for a sign or verify operation withEVP_DigestSignInitorEVP_DigestVerifyInit. It returns NULL otherwise. -
EVP_MD_CTX_reset(
Pointer< EVP_MD_CTX> ctx) → int -
EVP_MD_CTX_reset calls
EVP_MD_CTX_cleanupfollowed byEVP_MD_CTX_init. It returns one. -
EVP_MD_CTX_set_flags(
Pointer< EVP_MD_CTX> ctx, int flags) → void - EVP_MD_CTX_set_flags does nothing.
-
EVP_MD_CTX_size(
Pointer< EVP_MD_CTX> ctx) → int -
EVP_MD_CTX_size returns the digest size of
ctx, in bytes. It will crash if a digest hasn't been set onctx. -
EVP_MD_CTX_type(
Pointer< EVP_MD_CTX> ctx) → int -
EVP_MD_CTX_type returns a NID describing the digest function used by
ctx. (For example,NID_sha256.) It will crash if a digest hasn't been set onctx. -
EVP_MD_fetch(
Pointer< OSSL_LIB_CTX> libctx, Pointer<Char> name, Pointer<Char> propq) → Pointer<EVP_MD> -
EVP_MD_fetch behaves like
EVP_get_digestbyname.libctxandpropqare ignored. Although it returns a non-const pointer,EVP_MDs in BoringSSL are static and do not need to be freed. -
EVP_MD_flags(
Pointer< EVP_MD> md) → int -
EVP_MD_flags returns the flags for
md, which is a set ofEVP_MD_FLAG_*values, ORed together. -
EVP_MD_free(
Pointer< EVP_MD> md) → void -
EVP_MD_free does nothing.
EVP_MDs in BoringSSL are static. -
EVP_MD_meth_get_flags(
Pointer< EVP_MD> md) → int -
EVP_MD_meth_get_flags calls
EVP_MD_flags. -
EVP_MD_nid(
Pointer< EVP_MD> md) → int -
EVP_MD_nid calls
EVP_MD_type. -
EVP_MD_size(
Pointer< EVP_MD> md) → int -
EVP_MD_size returns the digest size of
md, in bytes. -
EVP_MD_type(
Pointer< EVP_MD> md) → int -
EVP_MD_type returns a NID identifying
md. (For example,NID_sha256.) -
EVP_MD_up_ref(
Pointer< EVP_MD> md) → int -
EVP_MD_up_ref returns one.
EVP_MDs in BoringSSL are static. -
EVP_parse_digest_algorithm(
Pointer< CBS> cbs) → Pointer<EVP_MD> -
EVP_parse_digest_algorithm parses an AlgorithmIdentifier structure containing
a hash function OID (for example, 2.16.840.1.101.3.4.2.1 is SHA-256) and
advances
cbs. The parameters field may either be omitted or a NULL. It returns the digest function or NULL on error. -
EVP_parse_digest_algorithm_nid(
Pointer< CBS> cbs) → int -
EVP_parse_digest_algorithm_nid behaves like
EVP_parse_digest_algorithmexcept it returnsNID_undefon error and some other value on success. This may be used to avoid depending on every digest algorithm in the library. -
EVP_parse_private_key(
Pointer< CBS> cbs) → Pointer<EVP_PKEY> -
EVP_parse_private_key decodes a DER-encoded PrivateKeyInfo structure (RFC
5208) from
cbsand advancescbs. It returns a newly-allocatedEVP_PKEYor NULL on error. -
EVP_parse_public_key(
Pointer< CBS> cbs) → Pointer<EVP_PKEY> -
EVP_parse_public_key decodes a DER-encoded SubjectPublicKeyInfo structure
(RFC 5280) from
cbsand advancescbs. It returns a newly-allocatedEVP_PKEYor NULL on error. -
EVP_PBE_scrypt(
Pointer< Char> password, int password_len, Pointer<Uint8> salt, int salt_len, int N, int r, int p, int max_mem, Pointer<Uint8> out_key, int key_len) → int -
EVP_PBE_scrypt expands
passwordinto a secret key of lengthkey_lenusing scrypt, as described in RFC 7914, and writes the result toout_key. It returns one on success and zero on allocation failure, if the memory required for the operation exceedsmax_mem, or if any of the parameters are invalid as described below. -
EVP_PKCS82PKEY(
Pointer< PKCS8_PRIV_KEY_INFO> p8) → Pointer<EVP_PKEY> -
EVP_PKCS82PKEY returns
p8as a newly-allocatedEVP_PKEY, or NULL if the key was unsupported or could not be decoded. The caller must release the result withEVP_PKEY_freewhen done. -
EVP_PKEY2PKCS8(
Pointer< EVP_PKEY> pkey) → Pointer<PKCS8_PRIV_KEY_INFO> -
EVP_PKEY2PKCS8 encodes
pkeyas a PKCS#8 PrivateKeyInfo (RFC 5208), represented as a newly-allocatedPKCS8_PRIV_KEY_INFO, or NULL on error. The caller must release the result withPKCS8_PRIV_KEY_INFO_freewhen done. -
EVP_PKEY_assign(
Pointer< EVP_PKEY> pkey, int type, Pointer<Void> key) → int -
EVP_PKEY_assign sets the underlying key of
pkeytokey, which must be of the given type. If successful, it returns one. If thetypeargument is not one ofEVP_PKEY_RSA,EVP_PKEY_DSA, orEVP_PKEY_ECvalues or ifkeyis NULL, it returns zero. This function may not be used with otherEVP_PKEY_*types. -
EVP_PKEY_assign_DH(
Pointer< EVP_PKEY> pkey, Pointer<DH> key) → int -
EVP_PKEY_assign_DSA(
Pointer< EVP_PKEY> pkey, Pointer<DSA> key) → int -
EVP_PKEY_assign_EC_KEY(
Pointer< EVP_PKEY> pkey, Pointer<EC_KEY> key) → int -
EVP_PKEY_assign_RSA(
Pointer< EVP_PKEY> pkey, Pointer<RSA> key) → int -
EVP_PKEY_base_id(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_base_id calls
EVP_PKEY_id. -
EVP_PKEY_bits(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_bits returns the "size", in bits, of
pkey. For an RSA key, this returns the bit length of the modulus. For an EC key, this returns the bit length of the group order. -
EVP_PKEY_cmp(
Pointer< EVP_PKEY> a, Pointer<EVP_PKEY> b) → int -
EVP_PKEY_cmp calls
EVP_PKEY_eq. It returns one if public keys are equal and zero otherwise. -
EVP_PKEY_cmp_parameters(
Pointer< EVP_PKEY> a, Pointer<EVP_PKEY> b) → int -
EVP_PKEY_cmp_parameters calls
EVP_PKEY_parameters_eq. It returns one if parameters are equal and zero otherwise. -
EVP_PKEY_copy_parameters(
Pointer< EVP_PKEY> to, Pointer<EVP_PKEY> from) → int -
EVP_PKEY_copy_parameters sets the parameters of
toto equal the parameters offrom. It returns one on success and zero on error. -
EVP_PKEY_copy_public(
Pointer< EVP_PKEY> pkey) → Pointer<EVP_PKEY> -
EVP_PKEY_copy_public returns a newly-allocated
EVP_PKEYthat contains only the public key ofpkey, or NULL on error. Parameters, if relevant for the key type, are also copied. -
EVP_PKEY_CTX_dup(
Pointer< EVP_PKEY_CTX> ctx) → Pointer<EVP_PKEY_CTX> -
EVP_PKEY_CTX_dup allocates a fresh
EVP_PKEY_CTXand sets it equal to the state ofctx. It returns the freshEVP_PKEY_CTXor NULL on error. -
EVP_PKEY_CTX_free(
Pointer< EVP_PKEY_CTX> ctx) → void -
EVP_PKEY_CTX_free frees
ctxand the data it owns. -
EVP_PKEY_CTX_get0_pkey(
Pointer< EVP_PKEY_CTX> ctx) → Pointer<EVP_PKEY> -
EVP_PKEY_CTX_get0_pkey returns the
EVP_PKEYassociated withctx. -
EVP_PKEY_CTX_get0_rsa_oaep_label(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Pointer< out_label) → intUint8> > -
EVP_PKEY_CTX_get0_rsa_oaep_label sets
*out_labelto point to the internal buffer containing the OAEP label (which may be NULL) and returns the length of the label or a negative value on error. -
EVP_PKEY_CTX_get_rsa_mgf1_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Pointer< out_md) → intEVP_MD> > -
EVP_PKEY_CTX_get_rsa_mgf1_md sets
*out_mdto the digest function used in MGF1. Returns one on success or zero on error. -
EVP_PKEY_CTX_get_rsa_oaep_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Pointer< out_md) → intEVP_MD> > -
EVP_PKEY_CTX_get_rsa_oaep_md sets
*out_mdto the digest function used in OAEP padding. Returns one on success or zero on error. -
EVP_PKEY_CTX_get_rsa_padding(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Int> out_padding) → int -
EVP_PKEY_CTX_get_rsa_padding sets
*out_paddingto the current padding value, which is one of theRSA_*_PADDINGvalues. Returns one on success or zero on error. -
EVP_PKEY_CTX_get_rsa_pss_saltlen(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Int> out_salt_len) → int -
EVP_PKEY_CTX_get_rsa_pss_saltlen sets
*out_salt_lento the salt length of a PSS-padded signature. See the documentation forEVP_PKEY_CTX_set_rsa_pss_saltlenfor details of the special values that it can take. -
EVP_PKEY_CTX_get_signature_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Pointer< out_md) → intEVP_MD> > -
EVP_PKEY_CTX_get_signature_md sets
*out_mdto the digest to be used in a signature operation. It returns one on success or zero on error. -
EVP_PKEY_CTX_new(
Pointer< EVP_PKEY> pkey, Pointer<ENGINE> e) → Pointer<EVP_PKEY_CTX> -
EVP_PKEY_CTX_new allocates a fresh
EVP_PKEY_CTXfor use withpkey. It returns the context or NULL on error. -
EVP_PKEY_CTX_new_id(
int id, Pointer< ENGINE> e) → Pointer<EVP_PKEY_CTX> -
EVP_PKEY_CTX_new_id allocates a fresh
EVP_PKEY_CTXfor a key of typeid(e.g.EVP_PKEY_HMAC). This can be used for key generation whereEVP_PKEY_CTX_newcan't be used because there isn't anEVP_PKEYto pass it. It returns the context or NULL on error. -
EVP_PKEY_CTX_set0_rsa_oaep_label(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> label, int label_len) → int -
EVP_PKEY_CTX_set0_rsa_oaep_label sets
label_lenbytes fromlabelas the label used in OAEP. DANGER: On success, this call takes ownership oflabeland will callOPENSSL_freeon it whenctxis destroyed. -
EVP_PKEY_CTX_set1_signature_context_string(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> context, int context_len) → int -
EVP_PKEY_CTX_set1_signature_context_string sets the context string for a
signature or verification operation to
context. It returns one success and zero on error. The context string is an additional input to some signature algorithms, such as ML-DSA, to separate different uses of the same key. This is known as domain separation. Section 8.3 of RFC 8032 provides some additional guidance on context strings. -
EVP_PKEY_CTX_set_dh_pad(
Pointer< EVP_PKEY_CTX> ctx, int pad) → int -
EVP_PKEY_CTX_set_dh_pad configures whether
ctx, which must be anEVP_PKEY_deriveoperation, configures the handling of leading zeros in the Diffie-Hellman shared secret. Ifpadis zero, leading zeros are removed from the secret. Ifpadis non-zero, the fixed-width shared secret is used unmodified, as in PKCS #3. If this function is not called, the default is to remove leading zeros. -
EVP_PKEY_CTX_set_dsa_paramgen_bits(
Pointer< EVP_PKEY_CTX> ctx, int nbits) → int - EVP_PKEY_CTX_set_dsa_paramgen_bits returns zero.
-
EVP_PKEY_CTX_set_dsa_paramgen_q_bits(
Pointer< EVP_PKEY_CTX> ctx, int qbits) → int - EVP_PKEY_CTX_set_dsa_paramgen_q_bits returns zero.
-
EVP_PKEY_CTX_set_ec_param_enc(
Pointer< EVP_PKEY_CTX> ctx, int encoding) → int -
EVP_PKEY_CTX_set_ec_param_enc returns one if
encodingisOPENSSL_EC_NAMED_CURVEor zero with an error otherwise. -
EVP_PKEY_CTX_set_ec_paramgen_curve_nid(
Pointer< EVP_PKEY_CTX> ctx, int nid) → int -
EVP_PKEY_CTX_set_ec_paramgen_curve_nid sets the curve used for
EVP_PKEY_keygenorEVP_PKEY_paramgenoperations tonid. It returns one on success and zero on error. -
EVP_PKEY_CTX_set_rsa_keygen_bits(
Pointer< EVP_PKEY_CTX> ctx, int bits) → int - EVP_PKEY_CTX_set_rsa_keygen_bits sets the size of the desired RSA modulus, in bits, for key generation. Returns one on success or zero on error.
-
EVP_PKEY_CTX_set_rsa_keygen_pubexp(
Pointer< EVP_PKEY_CTX> ctx, Pointer<BIGNUM> e) → int -
EVP_PKEY_CTX_set_rsa_keygen_pubexp sets
eas the public exponent for key generation. Returns one on success or zero on error. On success,ctxtakes ownership ofe. The library will then callBN_freeonewhenctxis destroyed. -
EVP_PKEY_CTX_set_rsa_mgf1_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<EVP_MD> md) → int -
EVP_PKEY_CTX_set_rsa_mgf1_md sets
mdas the digest used in MGF1. Returns one on success or zero on error. -
EVP_PKEY_CTX_set_rsa_oaep_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<EVP_MD> md) → int -
EVP_PKEY_CTX_set_rsa_oaep_md sets
mdas the digest used in OAEP padding. Returns one on success or zero on error. If unset, the default is SHA-1. Callers are recommended to overwrite this default. -
EVP_PKEY_CTX_set_rsa_padding(
Pointer< EVP_PKEY_CTX> ctx, int padding) → int -
EVP_PKEY_CTX_set_rsa_padding sets the padding type to use. It should be one
of the
RSA_*_PADDINGvalues. Returns one on success or zero on error. By default, the padding isRSA_PKCS1_PADDING. -
EVP_PKEY_CTX_set_rsa_pss_keygen_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<EVP_MD> md) → int - EVP_PKEY_CTX_set_rsa_pss_keygen_md returns 0.
-
EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<EVP_MD> md) → int - EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md returns 0.
-
EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(
Pointer< EVP_PKEY_CTX> ctx, int salt_len) → int - EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen returns 0.
-
EVP_PKEY_CTX_set_rsa_pss_saltlen(
Pointer< EVP_PKEY_CTX> ctx, int salt_len) → int -
EVP_PKEY_CTX_set_rsa_pss_saltlen sets the length of the salt in a PSS-padded
signature. A value of
RSA_PSS_SALTLEN_DIGESTcauses the salt to be the same length as the digest in the signature. A value ofRSA_PSS_SALTLEN_AUTOcauses the salt to be the maximum length that will fit when signing and recovered from the signature when verifying. Otherwise the value gives the size of the salt in bytes. -
EVP_PKEY_CTX_set_signature_md(
Pointer< EVP_PKEY_CTX> ctx, Pointer<EVP_MD> md) → int -
EVP_PKEY_CTX_set_signature_md sets
mdas the digest to be used in a signature operation. It returns one on success or zero on error. -
EVP_PKEY_decapsulate(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> out_secret, Pointer<Size> out_secret_len, Pointer<Uint8> ciphertext, int ciphertext_len) → int -
EVP_PKEY_decapsulate implements private key decapsulation using
ctx.ciphertextandciphertext_lenspecify the ciphertext to be decapsulated. Ifout_secretis NULL, it writes the maximum size of the shared secret output to*out_secret_lenand returns one. Otherwise,*out_secret_lenmust contain the number of bytes of space available atout_secret. If the space is insufficient, this function returns zero. If the space is sufficient, the decapsulated shared secret will be written toout_secretand the size of the output toout_secret_len, and this function will return one. Ifciphertexthas been corrupted, the function may fail or it may output a shared secret that appears to be random. Any subsequent symmetric encryption usingout_secretmust use an authenticated encryption scheme to discover the decapsulation failure. -
EVP_PKEY_decapsulate_init(
Pointer< EVP_PKEY_CTX> ctx, Pointer<OSSL_PARAM> params) → int -
EVP_PKEY_decapsulate_init initialises an
EVP_PKEY_CTXfor a decapsulate operation. It should be called beforeEVP_PKEY_decapsulate.paramsis included for OpenSSL compatibility, but this parameter should be NULL or haveOSSL_PARAM_ENDas its first element. -
EVP_PKEY_decrypt(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_PKEY_decrypt decrypts
in_lenbytes fromin. Ifoutis NULL, the maximum size of the plaintext is written toout_len. Otherwise,*out_lenmust contain the number of bytes of space available atout. If sufficient, the ciphertext will be written tooutand*out_lenupdated with the true length. -
EVP_PKEY_decrypt_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_decrypt_init initialises an
EVP_PKEY_CTXfor a decryption operation. It should be called beforeEVP_PKEY_decrypt. -
EVP_PKEY_derive(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> key, Pointer<Size> out_key_len) → int -
EVP_PKEY_derive derives a shared key from
ctx. Ifkeyis non-NULL then, on entry,out_key_lenmust contain the amount of space atkey. If sufficient then the shared key will be written tokeyand*out_key_lenwill be set to the length. Ifkeyis NULL thenout_key_lenwill be set to the maximum length. -
EVP_PKEY_derive_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_derive_init initialises an
EVP_PKEY_CTXfor a key derivation operation. It should be called beforeEVP_PKEY_derive_set_peerandEVP_PKEY_derive. -
EVP_PKEY_derive_set_peer(
Pointer< EVP_PKEY_CTX> ctx, Pointer<EVP_PKEY> peer) → int -
EVP_PKEY_derive_set_peer sets the peer's key to be used for key derivation
by
ctxtopeer. It should be called afterEVP_PKEY_derive_init. (For example, this is used to set the peer's key in (EC)DH.) It returns one on success and zero on error. -
EVP_pkey_dsa(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_dsa implements DSA keys, encoded as in RFC 3279, Section 2.3.2. The
EVP_PKEY_idvalue isEVP_PKEY_DSA. ThisEVP_PKEY_ALGaccepts all DSA parameters supported by BoringSSL. -
EVP_PKEY_dup_ref(
Pointer< EVP_PKEY> pkey) → Pointer<EVP_PKEY> -
EVP_PKEY_dup_ref increments the reference count of
pkey, if non-null, and returnspkey. The caller must callEVP_PKEY_freeon the result to release the reference. -
EVP_pkey_ec_p224(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ec_* implement EC keys, encoded as id-ecPublicKey (RFC 5480,
Section 2.1.1). The id-ecPublicKey encoding is confusingly named: it is also
used for private keys (RFC 5915). The
EVP_PKEY_idvalue isEVP_PKEY_EC. -
EVP_pkey_ec_p256(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ec_p384(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ec_p521(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ed25519(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ed25519 implements Ed25519 keys (RFC 8032), encoded as in RFC 8410.
The
EVP_PKEY_idvalue isEVP_PKEY_ED25519. -
EVP_PKEY_encapsulate(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> out_ciphertext, Pointer<Size> out_ciphertext_len, Pointer<Uint8> out_secret, Pointer<Size> out_secret_len) → int -
EVP_PKEY_encapsulate implements public key encapsulation using
ctx. It either performs the operation or returns the maximum output sizes, depending on whetherout_ciphertextis NULL: -
EVP_PKEY_encapsulate_init(
Pointer< EVP_PKEY_CTX> ctx, Pointer<OSSL_PARAM> params) → int -
EVP_PKEY_encapsulate_init initialises an
EVP_PKEY_CTXfor an encapsulate operation. It should be called beforeEVP_PKEY_encapsulate.paramsis included for OpenSSL compatibility, but this parameter should be NULL or haveOSSL_PARAM_ENDas its first element. -
EVP_PKEY_encrypt(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, Pointer<Uint8> in$, int in_len) → int -
EVP_PKEY_encrypt encrypts
in_lenbytes fromin. Ifoutis NULL, the maximum size of the ciphertext is written toout_len. Otherwise,*out_lenmust contain the number of bytes of space available atout. If sufficient, the ciphertext will be written tooutand*out_lenupdated with the true length. -
EVP_PKEY_encrypt_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_encrypt_init initialises an
EVP_PKEY_CTXfor an encryption operation. It should be called beforeEVP_PKEY_encrypt. -
EVP_PKEY_eq(
Pointer< EVP_PKEY> a, Pointer<EVP_PKEY> b) → int -
EVP_PKEY_eq compares
aandband returns one if their public keys are equal and zero otherwise. -
EVP_PKEY_free(
Pointer< EVP_PKEY> pkey) → void -
EVP_PKEY_free decrements the reference count of
pkeyand frees it if the reference count drops to zero. -
EVP_PKEY_from_ec_compressed_point(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_ec_private_scalar(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_ec_private_scalar decodes
lenbytes frominas an EC private key, encoded as a big-endian, zero-padded integer. The EC curve is determined byalg, which must be an EC algorithm (i.e. one ofEVP_pkey_ec_*). The input must be fully reduced and padded to the size of the group order (e.g. 32 bytes for P-256) or the import will fail. -
EVP_PKEY_from_ec_uncompressed_point(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
The following functions decode
lenbytes frominas an EC public key in compressed or uncompressed X9.62 format, respectively. The EC curve is determined byalg, which must be an EC algorithm (i.e. one ofEVP_pkey_ec_*). -
EVP_PKEY_from_private_key_info(
Pointer< Uint8> in$, int len, Pointer<Pointer< algs, int num_algs) → Pointer<EVP_PKEY_ALG> >EVP_PKEY> -
EVP_PKEY_from_private_key_info decodes a DER-encoded PrivateKeyInfo structure
(RFC 5208) from
in. It returns a newly-allocatedEVP_PKEYor NULL on error. Only thenum_algsalgorithms inalgswill be considered when parsing. -
EVP_PKEY_from_private_seed(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_private_seed interprets
inas a private seed of typealgand returns a newly-allocatedEVP_PKEY, or nullptr on error. -
EVP_PKEY_from_raw_private_key(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_raw_private_key interprets
inas a raw private key of typealgand returns a newly-allocatedEVP_PKEY, or nullptr on error. -
EVP_PKEY_from_raw_public_key(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_raw_public_key interprets
inas a raw public key of typealgand returns a newly-allocatedEVP_PKEY, or nullptr on error. -
EVP_PKEY_from_rsa_private_key(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_rsa_private_key decodes
lenbytes frominas a DER-encoded RSAPrivateKey structure (RFC 8017) of algorithmalg. It returns a newly-allocatedEVP_PKEYon success or NULL on error.algmust be an RSA-based algorithm, i.e.EVP_pkey_rsaor one ofEVP_pkey_rsa_pss_*. If unsure, useEVP_pkey_rsa. -
EVP_PKEY_from_rsa_public_key(
Pointer< EVP_PKEY_ALG> alg, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_from_rsa_public_key decodes
lenbytes frominas a DER-encoded RSAPublicKey structure (RFC 8017) of algorithmalg. It returns a newly-allocatedEVP_PKEYon success or NULL on error.algmust be an RSA-based algorithm, i.e.EVP_pkey_rsaor one ofEVP_pkey_rsa_pss_*. If unsure, useEVP_pkey_rsa. -
EVP_PKEY_from_subject_public_key_info(
Pointer< Uint8> in$, int len, Pointer<Pointer< algs, int num_algs) → Pointer<EVP_PKEY_ALG> >EVP_PKEY> -
EVP_PKEY_from_subject_public_key_info decodes a DER-encoded
SubjectPublicKeyInfo structure (RFC 5280) from
in. It returns a newly-allocatedEVP_PKEYor NULL on error. Only thenum_algsalgorithms inalgswill be considered when parsing. -
EVP_PKEY_generate_from_alg(
Pointer< EVP_PKEY_ALG> alg) → Pointer<EVP_PKEY> -
EVP_PKEY_generate_from_alg generates a new key of type
alg. It returns a newly-allocatedEVP_PKEYor nullptr on error. -
EVP_PKEY_get0(
Pointer< EVP_PKEY> pkey) → Pointer<Void> -
EVP_PKEY_get0 returns NULL. This function is provided for compatibility with
OpenSSL but does not return anything. Use the typed
EVP_PKEY_get0_*functions instead. -
EVP_PKEY_get0_DH(
Pointer< EVP_PKEY> pkey) → Pointer<DH> -
EVP_PKEY_get0_DSA(
Pointer< EVP_PKEY> pkey) → Pointer<DSA> -
EVP_PKEY_get0_EC_KEY(
Pointer< EVP_PKEY> pkey) → Pointer<EC_KEY> -
EVP_PKEY_get0_RSA(
Pointer< EVP_PKEY> pkey) → Pointer<RSA> -
EVP_PKEY_get1_DH(
Pointer< EVP_PKEY> pkey) → Pointer<DH> -
EVP_PKEY_get1_DSA(
Pointer< EVP_PKEY> pkey) → Pointer<DSA> -
EVP_PKEY_get1_EC_KEY(
Pointer< EVP_PKEY> pkey) → Pointer<EC_KEY> -
EVP_PKEY_get1_RSA(
Pointer< EVP_PKEY> pkey) → Pointer<RSA> -
EVP_PKEY_get1_tls_encodedpoint(
Pointer< EVP_PKEY> pkey, Pointer<Pointer< out_ptr) → intUint8> > -
EVP_PKEY_get1_tls_encodedpoint sets
*out_ptrto a newly-allocated buffer containing the raw encoded public key forpkey. The caller must callOPENSSL_freeto release this buffer. The function returns the length of the buffer on success and zero on error. -
EVP_PKEY_get_ec_curve_nid(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_get_ec_curve_nid returns
pkey's curve as a NID constant, such asNID_X9_62_prime256v1, orNID_undefifpkeyis not an EC key. -
EVP_PKEY_get_ec_point_conv_form(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_get_ec_point_conv_form returns
pkey's point conversion form as aPOINT_CONVERSION_*constant, or zero ifpkeyis not an EC key. -
EVP_PKEY_get_private_seed(
Pointer< EVP_PKEY> pkey, Pointer<Uint8> out, Pointer<Size> out_len) → int -
EVP_PKEY_get_private_seed outputs the private key for
pkeyas a private seed. Ifoutis NULL, it sets*out_lento the size of the seed. Otherwise, it writes at most*out_lenbytes tooutand sets*out_lento the number of bytes written. -
EVP_PKEY_get_raw_private_key(
Pointer< EVP_PKEY> pkey, Pointer<Uint8> out, Pointer<Size> out_len) → int -
EVP_PKEY_get_raw_private_key outputs the private key for
pkeyin raw form. Ifoutis NULL, it sets*out_lento the size of the raw private key. Otherwise, it writes at most*out_lenbytes tooutand sets*out_lento the number of bytes written. -
EVP_PKEY_get_raw_public_key(
Pointer< EVP_PKEY> pkey, Pointer<Uint8> out, Pointer<Size> out_len) → int -
EVP_PKEY_get_raw_public_key outputs the public key for
pkeyin raw form. Ifoutis NULL, it sets*out_lento the size of the raw public key. Otherwise, it writes at most*out_lenbytes tooutand sets*out_lento the number of bytes written. -
EVP_PKEY_has_private(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_has_private returns one if
pkeyhas a private key, or zero otherwise. -
EVP_PKEY_has_public(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_has_public returns one if
pkeyhas a public key, or zero otherwise. -
EVP_PKEY_id(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_id returns the type of
pkey, which is one of theEVP_PKEY_*values above. These type values generally correspond to the algorithm OID, but not the parameters, of a SubjectPublicKeyInfo (RFC 5280) or PrivateKeyInfo (RFC 5208) AlgorithmIdentifier. Algorithm parameters can be inspected with algorithm-specific accessors, e.g.EVP_PKEY_get_ec_curve_nid. -
EVP_PKEY_is_opaque(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_is_opaque returns one if
pkeyis opaque. Opaque keys are backed by custom implementations which do not expose key material and parameters. It is an error to attempt to duplicate, export, or compare an opaque key. -
EVP_PKEY_keygen(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Pointer< out_pkey) → intEVP_PKEY> > -
EVP_PKEY_keygen performs a key generation operation using the values from
ctx. If*out_pkeyis non-NULL, it overwrites*out_pkeywith the resulting key. Otherwise, it sets*out_pkeyto a newly-allocatedEVP_PKEYcontaining the result. It returns one on success or zero on error. -
EVP_PKEY_keygen_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_keygen_init initialises an
EVP_PKEY_CTXfor a key generation operation. It should be called beforeEVP_PKEY_keygen. -
EVP_PKEY_marshal_ec_compressed_point(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
EVP_PKEY_marshal_ec_private_scalar(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
EVP_PKEY_marshal_ec_private_scalar marshals
key's private key as a big-endian, zero-padded integer EC scalar and writes the result tocbb. It returns one on success or zero on error. It is an error ifkeyis not an EC key. -
EVP_PKEY_marshal_ec_uncompressed_point(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
The following functions marshal
key's EC public key in compressed or uncompressed X9.62 format, respectively, and write the result tocbb. They return one on success and zero on error. It is an error ifkeyis not an EC key. -
EVP_PKEY_marshal_rsa_private_key(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
EVP_PKEY_marshal_rsa_private_key marshals
keyas a DER-encoded RSAPrivateKey structure (RFC 8017) and writes the result tocbb. It returns one on success and zero on error. Ifkeyis not of typeEVP_PKEY_RSAorEVP_PKEY_RSA_PSS, it returns zero. -
EVP_PKEY_marshal_rsa_public_key(
Pointer< CBB> cbb, Pointer<EVP_PKEY> key) → int -
EVP_PKEY_marshal_rsa_public_key marshals
keyas a DER-encoded RSAPublicKey structure (RFC 8017) and writes the result tocbb. It returns one on success and zero on error. Ifkeyis not of typeEVP_PKEY_RSAorEVP_PKEY_RSA_PSS, it returns zero. -
EVP_PKEY_missing_parameters(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_missing_parameters returns one if
pkeyis missing needed parameters or zero if not, or if the algorithm doesn't take parameters. -
EVP_pkey_ml_dsa_44(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ml_dsa_* implement ML-DSA keys, encoded as in RFC 9881. The
EVP_PKEY_idvalues areEVP_PKEY_ML_DSA_*. In the private key representation, only the "seed" form is serialized or parsed. -
EVP_pkey_ml_dsa_65(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ml_dsa_87(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ml_kem_1024(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ml_kem_768(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_ml_kem_* implement ML-KEM keys, encoded as in RFC 9935. The
EVP_PKEY_idvalues areEVP_PKEY_ML_KEM_*. In the private key representation, only the "seed" form is serialized or parsed. -
EVP_PKEY_new(
) → Pointer< EVP_PKEY> - EVP_PKEY_new creates a new, empty public-key object and returns it or NULL on allocation failure.
-
EVP_PKEY_new_raw_private_key(
int type, Pointer< ENGINE> unused, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_new_raw_private_key interprets
inas a raw private key of typetype, which must be anEVP_PKEY_*constant, such asEVP_PKEY_X25519, and returns a newly-allocatedEVP_PKEY, or nullptr on error. -
EVP_PKEY_new_raw_public_key(
int type, Pointer< ENGINE> unused, Pointer<Uint8> in$, int len) → Pointer<EVP_PKEY> -
EVP_PKEY_new_raw_public_key interprets
inas a raw public key of typetype, which must be anEVP_PKEY_*constant, such asEVP_PKEY_X25519, and returns a newly-allocatedEVP_PKEY, or nullptr on error. -
EVP_PKEY_parameters_eq(
Pointer< EVP_PKEY> a, Pointer<EVP_PKEY> b) → int -
EVP_PKEY_parameters_eq compares the parameters of
aandb. It returns one if they match and zero otherwise. In algorithms that do not use parameters, this function returns one; null parameters are vacuously equal. -
EVP_PKEY_paramgen(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Pointer< out_pkey) → intEVP_PKEY> > -
EVP_PKEY_paramgen performs a parameter generation using the values from
ctx. If*out_pkeyis non-NULL, it overwrites*out_pkeywith the resulting parameters, but no key. Otherwise, it sets*out_pkeyto a newly-allocatedEVP_PKEYcontaining the result. It returns one on success or zero on error. -
EVP_PKEY_paramgen_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_paramgen_init initialises an
EVP_PKEY_CTXfor a parameter generation operation. It should be called beforeEVP_PKEY_paramgen. -
EVP_PKEY_print_params(
Pointer< BIO> out, Pointer<EVP_PKEY> pkey, int indent, Pointer<ASN1_PCTX> pctx) → int -
EVP_PKEY_print_params prints a textual representation of the parameters in
pkeytoout. Returns one on success or zero otherwise. -
EVP_PKEY_print_private(
Pointer< BIO> out, Pointer<EVP_PKEY> pkey, int indent, Pointer<ASN1_PCTX> pctx) → int -
EVP_PKEY_print_private prints a textual representation of the private key in
pkeytoout. Returns one on success or zero otherwise. -
EVP_PKEY_print_public(
Pointer< BIO> out, Pointer<EVP_PKEY> pkey, int indent, Pointer<ASN1_PCTX> pctx) → int -
EVP_PKEY_print_public prints a textual representation of the public key in
pkeytoout. Returns one on success or zero otherwise. -
EVP_pkey_rsa(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_rsa implements RSA keys (RFC 8017), encoded as rsaEncryption (RFC
3279, Section 2.3.1). The rsaEncryption encoding is confusingly named: these
keys are used for all RSA operations, including signing. The
EVP_PKEY_idvalue isEVP_PKEY_RSA. -
EVP_pkey_rsa_pss_sha256(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_rsa_pss_* implements RSASSA-PSS keys, encoded as id-RSASSA-PSS
(RFC 4055, Section 3.1). The
EVP_PKEY_idvalue isEVP_PKEY_RSA_PSS. EachEVP_PKEY_ALGonly accepts keys whose parameters specify: -
EVP_pkey_rsa_pss_sha384(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_rsa_pss_sha512(
) → Pointer< EVP_PKEY_ALG> -
EVP_PKEY_set1_DH(
Pointer< EVP_PKEY> pkey, Pointer<DH> key) → int -
EVP_PKEY_set1_DSA(
Pointer< EVP_PKEY> pkey, Pointer<DSA> key) → int -
EVP_PKEY_set1_EC_KEY(
Pointer< EVP_PKEY> pkey, Pointer<EC_KEY> key) → int -
EVP_PKEY_set1_RSA(
Pointer< EVP_PKEY> pkey, Pointer<RSA> key) → int - Getting and setting concrete key types.
-
EVP_PKEY_set1_tls_encodedpoint(
Pointer< EVP_PKEY> pkey, Pointer<Uint8> in$, int len) → int -
EVP_PKEY_set1_tls_encodedpoint replaces
pkeywith a public key encoded byin. It returns one on success and zero on error. -
EVP_PKEY_set_type(
Pointer< EVP_PKEY> pkey, int type) → int -
EVP_PKEY_set_type sets the type of
pkeytotype. It returns one if successful or zero if thetypeargument is not one of theEVP_PKEY_*values supported for use with this function. Ifpkeyis NULL, it simply reports whether the type is known. -
EVP_PKEY_sign(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> sig, Pointer<Size> sig_len, Pointer<Uint8> digest, int digest_len) → int -
EVP_PKEY_sign signs
digest_lenbytes fromdigestusingctx. Ifsigis NULL, the maximum size of the signature is written toout_sig_len. Otherwise,*sig_lenmust contain the number of bytes of space available atsig. If sufficient, the signature will be written tosigand*sig_lenupdated with the true length. This function will fail for signature algorithms like Ed25519 that do not support signing pre-hashed inputs. -
EVP_PKEY_sign_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_sign_init initialises an
EVP_PKEY_CTXfor a signing operation. It should be called beforeEVP_PKEY_sign. -
EVP_PKEY_size(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_size returns the maximum size, in bytes, of a signature signed by
pkey. For an RSA key, this returns the number of bytes needed to represent the modulus. For an EC key, this returns the maximum size of a DER-encoded ECDSA signature. -
EVP_PKEY_type(
int nid) → int -
EVP_PKEY_type returns
nid. -
EVP_PKEY_up_ref(
Pointer< EVP_PKEY> pkey) → int -
EVP_PKEY_up_ref increments the reference count of
pkeyand returns one. It does not mutatepkeyfor thread-safety purposes and may be used concurrently. -
EVP_PKEY_verify(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> sig, int sig_len, Pointer<Uint8> digest, int digest_len) → int -
EVP_PKEY_verify verifies that
sig_lenbytes fromsigare a valid signature fordigest. This function will fail for signature algorithms like Ed25519 that do not support signing pre-hashed inputs. -
EVP_PKEY_verify_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_verify_init initialises an
EVP_PKEY_CTXfor a signature verification operation. It should be called beforeEVP_PKEY_verify. -
EVP_PKEY_verify_recover(
Pointer< EVP_PKEY_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, Pointer<Uint8> sig, int siglen) → int -
EVP_PKEY_verify_recover decrypts
sig_lenbytes fromsig. Ifoutis NULL, the maximum size of the plaintext is written toout_len. Otherwise,*out_lenmust contain the number of bytes of space available atout. If sufficient, the ciphertext will be written tooutand*out_lenupdated with the true length. -
EVP_PKEY_verify_recover_init(
Pointer< EVP_PKEY_CTX> ctx) → int -
EVP_PKEY_verify_recover_init initialises an
EVP_PKEY_CTXfor a public-key decryption operation. It should be called beforeEVP_PKEY_verify_recover. -
EVP_pkey_x25519(
) → Pointer< EVP_PKEY_ALG> -
EVP_pkey_x25519 implements X25519 keys (RFC 7748), encoded as in RFC 8410.
The
EVP_PKEY_idvalue isEVP_PKEY_X25519. -
EVP_pkey_xwing(
) → Pointer< EVP_PKEY_ALG> - EVP_pkey_xwing implements the hybrid key encapsulation mechanism (KEM) known as X-Wing or MLKEM768-X25519, defined in draft-irtf-cfrg-concrete-hybrid-kems. Its private key representation is the "seed" form. It does not have public and private key encodings for X.509.
-
EVP_Q_digest(
Pointer< OSSL_LIB_CTX> libctx, Pointer<Char> name, Pointer<Char> propq, Pointer<Void> in$, int in_len, Pointer<Uint8> out, Pointer<Size> out_len) → int -
EVP_Q_digest behaves like
EVP_Digestbut specifies the digest by a stringname.libctxandpropqare ignored. -
EVP_rc2_40_cbc(
) → Pointer< EVP_CIPHER> - EVP_rc2_40_cbc returns a cipher that implements 40-bit RC2 in CBC mode. This is obviously very, very weak and is included only in order to read PKCS#12 files, which often encrypt the certificate chain using this cipher. It is deliberately not exported.
-
EVP_rc2_cbc(
) → Pointer< EVP_CIPHER> - EVP_rc2_cbc returns a cipher that implements 128-bit RC2 in CBC mode.
-
EVP_rc4(
) → Pointer< EVP_CIPHER> - Cipher primitives.
-
EVP_RSA_gen(
int bits) → Pointer< EVP_PKEY> -
EVP_RSA_gen generates a new RSA key with the specified number of bits. It
returns a newly-allocated
EVP_PKEYor nullptr on error. -
EVP_sha1(
) → Pointer< EVP_MD> -
EVP_sha224(
) → Pointer< EVP_MD> -
EVP_sha256(
) → Pointer< EVP_MD> -
EVP_sha384(
) → Pointer< EVP_MD> -
EVP_sha3_256(
) → Pointer< EVP_MD> - SHA-3 family of digest functions.
-
EVP_sha3_384(
) → Pointer< EVP_MD> -
EVP_sha3_512(
) → Pointer< EVP_MD> -
EVP_sha512(
) → Pointer< EVP_MD> -
EVP_sha512_256(
) → Pointer< EVP_MD> -
EVP_shake256(
) → Pointer< EVP_MD> - EVP_shake256 is SHAKE256 extendable-output function.
-
EVP_SignFinal(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> sig, Pointer<UnsignedInt> out_sig_len, Pointer<EVP_PKEY> pkey) → int -
EVP_SignFinal signs the data that has been included by one or more calls to
EVP_SignUpdate, using the keypkey, and writes it tosig. On entry,sigmust point to at leastEVP_PKEY_size(pkey)bytes of space. The actual size of the signature is written to*out_sig_len. -
EVP_SignInit(
Pointer< EVP_MD_CTX> ctx, Pointer<EVP_MD> type) → int -
EVP_SignInit is a deprecated version of
EVP_SignInit_ex. -
EVP_SignInit_ex(
Pointer< EVP_MD_CTX> ctx, Pointer<EVP_MD> type, Pointer<ENGINE> impl) → int -
EVP_SignInit_ex configures
ctx, which must already have been initialised, for a fresh signing operation using the hash functiontype. It returns one on success and zero otherwise. -
EVP_SignUpdate(
Pointer< EVP_MD_CTX> ctx, Pointer<Void> data, int len) → int -
EVP_SignUpdate appends
lenbytes fromdatato the data which will be signed inEVP_SignFinal. -
EVP_turboshake256(
) → Pointer< EVP_MD> - EVP_turboshake256 is TurboSHAKE extendable output function.
-
EVP_VerifyFinal(
Pointer< EVP_MD_CTX> ctx, Pointer<Uint8> sig, int sig_len, Pointer<EVP_PKEY> pkey) → int -
EVP_VerifyFinal verifies that
sig_lenbytes ofsigare a valid signature, bypkey, for the data that has been included by one or more calls toEVP_VerifyUpdate. -
EVP_VerifyInit(
Pointer< EVP_MD_CTX> ctx, Pointer<EVP_MD> type) → int -
EVP_VerifyInit is a deprecated version of
EVP_VerifyInit_ex. -
EVP_VerifyInit_ex(
Pointer< EVP_MD_CTX> ctx, Pointer<EVP_MD> type, Pointer<ENGINE> impl) → int -
EVP_VerifyInit_ex configures
ctx, which must already have been initialised, for a fresh signature verification operation using the hash functiontype. It returns one on success and zero otherwise. -
EVP_VerifyUpdate(
Pointer< EVP_MD_CTX> ctx, Pointer<Void> data, int len) → int -
EVP_VerifyUpdate appends
lenbytes fromdatato the data which will be signed inEVP_VerifyFinal. -
EXTENDED_KEY_USAGE_free(
Pointer< EXTENDED_KEY_USAGE> eku) → void -
EXTENDED_KEY_USAGE_free releases memory associated with
eku. -
EXTENDED_KEY_USAGE_new(
) → Pointer< EXTENDED_KEY_USAGE> -
EXTENDED_KEY_USAGE_new returns a newly-allocated, empty
EXTENDED_KEY_USAGEobject, or NULL on error. -
extractBoringSslError(
) → String? - Formats the least recent (and most specific) error on the current thread's BoringSSL error queue, and clears the queue before returning.
-
FIPS_mode(
) → int - FIPS_mode returns zero unless BoringSSL is built with BORINGSSL_FIPS, in which case it returns one.
-
FIPS_mode_set(
int on) → int -
FIPS_mode_set returns one if
onmatches whether BoringSSL was built withBORINGSSL_FIPSand zero otherwise. -
FIPS_module_name(
) → Pointer< Char> - FIPS_module_name returns the name of the FIPS module.
-
FIPS_query_algorithm_status(
Pointer< Char> algorithm) → int -
FIPS_query_algorithm_status returns one if
algorithmis FIPS validated in the current BoringSSL and zero otherwise. -
FIPS_read_counter(
int counter) → int -
FIPS_read_counter returns a counter of the number of times the specific
function denoted by
counterhas been used. This always returns zero unless BoringSSL was built with BORINGSSL_FIPS_COUNTERS defined. -
FIPS_version(
) → int - FIPS_version returns the version of the FIPS module, or zero if the build isn't exactly at a verified version. The version, expressed in base 10, will be a date in the form yyyymmdd.
-
GENERAL_NAME_dup(
Pointer< GENERAL_NAME> gen) → Pointer<GENERAL_NAME> -
GENERAL_NAME_dup returns a newly-allocated copy of
gen, or NULL on error. This function works by serializing the structure, so it will fail ifgenis empty. -
GENERAL_NAME_free(
Pointer< GENERAL_NAME> gen) → void -
GENERAL_NAME_free releases memory associated with
gen. -
GENERAL_NAME_get0_otherName(
Pointer< GENERAL_NAME> gen, Pointer<Pointer< out_oid, Pointer<ASN1_OBJECT> >Pointer< out_value) → intASN1_TYPE> > -
GENERAL_NAME_get0_otherName, if
genis an OtherName, sets*out_oidand*out_valueto the OtherName's type-id and value, respectively, and returns one. Ifgenis not an OtherName, it returns zero and leaves*out_oidand*out_valueunmodified. Either ofout_oidorout_valuemay be NULL to ignore the value. -
GENERAL_NAME_get0_value(
Pointer< GENERAL_NAME> gen, Pointer<Int> out_type) → Pointer<Void> -
GENERAL_NAME_get0_value returns the in-memory representation of
gen's contents and,out_typeis not NULL, sets*out_typeto the type ofgen, which will be aGEN_*constant. Ifgenis incomplete, the return value will be NULL and the type will be -1. -
GENERAL_NAME_new(
) → Pointer< GENERAL_NAME> -
GENERAL_NAME_new returns a new, empty
GENERAL_NAME, or NULL on error. -
GENERAL_NAME_print(
Pointer< BIO> out, Pointer<GENERAL_NAME> gen) → int -
GENERAL_NAME_print prints a human-readable representation of
gentoout. It returns one on success and zero on error. -
GENERAL_NAME_set0_othername(
Pointer< GENERAL_NAME> gen, Pointer<ASN1_OBJECT> oid, Pointer<ASN1_TYPE> value) → int -
GENERAL_NAME_set0_othername sets
gento be an OtherName with typeoidand valuevalue. On success, it returns one and takes ownership ofoidandvalue, which must be created in a way compatible withASN1_OBJECT_freeandASN1_TYPE_free, respectively. On allocation failure, it returns zero. In the failure case, the caller retains ownership ofoidandvalueand must release them when done. -
GENERAL_NAME_set0_value(
Pointer< GENERAL_NAME> gen, int type, Pointer<Void> value) → void -
GENERAL_NAME_set0_value set
gen's type and value totypeandvalue.typemust be aGEN_*constant andvaluemust be an object of the corresponding type.gentakes ownership ofvalue, sovaluemust have been an allocated object. -
GENERAL_NAMES_free(
Pointer< GENERAL_NAMES> gens) → void -
GENERAL_NAMES_free releases memory associated with
gens. -
GENERAL_NAMES_new(
) → Pointer< GENERAL_NAMES> -
GENERAL_NAMES_new returns a new, empty
GENERAL_NAMES, or NULL on error. -
GENERAL_SUBTREE_free(
Pointer< GENERAL_SUBTREE> subtree) → void -
GENERAL_SUBTREE_free releases memory associated with
subtree. -
GENERAL_SUBTREE_new(
) → Pointer< GENERAL_SUBTREE> -
GENERAL_SUBTREE_new returns a newly-allocated, empty
GENERAL_SUBTREEobject, or NULL on error. -
HKDF(
Pointer< Uint8> out_key, int out_len, Pointer<EVP_MD> digest, Pointer<Uint8> secret, int secret_len, Pointer<Uint8> salt, int salt_len, Pointer<Uint8> info, int info_len) → int -
HKDF computes HKDF (as specified by RFC 5869) of initial keying material
secretwithsaltandinfousingdigest, and outputsout_lenbytes toout_key. It returns one on success and zero on error. -
HKDF_expand(
Pointer< Uint8> out_key, int out_len, Pointer<EVP_MD> digest, Pointer<Uint8> prk, int prk_len, Pointer<Uint8> info, int info_len) → int -
HKDF_expand computes a HKDF OKM (as specified by RFC 5869) of length
out_lenfrom the PRKprkand infoinfousingdigest, and outputs the result toout_key. It returns one on success and zero on error. -
HKDF_extract(
Pointer< Uint8> out_key, Pointer<Size> out_len, Pointer<EVP_MD> digest, Pointer<Uint8> secret, int secret_len, Pointer<Uint8> salt, int salt_len) → int -
HKDF_extract computes a HKDF PRK (as specified by RFC 5869) from initial
keying material
secretand saltsaltusingdigest, and outputsout_lenbytes toout_key. The maximum output size isEVP_MAX_MD_SIZE. It returns one on success and zero on error. -
HMAC(
Pointer< EVP_MD> evp_md, Pointer<Void> key, int key_len, Pointer<Uint8> data, int data_len, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → Pointer<Uint8> -
HMAC calculates the HMAC of
data_lenbytes ofdata, using the given key and hash function, and writes the result toout. On entry,outmust contain at leastEVP_MD_sizebytes of space. The actual length of the result is written to*out_len. An output size ofEVP_MAX_MD_SIZEwill always be large enough. It returnsoutor NULL on error. -
HMAC_CTX_cleanse(
Pointer< HMAC_CTX> ctx) → void -
HMAC_CTX_cleanse zeros the digest state from
ctxand then performs the actions ofHMAC_CTX_cleanup. -
HMAC_CTX_cleanup(
Pointer< HMAC_CTX> ctx) → void -
HMAC_CTX_cleanup frees data owned by
ctx. It does not freectxitself. -
HMAC_CTX_copy(
Pointer< HMAC_CTX> dest, Pointer<HMAC_CTX> src) → int -
HMAC_CTX_copy calls
HMAC_CTX_initondestand then sets it equal tosrc. On entry,destmust /not/ be initialised for an operation withHMAC_Init_ex. It returns one on success and zero on error. -
HMAC_CTX_copy_ex(
Pointer< HMAC_CTX> dest, Pointer<HMAC_CTX> src) → int -
HMAC_CTX_copy_ex sets
destequal tosrc. On entry,destmust have been initialised by callingHMAC_CTX_init. It returns one on success and zero on error. -
HMAC_CTX_free(
Pointer< HMAC_CTX> ctx) → void -
HMAC_CTX_free calls
HMAC_CTX_cleanupand then freesctxitself. -
HMAC_CTX_get_md(
Pointer< HMAC_CTX> ctx) → Pointer<EVP_MD> -
HMAC_CTX_get_md returns
ctx's hash function. -
HMAC_CTX_init(
Pointer< HMAC_CTX> ctx) → void -
HMAC_CTX_init initialises
ctxfor use in an HMAC operation. It's assumed that HMAC_CTX objects will be allocated on the stack thus no allocation function is provided. -
HMAC_CTX_new(
) → Pointer< HMAC_CTX> -
HMAC_CTX_new allocates and initialises a new
HMAC_CTXand returns it, or NULL on allocation failure. The caller must useHMAC_CTX_freeto release the resulting object. -
HMAC_CTX_reset(
Pointer< HMAC_CTX> ctx) → void -
HMAC_CTX_reset calls
HMAC_CTX_cleanupfollowed byHMAC_CTX_init. -
HMAC_Final(
Pointer< HMAC_CTX> ctx, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → int -
HMAC_Final completes the HMAC operation in
ctxand writes the result toout. Ifout_lenis notNULLthen it writes the length of the result to*out_len. On entry,outmust contain at leastHMAC_sizebytes of space. An output size ofEVP_MAX_MD_SIZEwill always be large enough. It returns one on success or zero on allocation failure. -
HMAC_Init(
Pointer< HMAC_CTX> ctx, Pointer<Void> key, int key_len, Pointer<EVP_MD> md) → int - Deprecated functions.
-
HMAC_Init_ex(
Pointer< HMAC_CTX> ctx, Pointer<Void> key, int key_len, Pointer<EVP_MD> md, Pointer<ENGINE> impl) → int -
HMAC_Init_ex sets up an initialised
HMAC_CTXto usemdas the hash function andkeyas the key. For a non-initial call,mdmay be NULL, in which case the previous hash function will be used. If the hash function has not changed andkeyis NULL,ctxreuses the previous key. It returns one on success or zero on allocation failure. -
HMAC_size(
Pointer< HMAC_CTX> ctx) → int -
HMAC_size returns the size, in bytes, of the HMAC that will be produced by
ctx. On entry,ctxmust have been setup withHMAC_Init_ex. -
HMAC_Update(
Pointer< HMAC_CTX> ctx, Pointer<Uint8> data, int data_len) → int -
HMAC_Update hashes
data_lenbytes fromdatainto the current HMAC operation inctx. It returns one. -
i2a_ASN1_ENUMERATED(
Pointer< BIO> bp, Pointer<ASN1_OCTET_STRING> a) → int -
i2a_ASN1_ENUMERATED writes a human-readable representation of
atobp. It returns the number of bytes written on success, or a negative number on error. On error, this function may have written a partial output tobp. -
i2a_ASN1_INTEGER(
Pointer< BIO> bp, Pointer<ASN1_OCTET_STRING> a) → int -
i2a_ASN1_INTEGER writes a human-readable representation of
atobp. It returns the number of bytes written on success, or a negative number on error. On error, this function may have written a partial output tobp. -
i2a_ASN1_OBJECT(
Pointer< BIO> bp, Pointer<ASN1_OBJECT> a) → int -
i2a_ASN1_OBJECT writes a human-readable representation of
atobp. It returns the number of bytes written on success, or a negative number on error. On error, this function may have written a partial output tobp. -
i2a_ASN1_STRING(
Pointer< BIO> bp, Pointer<ASN1_OCTET_STRING> a, int type) → int -
i2a_ASN1_STRING writes a text representation of
a's contents tobp. It returns the number of bytes written on success, or a negative number on error. On error, this function may have written a partial output tobp.typeis ignored. -
i2c_ASN1_BIT_STRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2c_ASN1_BIT_STRING encodes
inas the contents of a DER-encoded BIT STRING, excluding the tag and length. Ifoutpis non-NULL, it writes the result to*outp, advances*outpjust past the output, and returns the number of bytes written.*outpmust have space available for the result. Ifoutpis NULL, it returns the number of bytes without writing anything. On error, it returns a value <= 0. -
i2c_ASN1_INTEGER(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2c_ASN1_INTEGER encodes
inas the contents of a DER-encoded INTEGER, excluding the tag and length. Ifoutpis non-NULL, it writes the result to*outp, advances*outpjust past the output, and returns the number of bytes written.*outpmust have space available for the result. Ifoutpis NULL, it returns the number of bytes without writing anything. On error, it returns a value <= 0. -
i2d_ASN1_BIT_STRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_BIT_STRING marshals
inas a DER-encoded ASN.1 BIT STRING, as described ini2d_SAMPLE. -
i2d_ASN1_BMPSTRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
The following functions marshal
inas a DER-encoded ASN.1 value of the corresponding type, as described ini2d_SAMPLE. -
i2d_ASN1_BOOLEAN(
int a, Pointer< Pointer< outp) → intUnsignedChar> > -
i2d_ASN1_BOOLEAN marshals
aas a DER-encoded ASN.1 BOOLEAN, as described ini2d_SAMPLE. -
i2d_ASN1_ENUMERATED(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_ENUMERATED marshals
inas a DER-encoded ASN.1 ENUMERATED, as described ini2d_SAMPLE. -
i2d_ASN1_GENERALIZEDTIME(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_GENERALIZEDTIME marshals
inas a DER-encoded ASN.1 GeneralizedTime, as described ini2d_SAMPLE. -
i2d_ASN1_GENERALSTRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_IA5STRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_INTEGER(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_INTEGER marshals
inas a DER-encoded ASN.1 INTEGER, as described ini2d_SAMPLE. -
i2d_ASN1_NULL(
Pointer< ASN1_NULL> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_NULL marshals
inas a DER-encoded ASN.1 NULL value, as described ini2d_SAMPLE. -
i2d_ASN1_OBJECT(
Pointer< ASN1_OBJECT> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_OBJECT marshals
inas a DER-encoded ASN.1 OBJECT IDENTIFIER, as described ini2d_SAMPLE. -
i2d_ASN1_OCTET_STRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_PRINTABLESTRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_SEQUENCE_ANY(
Pointer< ASN1_SEQUENCE_ANY> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_SEQUENCE_ANY marshals
inas a DER-encoded SEQUENCE OF ANY structure, as described ini2d_SAMPLE. -
i2d_ASN1_SET_ANY(
Pointer< ASN1_SEQUENCE_ANY> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_SET_ANY marshals
inas a DER-encoded SET OF ANY structure, as described ini2d_SAMPLE. -
i2d_ASN1_T61STRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_TIME(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_TIME marshals
inas a DER-encoded X.509 Time (RFC 5280), as described ini2d_SAMPLE. -
i2d_ASN1_TYPE(
Pointer< ASN1_TYPE> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_TYPE marshals
inas DER, as described ini2d_SAMPLE. -
i2d_ASN1_UNIVERSALSTRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_UTCTIME(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_UTCTIME marshals
inas a DER-encoded ASN.1 UTCTime, as described ini2d_SAMPLE. -
i2d_ASN1_UTF8STRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_ASN1_VISIBLESTRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_AUTHORITY_INFO_ACCESS(
Pointer< AUTHORITY_INFO_ACCESS> aia, Pointer<Pointer< outp) → intUint8> > -
i2d_AUTHORITY_INFO_ACCESS marshals
aiaas a DER-encoded AuthorityInfoAccessSyntax (RFC 5280), as described ini2d_SAMPLE. -
i2d_AUTHORITY_KEYID(
Pointer< AUTHORITY_KEYID> akid, Pointer<Pointer< outp) → intUint8> > -
i2d_AUTHORITY_KEYID marshals
akidas a DER-encoded AuthorityKeyIdentifier (RFC 5280), as described ini2d_SAMPLE. -
i2d_BASIC_CONSTRAINTS(
Pointer< BASIC_CONSTRAINTS> bcons, Pointer<Pointer< outp) → intUint8> > -
i2d_BASIC_CONSTRAINTS marshals
bconsas a DER-encoded BasicConstraints (RFC 5280), as described ini2d_SAMPLE. -
i2d_CERTIFICATEPOLICIES(
Pointer< CERTIFICATEPOLICIES> policies, Pointer<Pointer< outp) → intUint8> > -
i2d_CERTIFICATEPOLICIES marshals
policiesas a DER-encoded CertificatePolicies (RFC 5280), as described ini2d_SAMPLE. -
i2d_CRL_DIST_POINTS(
Pointer< CRL_DIST_POINTS> crldp, Pointer<Pointer< outp) → intUint8> > -
i2d_CRL_DIST_POINTS marshals
crldpas a DER-encoded CRLDistributionPoints (RFC 5280), as described ini2d_SAMPLE. -
i2d_DHparams(
Pointer< DH> in$, Pointer<Pointer< outp) → intUnsignedChar> > -
i2d_DHparams marshals
into a DER-encoded DHParameter structure (PKCS #3), as described ini2d_SAMPLE. -
i2d_DHparams_bio(
Pointer< BIO> bp, Pointer<DH> dh) → int -
i2d_DIRECTORYSTRING(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_DIRECTORYSTRING marshals
inas a DER-encoded X.509 DirectoryString (RFC 5280), as described ini2d_SAMPLE. -
i2d_DISPLAYTEXT(
Pointer< ASN1_OCTET_STRING> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_DISPLAYTEXT marshals
inas a DER-encoded X.509 DisplayText (RFC 5280), as described ini2d_SAMPLE. -
i2d_DSA_PUBKEY(
Pointer< DSA> dsa, Pointer<Pointer< outp) → intUint8> > -
i2d_DSA_PUBKEY marshals
dsaas a DER-encoded SubjectPublicKeyInfo, as described ini2d_SAMPLE. -
i2d_DSA_PUBKEY_bio(
Pointer< BIO> bp, Pointer<DSA> dsa) → int -
i2d_DSA_PUBKEY_fp(
Pointer< FILE> fp, Pointer<DSA> dsa) → int -
i2d_DSA_SIG(
Pointer< DSA_SIG> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_DSA_SIG marshals
into a DER-encoded DSA-Sig-Value structure, as described ini2d_SAMPLE. -
i2d_DSAparams(
Pointer< DSA> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_DSAparams marshals
in's parameters as a DER-encoded Dss-Parms structure (RFC 3279), as described ini2d_SAMPLE. -
i2d_DSAPrivateKey(
Pointer< DSA> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_DSAPrivateKey marshals
inas a DER-encoded DSA private key, as described ini2d_SAMPLE. -
i2d_DSAPrivateKey_bio(
Pointer< BIO> bp, Pointer<DSA> dsa) → int -
i2d_DSAPrivateKey_fp(
Pointer< FILE> fp, Pointer<DSA> dsa) → int -
i2d_DSAPublicKey(
Pointer< DSA> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_DSAPublicKey marshals
inas a DER-encoded DSA public key, as described ini2d_SAMPLE. -
i2d_EC_PUBKEY(
Pointer< EC_KEY> ec_key, Pointer<Pointer< outp) → intUint8> > -
i2d_EC_PUBKEY marshals
ec_keyas a DER-encoded SubjectPublicKeyInfo, as described ini2d_SAMPLE. -
i2d_EC_PUBKEY_bio(
Pointer< BIO> bp, Pointer<EC_KEY> eckey) → int -
i2d_EC_PUBKEY_fp(
Pointer< FILE> fp, Pointer<EC_KEY> eckey) → int -
i2d_ECDSA_SIG(
Pointer< ECDSA_SIG> sig, Pointer<Pointer< outp) → intUint8> > -
i2d_ECDSA_SIG marshals
sigas a DER-encoded ECDSA-Sig-Value, as described ini2d_SAMPLE. -
i2d_ECParameters(
Pointer< EC_KEY> key, Pointer<Pointer< outp) → intUint8> > -
i2d_ECParameters marshals
key's parameters as a DER-encoded OBJECT IDENTIFIER, as described ini2d_SAMPLE. -
i2d_ECPKParameters(
Pointer< EC_GROUP> group, Pointer<Pointer< outp) → intUint8> > -
i2d_ECPKParameters marshals
groupas a DER-encoded ECParameters structure (RFC 5480), as described ini2d_SAMPLE. -
i2d_ECPrivateKey(
Pointer< EC_KEY> key, Pointer<Pointer< outp) → intUint8> > -
i2d_ECPrivateKey marshals
keyas a DER-encoded ECPrivateKey structure (RFC 5915), as described ini2d_SAMPLE. -
i2d_ECPrivateKey_bio(
Pointer< BIO> bp, Pointer<EC_KEY> eckey) → int -
i2d_ECPrivateKey_fp(
Pointer< FILE> fp, Pointer<EC_KEY> eckey) → int -
i2d_EXTENDED_KEY_USAGE(
Pointer< EXTENDED_KEY_USAGE> eku, Pointer<Pointer< outp) → intUint8> > -
i2d_EXTENDED_KEY_USAGE marshals
ekuas a DER-encoded ExtKeyUsageSyntax (RFC 5280), as described ini2d_SAMPLE. -
i2d_GENERAL_NAME(
Pointer< GENERAL_NAME> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_GENERAL_NAME marshals
inas a DER-encoded X.509 GeneralName (RFC 5280), as described ini2d_SAMPLE. -
i2d_GENERAL_NAMES(
Pointer< GENERAL_NAMES> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_GENERAL_NAMES marshals
inas a DER-encoded SEQUENCE OF GeneralName, as described ini2d_SAMPLE. -
i2d_ISSUING_DIST_POINT(
Pointer< ISSUING_DIST_POINT> idp, Pointer<Pointer< outp) → intUint8> > -
i2d_ISSUING_DIST_POINT marshals
idpas a DER-encoded IssuingDistributionPoint (RFC 5280), as described ini2d_SAMPLE. -
i2d_NETSCAPE_SPKAC(
Pointer< NETSCAPE_SPKAC> spkac, Pointer<Pointer< outp) → intUint8> > -
i2d_NETSCAPE_SPKAC marshals
spkacas a DER-encoded PublicKeyAndChallenge structure, as described ini2d_SAMPLE. -
i2d_NETSCAPE_SPKI(
Pointer< NETSCAPE_SPKI> spki, Pointer<Pointer< outp) → intUint8> > -
i2d_NETSCAPE_SPKI marshals
spkias a DER-encoded SignedPublicKeyAndChallenge structure, as described ini2d_SAMPLE. -
i2d_PKCS7(
Pointer< PKCS7> p7, Pointer<Pointer< out) → intUint8> > -
i2d_PKCS7 marshals
p7as a DER-encoded PKCS#7 ContentInfo structure, as described ini2d_SAMPLE. -
i2d_PKCS7_bio(
Pointer< BIO> bio, Pointer<PKCS7> p7) → int -
i2d_PKCS7_bio writes
p7tobio. It returns one on success and zero on error. -
i2d_PKCS8_bio(
Pointer< BIO> bp, Pointer<X509_SIG> p8) → int -
i2d_PKCS8_fp(
Pointer< FILE> fp, Pointer<X509_SIG> p8) → int -
i2d_PKCS8_PRIV_KEY_INFO(
Pointer< PKCS8_PRIV_KEY_INFO> key, Pointer<Pointer< outp) → intUint8> > -
i2d_PKCS8_PRIV_KEY_INFO marshals
keyas a DER-encoded PrivateKeyInfo, as described ini2d_SAMPLE. -
i2d_PKCS8_PRIV_KEY_INFO_bio(
Pointer< BIO> bp, Pointer<PKCS8_PRIV_KEY_INFO> p8inf) → int -
i2d_PKCS8_PRIV_KEY_INFO_fp(
Pointer< FILE> fp, Pointer<PKCS8_PRIV_KEY_INFO> p8inf) → int -
i2d_PKCS8PrivateKey_bio(
Pointer< BIO> bio, Pointer<EVP_PKEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
i2d_PKCS8PrivateKey_bio encodes
inas a DER-encoded structure and writes it tobio. It returns one on success and zero on error. The structure used depends onenc: -
i2d_PKCS8PrivateKey_fp(
Pointer< FILE> fp, Pointer<EVP_PKEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
i2d_PKCS8PrivateKey_fp behaves like
i2d_PKCS8PrivateKey_biobut writes tofp. -
i2d_PKCS8PrivateKey_nid_bio(
Pointer< BIO> bio, Pointer<EVP_PKEY> in$, int nid, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
i2d_PKCS8PrivateKey_nid_bio encodes
inas a DER-encoded structure and writes it tobio. It returns one on success and zero on error. The structure used depends onnid: -
i2d_PKCS8PrivateKey_nid_fp(
Pointer< FILE> fp, Pointer<EVP_PKEY> in$, int nid, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
i2d_PKCS8PrivateKey_nid_fp behaves like
i2d_PKCS8PrivateKey_nid_biobut writes tofp. -
i2d_PKCS8PrivateKeyInfo_bio(
Pointer< BIO> bp, Pointer<EVP_PKEY> key) → int -
i2d_PKCS8PrivateKeyInfo_bio encodes
keyas a PKCS#8 PrivateKeyInfo structure (seeEVP_marshal_private_key) and writes the result tobp. It returns one on success and zero on error. -
i2d_PKCS8PrivateKeyInfo_fp(
Pointer< FILE> fp, Pointer<EVP_PKEY> key) → int -
i2d_PrivateKey(
Pointer< EVP_PKEY> key, Pointer<Pointer< outp) → intUint8> > -
i2d_PrivateKey marshals a private key from
keyto type-specific format, as described ini2d_SAMPLE. -
i2d_PrivateKey_bio(
Pointer< BIO> bp, Pointer<EVP_PKEY> pkey) → int -
i2d_PrivateKey_fp(
Pointer< FILE> fp, Pointer<EVP_PKEY> pkey) → int -
i2d_PUBKEY(
Pointer< EVP_PKEY> pkey, Pointer<Pointer< outp) → intUint8> > -
i2d_PUBKEY marshals
pkeyas a DER-encoded SubjectPublicKeyInfo, as described ini2d_SAMPLE. -
i2d_PUBKEY_bio(
Pointer< BIO> bp, Pointer<EVP_PKEY> pkey) → int -
i2d_PUBKEY_fp(
Pointer< FILE> fp, Pointer<EVP_PKEY> pkey) → int -
i2d_PublicKey(
Pointer< EVP_PKEY> key, Pointer<Pointer< outp) → intUint8> > -
i2d_PublicKey marshals a public key from
keyto a type-specific format, as described ini2d_SAMPLE. -
i2d_re_X509_CRL_tbs(
Pointer< X509_CRL> crl, Pointer<Pointer< outp) → intUnsignedChar> > -
i2d_re_X509_CRL_tbs serializes the TBSCertList portion of
crl, as described ini2d_SAMPLE. -
i2d_re_X509_REQ_tbs(
Pointer< X509_REQ> req, Pointer<Pointer< outp) → intUint8> > -
i2d_re_X509_REQ_tbs serializes the CertificationRequestInfo (see RFC 2986)
portion of
req, as described ini2d_SAMPLE. -
i2d_re_X509_tbs(
Pointer< X509> x509, Pointer<Pointer< outp) → intUint8> > -
i2d_re_X509_tbs serializes the TBSCertificate portion of
x509, as described ini2d_SAMPLE. -
i2d_RSA_PSS_PARAMS(
Pointer< RSA_PSS_PARAMS> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_RSA_PSS_PARAMS marshals
inas a DER-encoded RSASSA-PSS-params (RFC 4055), as described ini2d_SAMPLE. -
i2d_RSA_PUBKEY(
Pointer< RSA> rsa, Pointer<Pointer< outp) → intUint8> > -
i2d_RSA_PUBKEY marshals
rsaas a DER-encoded SubjectPublicKeyInfo structure, as described ini2d_SAMPLE. -
i2d_RSA_PUBKEY_bio(
Pointer< BIO> bp, Pointer<RSA> rsa) → int -
i2d_RSA_PUBKEY_fp(
Pointer< FILE> fp, Pointer<RSA> rsa) → int -
i2d_RSAPrivateKey(
Pointer< RSA> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_RSAPrivateKey marshals
into a DER-encoded RSAPrivateKey structure (RFC 8017), as described ini2d_SAMPLE. -
i2d_RSAPrivateKey_bio(
Pointer< BIO> bp, Pointer<RSA> rsa) → int -
i2d_RSAPrivateKey_fp(
Pointer< FILE> fp, Pointer<RSA> rsa) → int -
i2d_RSAPublicKey(
Pointer< RSA> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_RSAPublicKey marshals
into a DER-encoded RSAPublicKey structure (RFC 8017), as described ini2d_SAMPLE. -
i2d_RSAPublicKey_bio(
Pointer< BIO> bp, Pointer<RSA> rsa) → int -
i2d_RSAPublicKey_fp(
Pointer< FILE> fp, Pointer<RSA> rsa) → int -
i2d_X509(
Pointer< X509> x509, Pointer<Pointer< outp) → intUint8> > -
i2d_X509 marshals
x509as a DER-encoded X.509 Certificate (RFC 5280), as described ini2d_SAMPLE. -
i2d_X509_ALGOR(
Pointer< X509_ALGOR> alg, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_ALGOR marshals
algas a DER-encoded AlgorithmIdentifier, as described ini2d_SAMPLE. -
i2d_X509_ATTRIBUTE(
Pointer< X509_ATTRIBUTE> alg, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_ATTRIBUTE marshals
algas a DER-encoded Attribute (RFC 2986), as described ini2d_SAMPLE. -
i2d_X509_AUX(
Pointer< X509> x509, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_AUX marshals
x509as a DER-encoded X.509 Certificate (RFC 5280), followed optionally by a separate, OpenSSL-specific structure with auxiliary properties. It behaves as described ini2d_SAMPLE. -
i2d_X509_bio(
Pointer< BIO> bp, Pointer<X509> x509) → int -
The following functions behave like the corresponding unsuffixed
i2d_*functions, but write the result tobp. They return one on success and zero on error. Callers using them with memoryBIOs to encode structures to memory should usei2d_*directly instead. -
i2d_X509_CRL(
Pointer< X509_CRL> crl, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_CRL marshals
crlas a X.509 CertificateList (RFC 5280), as described ini2d_SAMPLE. -
i2d_X509_CRL_bio(
Pointer< BIO> bp, Pointer<X509_CRL> crl) → int -
i2d_X509_CRL_fp(
Pointer< FILE> fp, Pointer<X509_CRL> crl) → int -
i2d_X509_CRL_tbs(
Pointer< X509_CRL> crl, Pointer<Pointer< outp) → intUnsignedChar> > -
i2d_X509_CRL_tbs serializes the TBSCertList portion of
crl, as described ini2d_SAMPLE. -
i2d_X509_EXTENSION(
Pointer< X509_EXTENSION> ex, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_EXTENSION marshals
exas a DER-encoded X.509 Extension (RFC 5280), as described ini2d_SAMPLE. -
i2d_X509_EXTENSIONS(
Pointer< X509_EXTENSIONS> alg, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_EXTENSIONS marshals
algas a DER-encoded SEQUENCE OF Extension (RFC 5280), as described ini2d_SAMPLE. -
i2d_X509_fp(
Pointer< FILE> fp, Pointer<X509> x509) → int -
The following functions behave like the corresponding
i2d_*_biofunctions, but write tofpinstead. -
i2d_X509_NAME(
Pointer< X509_NAME> in$, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_NAME marshals
inas a DER-encoded X.509 Name (RFC 5280), as described ini2d_SAMPLE. -
i2d_X509_PUBKEY(
Pointer< X509_PUBKEY> key, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_PUBKEY marshals
keyas a DER-encoded SubjectPublicKeyInfo, as described ini2d_SAMPLE. -
i2d_X509_REQ(
Pointer< X509_REQ> req, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_REQ marshals
reqas a CertificateRequest (RFC 2986), as described ini2d_SAMPLE. -
i2d_X509_REQ_bio(
Pointer< BIO> bp, Pointer<X509_REQ> req) → int -
i2d_X509_REQ_fp(
Pointer< FILE> fp, Pointer<X509_REQ> req) → int -
i2d_X509_REVOKED(
Pointer< X509_REVOKED> alg, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_REVOKED marshals
algas a DER-encoded X.509 CRL entry, as described ini2d_SAMPLE. -
i2d_X509_SIG(
Pointer< X509_SIG> sig, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_SIG marshals
sigas a DER-encoded algorithm and octet string pair, as described ini2d_SAMPLE. -
i2d_X509_tbs(
Pointer< X509> x509, Pointer<Pointer< outp) → intUint8> > -
i2d_X509_tbs serializes the TBSCertificate portion of
x509, as described ini2d_SAMPLE. -
i2o_ECPublicKey(
Pointer< EC_KEY> key, Pointer<Pointer< outp) → intUnsignedChar> > -
i2o_ECPublicKey marshals an EC point from
key, as described ini2d_SAMPLE, except it returns zero on error instead of a negative value. -
i2s_ASN1_ENUMERATED(
Pointer< X509V3_EXT_METHOD> method, Pointer<ASN1_OCTET_STRING> aint) → Pointer<Char> -
i2s_ASN1_ENUMERATED returns a human-readable representation of
aintas a newly-allocated, NUL-terminated string, or NULL on error.methodis ignored. The caller must release the result withOPENSSL_freewhen done. -
i2s_ASN1_INTEGER(
Pointer< X509V3_EXT_METHOD> method, Pointer<ASN1_OCTET_STRING> aint) → Pointer<Char> -
i2s_ASN1_INTEGER returns a human-readable representation of
aintas a newly-allocated, NUL-terminated string, or NULL on error.methodis ignored. The caller must release the result withOPENSSL_freewhen done. -
i2s_ASN1_OCTET_STRING(
Pointer< X509V3_EXT_METHOD> method, Pointer<ASN1_OCTET_STRING> oct) → Pointer<Char> -
i2s_ASN1_OCTET_STRING returns a human-readable representation of
octas a newly-allocated, NUL-terminated string, or NULL on error.methodis ignored. The caller must release the result withOPENSSL_freewhen done. -
i2t_ASN1_OBJECT(
Pointer< Char> buf, int buf_len, Pointer<ASN1_OBJECT> a) → int -
i2t_ASN1_OBJECT calls
OBJ_obj2txtwithalways_return_oidset to zero. -
i2v_GENERAL_NAME(
Pointer< X509V3_EXT_METHOD> method, Pointer<GENERAL_NAME> gen, Pointer<stack_st_CONF_VALUE> ret) → Pointer<stack_st_CONF_VALUE> -
i2v_GENERAL_NAME serializes
genas aCONF_VALUE. Ifretis non-NULL, it appends the value toretand returnsreton success or NULL on error. If it returns NULL, the caller is still responsible for freeingret. Ifretis NULL, it returns a newly-allocatedSTACK_OF(CONF_VALUE)containing the result.methodis ignored. When done, the caller should release the result withsk_CONF_VALUE_pop_freeandX509V3_conf_free. -
i2v_GENERAL_NAMES(
Pointer< X509V3_EXT_METHOD> method, Pointer<GENERAL_NAMES> gen, Pointer<stack_st_CONF_VALUE> extlist) → Pointer<stack_st_CONF_VALUE> -
i2v_GENERAL_NAMES serializes
genas a list ofCONF_VALUEs. Ifretis non-NULL, it appends the values toretand returnsreton success or NULL on error. If it returns NULL, the caller is still responsible for freeingret. Ifretis NULL, it returns a newly-allocatedSTACK_OF(CONF_VALUE)containing the results.methodis ignored. -
ISSUING_DIST_POINT_free(
Pointer< ISSUING_DIST_POINT> idp) → void -
ISSUING_DIST_POINT_free releases memory associated with
idp. -
ISSUING_DIST_POINT_new(
) → Pointer< ISSUING_DIST_POINT> -
ISSUING_DIST_POINT_new returns a newly-allocated, empty
ISSUING_DIST_POINTobject, or NULL on error. -
METHOD_ref(
Pointer< Void> method) → void -
METHOD_ref increments the reference count of
method. This is a no-op for now because all methods are currently static. -
METHOD_unref(
Pointer< Void> method) → void -
METHOD_unref decrements the reference count of
methodand frees it if the reference count drops to zero. This is a no-op for now because all methods are currently static. -
NAME_CONSTRAINTS_check(
Pointer< X509> x509, Pointer<NAME_CONSTRAINTS> nc) → int -
NAME_CONSTRAINTS_check checks if
x509satisfies name constraints innc. It returnsX509_V_OKon success and someX509_V_ERR_*constant on error. -
NAME_CONSTRAINTS_free(
Pointer< NAME_CONSTRAINTS> ncons) → void -
NAME_CONSTRAINTS_free releases memory associated with
ncons. -
NAME_CONSTRAINTS_new(
) → Pointer< NAME_CONSTRAINTS> -
NAME_CONSTRAINTS_new returns a newly-allocated, empty
NAME_CONSTRAINTSobject, or NULL on error. -
NCONF_free(
Pointer< CONF> conf) → void -
NCONF_free frees all the data owned by
confand thenconfitself. -
NCONF_get_section(
Pointer< CONF> conf, Pointer<Char> section) → Pointer<stack_st_CONF_VALUE> -
NCONF_get_section returns a stack of values for a given section in
conf. Ifsectionis NULL, the default section is returned. It returns NULL on error. -
NCONF_get_string(
Pointer< CONF> conf, Pointer<Char> section, Pointer<Char> name) → Pointer<Char> -
NCONF_get_string returns the value of the key
name, in sectionsection. Thesectionargument may be NULL to indicate the default section. It returns the value or NULL on error. -
NCONF_load(
Pointer< CONF> conf, Pointer<Char> filename, Pointer<Long> out_error_line) → int -
NCONF_load parses the file named
filenameand adds the values found toconf. It returns one on success and zero on error. In the event of an error, ifout_error_lineis not NULL,*out_error_lineis set to the number of the line that contained the error. -
NCONF_load_bio(
Pointer< CONF> conf, Pointer<BIO> bio, Pointer<Long> out_error_line) → int -
NCONF_load_bio acts like
NCONF_loadbut reads frombiorather than from a named file. -
NCONF_new(
Pointer< Void> method) → Pointer<CONF> -
NCONF_new returns a fresh, empty
CONF, or NULL on error. Themethodargument must be NULL. -
NETSCAPE_SPKAC_free(
Pointer< NETSCAPE_SPKAC> spkac) → void -
NETSCAPE_SPKAC_free releases memory associated with
spkac. -
NETSCAPE_SPKAC_new(
) → Pointer< NETSCAPE_SPKAC> -
NETSCAPE_SPKAC_new returns a newly-allocated, empty
NETSCAPE_SPKACobject, or NULL on error. -
NETSCAPE_SPKI_b64_decode(
Pointer< Char> str, int len) → Pointer<NETSCAPE_SPKI> -
NETSCAPE_SPKI_b64_decode decodes
lenbytes fromstras a base64-encoded SignedPublicKeyAndChallenge structure. It returns a newly-allocatedNETSCAPE_SPKIstructure with the result, or NULL on error. Iflenis 0 or negative, the length is calculated withstrlenandstrmust be a NUL-terminated C string. -
NETSCAPE_SPKI_b64_encode(
Pointer< NETSCAPE_SPKI> spki) → Pointer<Char> -
NETSCAPE_SPKI_b64_encode encodes
spkias a base64-encoded SignedPublicKeyAndChallenge structure. It returns a newly-allocated NUL-terminated C string with the result, or NULL on error. The caller must release the memory withOPENSSL_freewhen done. -
NETSCAPE_SPKI_free(
Pointer< NETSCAPE_SPKI> spki) → void -
NETSCAPE_SPKI_free releases memory associated with
spki. -
NETSCAPE_SPKI_get_pubkey(
Pointer< NETSCAPE_SPKI> spki) → Pointer<EVP_PKEY> -
NETSCAPE_SPKI_get_pubkey decodes and returns the public key in
spkias anEVP_PKEY, or NULL on error. The caller takes ownership of the resulting pointer and must callEVP_PKEY_freewhen done. -
NETSCAPE_SPKI_new(
) → Pointer< NETSCAPE_SPKI> -
NETSCAPE_SPKI_new returns a newly-allocated, empty
NETSCAPE_SPKIobject, or NULL on error. -
NETSCAPE_SPKI_set_pubkey(
Pointer< NETSCAPE_SPKI> spki, Pointer<EVP_PKEY> pkey) → int -
NETSCAPE_SPKI_set_pubkey sets
spki's public key topkey. It returns one on success or zero on error. -
NETSCAPE_SPKI_sign(
Pointer< NETSCAPE_SPKI> spki, Pointer<EVP_PKEY> pkey, Pointer<EVP_MD> md) → int -
NETSCAPE_SPKI_sign signs
spkiwithpkeyand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. This function uses digest algorithmmd, orpkey's default if NULL. Other signing parameters usepkey's defaults. -
NETSCAPE_SPKI_verify(
Pointer< NETSCAPE_SPKI> spki, Pointer<EVP_PKEY> pkey) → int -
NETSCAPE_SPKI_verify checks that
spkihas a valid signature bypkey. It returns one if the signature is valid and zero otherwise. -
NOTICEREF_free(
Pointer< NOTICEREF> ref) → void -
NOTICEREF_free releases memory associated with
ref. -
NOTICEREF_new(
) → Pointer< NOTICEREF> -
NOTICEREF_new returns a newly-allocated, empty
NOTICEREFobject, or NULL on error. -
o2i_ECPublicKey(
Pointer< Pointer< out_key, Pointer<EC_KEY> >Pointer< inp, int len) → Pointer<Uint8> >EC_KEY> -
o2i_ECPublicKey parses an EC point from
lenbytes at*inpinto*out_key. Note that this differs from the d2i format in that*out_keymust be non-NULL with a group set. On successful exit,*inpis advanced bylenbytes. It returns*out_keyor NULL on error. -
OBJ_cbs2nid(
Pointer< CBS> cbs) → int -
OBJ_cbs2nid returns the nid corresponding to the DER data in
cbs, orNID_undefif no such object is known. -
OBJ_cleanup(
) → void - OBJ_cleanup does nothing.
-
OBJ_cmp(
Pointer< ASN1_OBJECT> a, Pointer<ASN1_OBJECT> b) → int -
OBJ_cmp returns a value less than, equal to or greater than zero if
ais less than, equal to or greater thanb, respectively. -
OBJ_create(
Pointer< Char> oid, Pointer<Char> short_name, Pointer<Char> long_name) → int - OBJ_create adds a known object and returns the NID of the new object, or NID_undef on error.
-
OBJ_dup(
Pointer< ASN1_OBJECT> obj) → Pointer<ASN1_OBJECT> -
OBJ_dup returns a duplicate copy of
objor NULL on allocation failure. The caller must callASN1_OBJECT_freeon the result to release it. -
OBJ_find_sigid_algs(
int sign_nid, Pointer< Int> out_digest_nid, Pointer<Int> out_pkey_nid) → int -
OBJ_find_sigid_algs finds the digest and public-key NIDs that correspond to
the signing algorithm
sign_nid. If successful, it sets*out_digest_nidand*out_pkey_nidand returns one. Otherwise it returns zero. Any ofout_digest_nidorout_pkey_nidcan be NULL if the caller doesn't need that output value. -
OBJ_find_sigid_by_algs(
Pointer< Int> out_sign_nid, int digest_nid, int pkey_nid) → int -
OBJ_find_sigid_by_algs finds the signature NID that corresponds to the
combination of
digest_nidandpkey_nid. If success, it sets*out_sign_nidand returns one. Otherwise it returns zero. Theout_sign_nidargument can be NULL if the caller only wishes to learn whether the combination is valid. -
OBJ_get0_data(
Pointer< ASN1_OBJECT> obj) → Pointer<Uint8> -
OBJ_get0_data returns a pointer to the DER representation of
obj. This is the contents of the DER-encoded identifier, not including the tag and length. Ifobjdoes not have an associated object identifier (i.e. it is a nid-only value), this value is the empty string. -
OBJ_get_undef(
) → Pointer< ASN1_OBJECT> -
OBJ_get_undef returns the object for
NID_undef. Prefer this function overOBJ_nid2objto avoid pulling in the full OID table. -
OBJ_length(
Pointer< ASN1_OBJECT> obj) → int -
OBJ_length returns the length of the DER representation of
obj. This is the contents of the DER-encoded identifier, not including the tag and length. Ifobjdoes not have an associated object identifier (i.e. it is a nid-only value), this value is the empty string. -
OBJ_ln2nid(
Pointer< Char> long_name) → int -
OBJ_ln2nid returns the nid corresponding to
long_name, orNID_undefif no such long name is known. -
OBJ_nid2cbb(
Pointer< CBB> out, int nid) → int -
OBJ_nid2cbb writes
nidas an ASN.1 OBJECT IDENTIFIER toout. It returns one on success or zero otherwise. -
OBJ_nid2ln(
int nid) → Pointer< Char> -
OBJ_nid2ln returns the long name for
nid, or NULL ifnidis unknown. -
OBJ_nid2obj(
int nid) → Pointer< ASN1_OBJECT> -
OBJ_nid2obj returns the
ASN1_OBJECTcorresponding tonid, or NULL ifnidis unknown. -
OBJ_nid2sn(
int nid) → Pointer< Char> -
OBJ_nid2sn returns the short name for
nid, or NULL ifnidis unknown. -
OBJ_obj2nid(
Pointer< ASN1_OBJECT> obj) → int -
OBJ_obj2nid returns the nid corresponding to
obj, orNID_undefif no such object is known. -
OBJ_obj2txt(
Pointer< Char> out, int out_len, Pointer<ASN1_OBJECT> obj, int always_return_oid) → int -
OBJ_obj2txt converts
objto a textual representation. Ifalways_return_oidis zero thenobjwill be matched against known objects and the long (preferably) or short name will be used if found. Otherwiseobjwill be converted into a dotted sequence of integers. Ifoutis not NULL, then at mostout_lenbytes of the textual form will be written there. Ifout_lenis at least one, then string written tooutwill always be NUL terminated. It returns the number of characters that could have been written, not including the final NUL, or -1 on error. -
OBJ_sn2nid(
Pointer< Char> short_name) → int -
OBJ_sn2nid returns the nid corresponding to
short_name, orNID_undefif no such short name is known. -
OBJ_txt2nid(
Pointer< Char> s) → int -
OBJ_txt2nid returns the nid corresponding to
s, which may be a short name, long name, or an ASCII string containing a dotted sequence of numbers. It returns the nid or NID_undef if unknown. -
OBJ_txt2obj(
Pointer< Char> s, int dont_search_names) → Pointer<ASN1_OBJECT> -
OBJ_txt2obj returns an ASN1_OBJECT for the textual representation in
s. Ifdont_search_namesis zero, thenswill be matched against the long and short names of a known objects to find a match. Otherwisesmust contain an ASCII string with a dotted sequence of numbers. The resulting object need not be previously known. It returns a freshly allocatedASN1_OBJECTor NULL on error. -
OpenSSL_add_all_algorithms(
) → void - OpenSSL_add_all_algorithms does nothing.
-
OPENSSL_add_all_algorithms_conf(
) → void - OPENSSL_add_all_algorithms_conf does nothing.
-
OpenSSL_add_all_ciphers(
) → void - OpenSSL_add_all_ciphers does nothing.
-
OpenSSL_add_all_digests(
) → void - OpenSSL_add_all_digests does nothing.
-
OPENSSL_asprintf(
Pointer< Pointer< str, Pointer<Char> >Char> format) → int -
OPENSSL_asprintf has the same behavior as asprintf(3), except that
memory allocated in a returned string must be freed with
OPENSSL_free. -
OPENSSL_calloc(
int num, int size) → Pointer< Void> -
OPENSSL_calloc is similar to a regular
calloc, but allocates data withOPENSSL_malloc. On overflow, it will pushERR_R_OVERFLOWonto the error queue. -
OPENSSL_cleanse(
Pointer< Void> ptr, int len) → void -
OPENSSL_cleanse zeros out
lenbytes of memory atptr. This is similar tomemset_sfrom C11. -
OPENSSL_cleanup(
) → void - OPENSSL_cleanup does nothing.
-
OPENSSL_clear_free(
Pointer< Void> ptr, int len) → void -
OPENSSL_clear_free calls
OPENSSL_free. BoringSSL automatically clears all allocations on free, but we defineOPENSSL_clear_freefor compatibility. -
OPENSSL_config(
Pointer< Char> config_name) → void - OPENSSL_config does nothing.
-
OPENSSL_free(
Pointer< Void> ptr) → void -
OPENSSL_free does nothing if
ptris NULL. Otherwise it zeros out the memory allocated atptrand frees it along with the private data. It must only be used onptrvalues obtained fromOPENSSL_malloc -
OPENSSL_fromxdigit(
Pointer< Uint8> out, int c) → int -
OPENSSL_fromxdigit returns one if
cis a hexadecimal digit as recognized by OPENSSL_isxdigit, and setsoutto the corresponding value. Otherwise zero is returned. -
OPENSSL_hash32(
Pointer< Void> ptr, int len) → int - OPENSSL_hash32 implements the 32 bit, FNV-1a hash.
-
OPENSSL_init_crypto(
int opts, Pointer< OPENSSL_INIT_SETTINGS> settings) → int - OPENSSL_init_crypto returns one.
-
OPENSSL_isalnum(
int c) → int -
OPENSSL_isalnum is a locale-independent, ASCII-only version of isalnum(3), It
only recognizes what
OPENSSL_isalphaandOPENSSL_isdigitrecognize. -
OPENSSL_isalpha(
int c) → int - OPENSSL_isalpha is a locale-independent, ASCII-only version of isalpha(3), It only recognizes 'a' through 'z' and 'A' through 'Z' as alphabetic.
-
OPENSSL_isdigit(
int c) → int - OPENSSL_isdigit is a locale-independent, ASCII-only version of isdigit(3), It only recognizes '0' through '9' as digits.
-
OPENSSL_isspace(
int c) → int - OPENSSL_isspace is a locale-independent, ASCII-only version of isspace(3). It only recognizes '\t', '\n', '\v', '\f', '\r', and ' '.
-
OPENSSL_isxdigit(
int c) → int - OPENSSL_isxdigit is a locale-independent, ASCII-only version of isxdigit(3), It only recognizes '0' through '9', 'a' through 'f', and 'A through 'F' as digits.
-
OPENSSL_load_builtin_modules(
) → void - OPENSSL_load_builtin_modules does nothing.
-
OPENSSL_malloc(
int size) → Pointer< Void> -
OPENSSL_malloc is similar to a regular
malloc, but allocates additional private data. The resulting pointer must be freed withOPENSSL_free. In the case of a malloc failure, prior to returning NULLOPENSSL_mallocwill pushERR_R_MALLOC_FAILUREonto the openssl error stack. -
OPENSSL_malloc_init(
) → int - OPENSSL_malloc_init returns one.
-
OPENSSL_memdup(
Pointer< Void> data, int size) → Pointer<Void> -
OPENSSL_memdup returns an allocated, duplicate of
sizebytes fromdataor NULL on allocation failure. The memory allocated must be freed withOPENSSL_free. -
OPENSSL_no_config(
) → void - OPENSSL_no_config does nothing.
-
OPENSSL_realloc(
Pointer< Void> ptr, int new_size) → Pointer<Void> -
OPENSSL_realloc returns a pointer to a buffer of
new_sizebytes that contains the contents ofptr. Unlikerealloc, a new buffer is always allocated and the data atptris always wiped and freed. Memory is allocated withOPENSSL_mallocand must be freed withOPENSSL_free. -
OPENSSL_secure_clear_free(
Pointer< Void> ptr, int len) → void -
OPENSSL_secure_clear_free calls
OPENSSL_clear_free. -
OPENSSL_secure_malloc(
int size) → Pointer< Void> -
OPENSSL_secure_malloc calls
OPENSSL_malloc. -
OPENSSL_sk_deep_copy(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_call_copy_func call_copy_func, OPENSSL_sk_copy_func copy_func, OPENSSL_sk_call_free_func call_free_func, OPENSSL_sk_free_func free_func) → Pointer<OPENSSL_STACK> -
OPENSSL_sk_delete(
Pointer< OPENSSL_STACK> sk, int where) → Pointer<Void> -
OPENSSL_sk_delete_if(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_call_delete_if_func call_func, OPENSSL_sk_delete_if_func func, Pointer<Void> data) → void -
OPENSSL_sk_delete_ptr(
Pointer< OPENSSL_STACK> sk, Pointer<Void> p) → Pointer<Void> -
OPENSSL_sk_dup(
Pointer< OPENSSL_STACK> sk) → Pointer<OPENSSL_STACK> -
OPENSSL_sk_find(
Pointer< OPENSSL_STACK> sk, Pointer<Size> out_index, Pointer<Void> p, OPENSSL_sk_call_cmp_func call_cmp_func) → int -
OPENSSL_sk_free(
Pointer< OPENSSL_STACK> sk) → void -
OPENSSL_sk_insert(
Pointer< OPENSSL_STACK> sk, Pointer<Void> p, int where) → int -
OPENSSL_sk_is_sorted(
Pointer< OPENSSL_STACK> sk) → int -
OPENSSL_sk_last(
Pointer< OPENSSL_STACK> sk) → Pointer<Void> -
OPENSSL_sk_new(
OPENSSL_sk_cmp_func comp) → Pointer< OPENSSL_STACK> -
The following are raw stack functions. They implement the corresponding typed
sk_SAMPLE_*functions generated byDEFINE_STACK_OF. Callers shouldn't be using them. Rather, callers should use the typed functions. -
OPENSSL_sk_new_null(
) → Pointer< OPENSSL_STACK> -
OPENSSL_sk_num(
Pointer< OPENSSL_STACK> sk) → int -
OPENSSL_sk_pop(
Pointer< OPENSSL_STACK> sk) → Pointer<Void> -
OPENSSL_sk_pop_free_ex(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_call_free_func call_free_func, OPENSSL_sk_free_func free_func) → void -
OPENSSL_sk_push(
Pointer< OPENSSL_STACK> sk, Pointer<Void> p) → int -
OPENSSL_sk_set(
Pointer< OPENSSL_STACK> sk, int i, Pointer<Void> p) → Pointer<Void> -
OPENSSL_sk_set_cmp_func(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_cmp_func comp) → OPENSSL_sk_cmp_func -
OPENSSL_sk_shift(
Pointer< OPENSSL_STACK> sk) → Pointer<Void> -
OPENSSL_sk_sort(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_call_cmp_func call_cmp_func) → void -
OPENSSL_sk_sort_and_dedup(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_call_cmp_func call_cmp_func, OPENSSL_sk_call_free_func call_free_func, OPENSSL_sk_free_func free_func) → void -
OPENSSL_sk_value(
Pointer< OPENSSL_STACK> sk, int i) → Pointer<Void> -
OPENSSL_sk_zero(
Pointer< OPENSSL_STACK> sk) → void -
OPENSSL_strcasecmp(
Pointer< Char> a, Pointer<Char> b) → int - OPENSSL_strcasecmp is a locale-independent, ASCII-only version of strcasecmp(3).
-
OPENSSL_strdup(
Pointer< Char> s) → Pointer<Char> - OPENSSL_strdup has the same behaviour as strdup(3).
-
OPENSSL_strhash(
Pointer< Char> s) → int -
OPENSSL_strhash calls
OPENSSL_hash32on the NUL-terminated strings. -
OPENSSL_strlcat(
Pointer< Char> dst, Pointer<Char> src, int dst_size) → int - OPENSSL_strlcat acts like strlcat(3).
-
OPENSSL_strlcpy(
Pointer< Char> dst, Pointer<Char> src, int dst_size) → int - OPENSSL_strlcpy acts like strlcpy(3).
-
OPENSSL_strncasecmp(
Pointer< Char> a, Pointer<Char> b, int n) → int - OPENSSL_strncasecmp is a locale-independent, ASCII-only version of strncasecmp(3).
-
OPENSSL_strndup(
Pointer< Char> str, int size) → Pointer<Char> -
OPENSSL_strndup returns an allocated, duplicate of
str, which is, at most,sizebytes. The result is always NUL terminated. The memory allocated must be freed withOPENSSL_free. -
OPENSSL_strnlen(
Pointer< Char> s, int len) → int - OPENSSL_strnlen has the same behaviour as strnlen(3).
-
OPENSSL_tolower(
int c) → int - OPENSSL_tolower is a locale-independent, ASCII-only version of tolower(3). It only lowercases ASCII values. Other values are returned as-is.
-
OpenSSL_version(
int which) → Pointer< Char> -
OpenSSL_version is a compatibility function that returns the string
"BoringSSL" if
whichisOPENSSL_VERSIONand placeholder strings otherwise. -
OpenSSL_version_num(
) → int - OpenSSL_version_num is a compatibility function that returns OPENSSL_VERSION_NUMBER from base.h.
-
OPENSSL_zalloc(
int size) → Pointer< Void> -
OPENSSL_zalloc behaves like
OPENSSL_mallocexcept it also initializes the resulting memory to zero. -
OTHERNAME_free(
Pointer< OTHERNAME> name) → void -
OTHERNAME_free releases memory associated with
name. -
OTHERNAME_new(
) → Pointer< OTHERNAME> -
OTHERNAME_new returns a new, empty
OTHERNAME, or NULL on error. -
PEM_ASN1_read(
Pointer< d2i_of_void> d2i, Pointer<Char> name, Pointer<FILE> fp, Pointer<Pointer< out, Pointer<Void> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<Void> -
PEM_ASN1_read behaves like
PEM_ASN1_read_biobut reads fromfp. -
PEM_ASN1_read_bio(
Pointer< d2i_of_void> d2i, Pointer<Char> name, Pointer<BIO> bio, Pointer<Pointer< out, Pointer<Void> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<Void> -
PEM_ASN1_read_bio calls
PEM_bytes_read_bioand then decodes the resulting data withd2i, which should behave as ind2i_SAMPLE. -
PEM_ASN1_write(
Pointer< i2d_of_void> i2d, Pointer<Char> name, Pointer<FILE> fp, Pointer<Void> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> callback, Pointer<Void> userdata) → int -
PEM_ASN1_write behaves like
PEM_ASN1_write_biobut reads fromfp. -
PEM_ASN1_write_bio(
Pointer< i2d_of_void> i2d, Pointer<Char> name, Pointer<BIO> bio, Pointer<Void> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_ASN1_write_bio encodes
inwithi2d, which should behave as ini2d_SAMPLE. It then writes the result tobioas inPEM_write_bio_SAMPLE. -
PEM_bytes_read_bio(
Pointer< Pointer< out_data, Pointer<Uint8> >Long> out_len, Pointer<Pointer< out_name, Pointer<Char> >Char> expected_name, Pointer<BIO> bio, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_bytes_read_bio reads from
biountil it finds a PEM block whose name matchesexpected_name. If one is found, it sets*out_nameand*out_datato newly-allocated buffers containing the PEM type and (possibly decrypted) PEM data.*out_nameis a NUL-terminated C string, while*out_datahas*out_lenbytes. The caller must release*out_nameand*out_datawithOPENSSL_freewhen done. -
PEM_def_callback(
Pointer< Char> buf, int size, int enc, Pointer<Void> userdata) → int -
PEM_def_callback is the default implementation of
pem_password_cb. It interpretsuserdataas a NUL-terminated C string and outputs it according topem_password_cb. Ifuserdatais NULL, it returns -1. -
PEM_read(
Pointer< FILE> fp, Pointer<Pointer< out_name, Pointer<Char> >Pointer< out_header, Pointer<Char> >Pointer< out_data, Pointer<Uint8> >Long> out_len) → int -
PEM_read behaves like
PEM_read_biobut reads fromfp. -
PEM_read_bio(
Pointer< BIO> bio, Pointer<Pointer< out_name, Pointer<Char> >Pointer< out_header, Pointer<Char> >Pointer< out_data, Pointer<Uint8> >Long> out_len) → int -
PEM_read_bio reads from
biountil the next PEM block. If one is found, it returns one and sets*out_name,*out_header, and*out_datato newly-allocated buffers containing the PEM type, the header block, and the decoded data, respectively.*out_nameand*out_headerare NUL-terminated C strings, while*out_datahas*out_lenbytes. The caller must release each of*out_name,*out_header, and*out_datawithOPENSSL_freewhen done. -
PEM_read_bio_DHparams(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<DH> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DH> -
PEM_read_bio_DHparams reads a PEM block of type "DH PARAMETERS", as described
in
PEM_read_bio_SAMPLE. -
PEM_read_bio_DSA_PUBKEY(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<DSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DSA> -
PEM_read_bio_DSA_PUBKEY behaves like
PEM_read_bio_PUBKEYbut only returns DSA keys, represented as aDSAobject. Keys of other types result in an error. -
PEM_read_bio_DSAparams(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<DSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DSA> -
PEM_read_bio_DSAparams reads a PEM block of type "DSA PARAMETERS", as
described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_DSAPrivateKey(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<DSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DSA> -
PEM_read_bio_DSAPrivateKey behaves like
PEM_read_bio_PrivateKeybut only returns DSA keys, represented as aDSAobject. Keys of other types result in an error. -
PEM_read_bio_EC_PUBKEY(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<EC_KEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EC_KEY> -
PEM_read_bio_EC_PUBKEY behaves like
PEM_read_bio_PUBKEYbut only returns EC keys, represented as anEC_KEYobject. Keys of other types result in an error. -
PEM_read_bio_ECPrivateKey(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<EC_KEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EC_KEY> -
PEM_read_bio_ECPrivateKey behaves like
PEM_read_bio_PrivateKeybut only returns EC keys, represented as anEC_KEYobject. Keys of other types result in an error. -
PEM_read_bio_PKCS7(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<PKCS7> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<PKCS7> -
PEM_read_bio_PKCS7 reads a PEM block of type "PKCS7" (RFC 7468) or "PKCS #7
SIGNED DATA", as described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_PKCS8(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<X509_SIG> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509_SIG> -
PEM_read_bio_PKCS8 reads a PEM block of type "ENCRYPTED PRIVATE KEY", as
described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_PKCS8_PRIV_KEY_INFO(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<PKCS8_PRIV_KEY_INFO> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<PKCS8_PRIV_KEY_INFO> -
PEM_read_bio_PKCS8_PRIV_KEY_INFO reads a PEM block of type "PRIVATE KEY", as
described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_PrivateKey(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<EVP_PKEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EVP_PKEY> -
PEM_read_bio_PrivateKey reads a PEM block containing a private key, as
described in
PEM_read_bio_SAMPLE. It handles generic PKCS #8 blocks of type "PRIVATE KEY" and "ENCRYPTED PRIVATE KEY", as well as key-specific formats like "RSA PRIVATE KEY", "EC PRIVATE KEY", and "DSA PRIVATE KEY". -
PEM_read_bio_PUBKEY(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<EVP_PKEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EVP_PKEY> -
PEM_read_bio_PUBKEY reads a PEM block of type "PUBLIC KEY", as described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_RSA_PUBKEY(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<RSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<RSA> -
PEM_read_bio_RSA_PUBKEY behaves like
PEM_read_bio_PUBKEYbut only returns RSA keys, represented as anRSAobject. Keys of other types result in an error. -
PEM_read_bio_RSAPrivateKey(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<RSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<RSA> -
PEM_read_bio_RSAPrivateKey behaves like
PEM_read_bio_PrivateKeybut only returns RSA keys, represented as anRSAobject. Keys of other types result in an error. -
PEM_read_bio_RSAPublicKey(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<RSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<RSA> -
PEM_read_bio_RSAPublicKey reads a PEM block of type "RSA PUBLIC KEY", as
described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_X509(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<X509> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509> -
PEM_read_bio_X509 reads a PEM block of type "CERTIFICATE" (RFC 7468) or "X509
CERTIFICATE", as described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_X509_AUX(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<X509> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509> -
PEM_read_bio_X509_AUX reads a PEM block of type "CERTIFICATE" (RFC 7468),
"X509 CERTIFICATE", or "TRUSTED CERTIFICATE", as described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_X509_CRL(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<X509_CRL> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509_CRL> -
PEM_read_bio_X509_CRL reads a PEM block of type "X509 CRL" (RFC 7468), as
described in
PEM_read_bio_SAMPLE. -
PEM_read_bio_X509_REQ(
Pointer< BIO> bio, Pointer<Pointer< out, Pointer<X509_REQ> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509_REQ> -
PEM_read_bio_X509_REQ reads a PEM block of type "CERTIFICATE REQUEST"
(RFC 7468) or "NEW CERTIFICATE REQUEST", as described in
PEM_read_bio_SAMPLE. -
PEM_read_DHparams(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<DH> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DH> -
PEM_read_DSA_PUBKEY(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<DSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DSA> -
PEM_read_DSAparams(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<DSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DSA> -
PEM_read_DSAPrivateKey(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<DSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<DSA> -
PEM_read_EC_PUBKEY(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<EC_KEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EC_KEY> -
PEM_read_ECPrivateKey(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<EC_KEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EC_KEY> -
PEM_read_PKCS7(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<PKCS7> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<PKCS7> -
PEM_read_PKCS8(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<X509_SIG> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509_SIG> -
PEM_read_PKCS8_PRIV_KEY_INFO(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<PKCS8_PRIV_KEY_INFO> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<PKCS8_PRIV_KEY_INFO> -
PEM_read_PrivateKey(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<EVP_PKEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EVP_PKEY> -
PEM_read_PUBKEY(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<EVP_PKEY> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<EVP_PKEY> -
PEM_read_RSA_PUBKEY(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<RSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<RSA> -
PEM_read_RSAPrivateKey(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<RSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<RSA> -
PEM_read_RSAPublicKey(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<RSA> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<RSA> -
PEM_read_X509(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<X509> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509> -
The following functions behave like the corresponding
PEM_read_bio_*functions, but read fromfp. -
PEM_read_X509_AUX(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<X509> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509> -
PEM_read_X509_CRL(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<X509_CRL> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509_CRL> -
PEM_read_X509_REQ(
Pointer< FILE> fp, Pointer<Pointer< out, Pointer<X509_REQ> >pem_password_cb> cb, Pointer<Void> userdata) → Pointer<X509_REQ> -
PEM_write(
Pointer< FILE> fp, Pointer<Char> name, Pointer<Char> hdr, Pointer<Uint8> data, int len) → int -
PEM_write behaves like
PEM_write_biobut reads fromfp. -
PEM_write_bio(
Pointer< BIO> bio, Pointer<Char> name, Pointer<Char> hdr, Pointer<Uint8> data, int len) → int -
PEM_write_bio writes a PEM block to
bio, containinglenbytes fromdataas data.nameandhdrare NUL-terminated C strings containing the PEM type and header block, respectively. This function returns zero on error and the number of bytes written on success. -
PEM_write_bio_DHparams(
Pointer< BIO> bio, Pointer<DH> in$) → int -
PEM_write_bio_DHparams writes a PEM block of type "DH PARAMETERS", as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_DSA_PUBKEY(
Pointer< BIO> bio, Pointer<DSA> in$) → int -
PEM_write_bio_DSA_PUBKEY writes
inin SubjectPublicKeyInfo format as a PEM block of type "PUBLIC KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_DSAparams(
Pointer< BIO> bio, Pointer<DSA> in$) → int -
PEM_write_bio_DSAparams writes a PEM block of type "DSA PARAMETERS", as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_DSAPrivateKey(
Pointer< BIO> bio, Pointer<DSA> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_bio_DSAPrivateKey writes
inas a PEM block of type "DSA PRIVATE KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_EC_PUBKEY(
Pointer< BIO> bio, Pointer<EC_KEY> in$) → int -
PEM_write_bio_EC_PUBKEY writes
inin SubjectPublicKeyInfo format as a PEM block of type "PUBLIC KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_ECPrivateKey(
Pointer< BIO> bio, Pointer<EC_KEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_bio_ECPrivateKey writes
inas a PEM block of type "EC PRIVATE KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_PKCS7(
Pointer< BIO> bio, Pointer<PKCS7> in$) → int -
PEM_write_bio_PKCS7 writes a PEM block of type "PKCS7" (RFC 7468), as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_PKCS8(
Pointer< BIO> bio, Pointer<X509_SIG> in$) → int -
PEM_write_bio_PKCS8 writes a PEM block of type "ENCRYPTED PRIVATE KEY", as
described in
PEM_write_bio_SAMPLE.inis used to represent an already-encrypted EncryptedPrivateKeyInfo structure. -
PEM_write_bio_PKCS8_PRIV_KEY_INFO(
Pointer< BIO> bio, Pointer<PKCS8_PRIV_KEY_INFO> in$) → int -
PEM_write_bio_PKCS8_PRIV_KEY_INFO writes a PEM block of type "PRIVATE KEY",
as described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_PKCS8PrivateKey(
Pointer< BIO> bio, Pointer<EVP_PKEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_bio_PKCS8PrivateKey is an alias for
PEM_write_bio_PrivateKey. -
PEM_write_bio_PKCS8PrivateKey_nid(
Pointer< BIO> bio, Pointer<EVP_PKEY> in$, int nid, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_bio_PKCS8PrivateKey_nid behaves like
PEM_write_bio_PrivateKeybut uses the PBES1 algorithm specified bynidfor encryption. See alsoPKCS8_encrypt. Ifnidis -1, it writes the private key unencrypted. -
PEM_write_bio_PrivateKey(
Pointer< BIO> bio, Pointer<EVP_PKEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_bio_PrivateKey writes
intobioin PKCS#8 format, as described inPEM_write_bio_SAMPLE. However, it interprets encryption parameters differently: -
PEM_write_bio_PUBKEY(
Pointer< BIO> bio, Pointer<EVP_PKEY> in$) → int -
PEM_write_bio_PUBKEY writes
inas a PEM block of type "PUBLIC KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_RSA_PUBKEY(
Pointer< BIO> bio, Pointer<RSA> in$) → int -
PEM_write_bio_RSA_PUBKEY writes
inas a PEM block of type "PUBLIC KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_RSAPrivateKey(
Pointer< BIO> bio, Pointer<RSA> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_bio_RSAPrivateKey writes
inas a PEM block of type "RSA PRIVATE KEY", as described inPEM_write_bio_SAMPLE. -
PEM_write_bio_RSAPublicKey(
Pointer< BIO> bio, Pointer<RSA> in$) → int -
PEM_write_bio_RSAPublicKey writes a PEM block of type "RSA PUBLIC KEY", as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_X509(
Pointer< BIO> bio, Pointer<X509> in$) → int -
PEM_write_bio_X509 writes a PEM block of type "CERTIFICATE" (RFC 7468), as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_X509_AUX(
Pointer< BIO> bio, Pointer<X509> in$) → int -
PEM_write_bio_X509_AUX writes a PEM block of type "TRUSTED CERTIFICATE", as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_X509_CRL(
Pointer< BIO> bio, Pointer<X509_CRL> in$) → int -
PEM_write_bio_X509_CRL writes a PEM block of type "X509 CRL" (RFC 7468), as
described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_X509_REQ(
Pointer< BIO> bio, Pointer<X509_REQ> in$) → int -
PEM_write_bio_X509_REQ writes a PEM block of type "CERTIFICATE REQUEST"
(RFC 7468), as described in
PEM_write_bio_SAMPLE. -
PEM_write_bio_X509_REQ_NEW(
Pointer< BIO> bio, Pointer<X509_REQ> in$) → int -
PEM_write_bio_X509_REQ_NEW writes a PEM block of type "NEW CERTIFICATE
REQUEST", as described in
PEM_write_bio_SAMPLE. Prefer to usePEM_write_bio_X509_REQ. "NEW CERTIFICATE REQUEST" is the older type. -
PEM_write_DHparams(
Pointer< FILE> fp, Pointer<DH> in$) → int -
PEM_write_DSA_PUBKEY(
Pointer< FILE> fp, Pointer<DSA> in$) → int -
PEM_write_DSAparams(
Pointer< FILE> fp, Pointer<DSA> in$) → int -
PEM_write_DSAPrivateKey(
Pointer< FILE> fp, Pointer<DSA> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_EC_PUBKEY(
Pointer< FILE> fp, Pointer<EC_KEY> in$) → int -
PEM_write_ECPrivateKey(
Pointer< FILE> fp, Pointer<EC_KEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_PKCS7(
Pointer< FILE> fp, Pointer<PKCS7> in$) → int -
PEM_write_PKCS8(
Pointer< FILE> fp, Pointer<X509_SIG> in$) → int -
PEM_write_PKCS8_PRIV_KEY_INFO(
Pointer< FILE> fp, Pointer<PKCS8_PRIV_KEY_INFO> in$) → int -
PEM_write_PKCS8PrivateKey(
Pointer< FILE> fp, Pointer<EVP_PKEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_PKCS8PrivateKey behaves like
PEM_write_bio_PKCS8PrivateKeybut writes tofp. -
PEM_write_PKCS8PrivateKey_nid(
Pointer< FILE> fp, Pointer<EVP_PKEY> in$, int nid, Pointer<Char> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_PKCS8PrivateKey_nid behaves like
PEM_write_bio_PKCS8PrivateKey_nidbut writes tofp. -
PEM_write_PrivateKey(
Pointer< FILE> fp, Pointer<EVP_PKEY> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_PUBKEY(
Pointer< FILE> fp, Pointer<EVP_PKEY> in$) → int -
PEM_write_RSA_PUBKEY(
Pointer< FILE> fp, Pointer<RSA> in$) → int -
PEM_write_RSAPrivateKey(
Pointer< FILE> fp, Pointer<RSA> in$, Pointer<EVP_CIPHER> enc, Pointer<Uint8> pass, int pass_len, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → int -
PEM_write_RSAPublicKey(
Pointer< FILE> fp, Pointer<RSA> in$) → int -
PEM_write_X509(
Pointer< FILE> fp, Pointer<X509> x) → int -
The following functions behave like the corresponding
PEM_write_bio_*functions, but write tofp. -
PEM_write_X509_AUX(
Pointer< FILE> fp, Pointer<X509> in$) → int -
PEM_write_X509_CRL(
Pointer< FILE> fp, Pointer<X509_CRL> in$) → int -
PEM_write_X509_REQ(
Pointer< FILE> fp, Pointer<X509_REQ> in$) → int -
PEM_write_X509_REQ_NEW(
Pointer< FILE> fp, Pointer<X509_REQ> in$) → int -
PEM_X509_INFO_read(
Pointer< FILE> fp, Pointer<stack_st_X509_INFO> sk, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → Pointer<stack_st_X509_INFO> -
PEM_X509_INFO_read_bio(
Pointer< BIO> bio, Pointer<stack_st_X509_INFO> sk, Pointer<pem_password_cb> cb, Pointer<Void> userdata) → Pointer<stack_st_X509_INFO> -
PEM_X509_INFO_read_bio reads PEM blocks from
bioand decodes any certificates, CRLs, and private keys found. It returns aSTACK_OF(X509_INFO)structure containing the results, or NULL on error. -
PKCS5_PBKDF2_HMAC(
Pointer< Char> password, int password_len, Pointer<Uint8> salt, int salt_len, int iterations, Pointer<EVP_MD> digest, int key_len, Pointer<Uint8> out_key) → int -
PKCS5_PBKDF2_HMAC computes
iterationsiterations of PBKDF2 ofpasswordandsalt, usingdigest, and outputskey_lenbytes toout_key. It returns one on success and zero on allocation failure or if iterations is 0. -
PKCS5_PBKDF2_HMAC_SHA1(
Pointer< Char> password, int password_len, Pointer<Uint8> salt, int salt_len, int iterations, int key_len, Pointer<Uint8> out_key) → int -
PKCS5_PBKDF2_HMAC_SHA1 is the same as PKCS5_PBKDF2_HMAC, but with
digestfixed toEVP_sha1. -
PKCS7_bundle_certificates(
Pointer< CBB> out, Pointer<stack_st_X509> certs) → int -
PKCS7_bundle_certificates behaves like
PKCS7_bundle_raw_certificatesbut takesX509objects as input. -
PKCS7_bundle_CRLs(
Pointer< CBB> out, Pointer<stack_st_X509_CRL> crls) → int -
PKCS7_bundle_CRLs appends a PKCS#7, SignedData structure containing
crlstoout. It returns one on success and zero on error. Note that CRLs in SignedData structures are unordered. The order incrlswill not be preserved. -
PKCS7_bundle_raw_certificates(
Pointer< CBB> out, Pointer<stack_st_CRYPTO_BUFFER> certs) → int -
PKCS7_bundle_raw_certificates appends a PKCS#7, SignedData structure
containing
certstoout. It returns one on success and zero on error. Note that certificates in SignedData structures are unordered. The order incertswill not be preserved. -
PKCS7_free(
Pointer< PKCS7> p7) → void -
PKCS7_free releases memory associated with
p7. -
PKCS7_get_certificates(
Pointer< stack_st_X509> out_certs, Pointer<CBS> cbs) → int -
PKCS7_get_certificates behaves like
PKCS7_get_raw_certificatesbut parses them intoX509objects. -
PKCS7_get_CRLs(
Pointer< stack_st_X509_CRL> out_crls, Pointer<CBS> cbs) → int -
PKCS7_get_CRLs parses a PKCS#7, SignedData structure from
cbsand appends the included CRLs toout_crls. It returns one on success and zero on error.cbsis advanced passed the structure. -
PKCS7_get_PEM_certificates(
Pointer< stack_st_X509> out_certs, Pointer<BIO> pem_bio) → int -
PKCS7_get_PEM_certificates reads a PEM-encoded, PKCS#7, SignedData structure
from
pem_bioand appends the included certificates toout_certs. It returns one on success and zero on error. -
PKCS7_get_PEM_CRLs(
Pointer< stack_st_X509_CRL> out_crls, Pointer<BIO> pem_bio) → int -
PKCS7_get_PEM_CRLs reads a PEM-encoded, PKCS#7, SignedData structure from
pem_bioand appends the included CRLs toout_crls. It returns one on success and zero on error. -
PKCS7_get_raw_certificates(
Pointer< stack_st_CRYPTO_BUFFER> out_certs, Pointer<CBS> cbs, Pointer<CRYPTO_BUFFER_POOL> pool) → int -
PKCS7_get_raw_certificates parses a PKCS#7, SignedData structure from
cbsand appends the included certificates toout_certs. It returns one on success and zero on error.cbsis advanced passed the structure. -
PKCS7_sign(
Pointer< X509> sign_cert, Pointer<EVP_PKEY> pkey, Pointer<stack_st_X509> certs, Pointer<BIO> data, int flags) → Pointer<PKCS7> - PKCS7_sign can operate in two modes to provide some backwards compatibility:
-
PKCS7_type_is_data(
Pointer< PKCS7> p7) → int - PKCS7_type_is_data returns zero.
-
PKCS7_type_is_digest(
Pointer< PKCS7> p7) → int - PKCS7_type_is_digest returns zero.
-
PKCS7_type_is_encrypted(
Pointer< PKCS7> p7) → int - PKCS7_type_is_encrypted returns zero.
-
PKCS7_type_is_enveloped(
Pointer< PKCS7> p7) → int - PKCS7_type_is_enveloped returns zero.
-
PKCS7_type_is_signed(
Pointer< PKCS7> p7) → int - PKCS7_type_is_signed returns one. (We only support signed data ContentInfos.)
-
PKCS7_type_is_signedAndEnveloped(
Pointer< PKCS7> p7) → int - PKCS7_type_is_signedAndEnveloped returns zero.
-
PKCS8_PRIV_KEY_INFO_free(
Pointer< PKCS8_PRIV_KEY_INFO> key) → void -
PKCS8_PRIV_KEY_INFO_free releases memory associated with
key. -
PKCS8_PRIV_KEY_INFO_new(
) → Pointer< PKCS8_PRIV_KEY_INFO> -
PKCS8_PRIV_KEY_INFO_new returns a newly-allocated, empty
PKCS8_PRIV_KEY_INFOobject, or NULL on error. -
POLICY_CONSTRAINTS_free(
Pointer< POLICY_CONSTRAINTS> pcons) → void -
POLICY_CONSTRAINTS_free releases memory associated with
pcons. -
POLICY_CONSTRAINTS_new(
) → Pointer< POLICY_CONSTRAINTS> -
POLICY_CONSTRAINTS_new returns a newly-allocated, empty
POLICY_CONSTRAINTSobject, or NULL on error. -
POLICY_MAPPING_free(
Pointer< POLICY_MAPPING> mapping) → void -
POLICY_MAPPING_free releases memory associated with
mapping. -
POLICY_MAPPING_new(
) → Pointer< POLICY_MAPPING> -
POLICY_MAPPING_new returns a newly-allocated, empty
POLICY_MAPPINGobject, or NULL on error. -
POLICYINFO_free(
Pointer< POLICYINFO> info) → void -
POLICYINFO_free releases memory associated with
info. -
POLICYINFO_new(
) → Pointer< POLICYINFO> -
POLICYINFO_new returns a newly-allocated, empty
POLICYINFOobject, or NULL on error. -
POLICYQUALINFO_free(
Pointer< POLICYQUALINFO> info) → void -
POLICYQUALINFO_free releases memory associated with
info. -
POLICYQUALINFO_new(
) → Pointer< POLICYQUALINFO> -
POLICYQUALINFO_new returns a newly-allocated, empty
POLICYQUALINFOobject, or NULL on error. -
RAND_add(
Pointer< Void> buf, int num, double entropy) → void - RAND_add does nothing.
-
RAND_bytes(
Pointer< Uint8> buf, int len) → int -
RAND_bytes writes
lenbytes of random data tobufand returns one. In the event that sufficient random data can not be obtained,abortis called. -
RAND_cleanup(
) → void - RAND_cleanup does nothing.
-
RAND_disable_fork_unsafe_buffering(
) → void -
RAND_disable_fork_unsafe_buffering restores BoringSSL's default fork-safety
protections. See also
RAND_enable_fork_unsafe_buffering. -
RAND_egd(
Pointer< Char> arg0) → int - RAND_egd returns 255.
-
RAND_enable_fork_unsafe_buffering(
int fd) → void -
RAND_enable_fork_unsafe_buffering indicates that clones of the address space,
e.g. via
fork, will never call into BoringSSL. It may be used to disable BoringSSL's more expensive fork-safety measures. However, calling this function and then using BoringSSL acrossforkcalls will leak secret keys.fdmust be -1. -
RAND_file_name(
Pointer< Char> buf, int num) → Pointer<Char> - RAND_file_name returns NULL.
-
RAND_get_rand_method(
) → Pointer< RAND_METHOD> -
RAND_get_rand_method returns
RAND_SSLeay(). -
RAND_get_system_entropy_for_custom_prng(
Pointer< Uint8> buf, int len) → void -
RAND_get_system_entropy_for_custom_prng writes
lenbytes of random data from a system entropy source tobuf. The maximum length of entropy which may be requested is 256 bytes. If more than 256 bytes of data is requested, or if sufficient random data can not be obtained,abortis called.RAND_bytesshould normally be used instead of this function. This function should only be used for seed values or wheremallocshould not be called from BoringSSL. This function is not FIPS compliant. -
RAND_load_file(
Pointer< Char> path, int num) → int - RAND_load_file returns a nonnegative number.
-
RAND_OpenSSL(
) → Pointer< RAND_METHOD> -
RAND_OpenSSL returns a pointer to a dummy
RAND_METHOD. -
RAND_poll(
) → int - RAND_poll returns one.
-
RAND_pseudo_bytes(
Pointer< Uint8> buf, int len) → int -
RAND_pseudo_bytes is a wrapper around
RAND_bytes. -
RAND_seed(
Pointer< Void> buf, int num) → void - RAND_seed reads a single byte of random data to ensure that any file descriptors etc are opened.
-
RAND_set_rand_method(
Pointer< RAND_METHOD> arg0) → int - RAND_set_rand_method returns one.
-
RAND_SSLeay(
) → Pointer< RAND_METHOD> -
RAND_SSLeay returns a pointer to a dummy
RAND_METHOD. -
RAND_status(
) → int - RAND_status returns one.
-
RSA_add_pkcs1_prefix(
Pointer< Pointer< out_msg, Pointer<Uint8> >Size> out_msg_len, Pointer<Int> is_alloced, int hash_nid, Pointer<Uint8> digest, int digest_len) → int -
RSA_add_pkcs1_prefix builds a version of
digestprefixed with the DigestInfo header for the given hash function and setsout_msgto point to it. On successful return, if*is_allocedis one, the caller must release*out_msgwithOPENSSL_free. -
RSA_bits(
Pointer< RSA> rsa) → int -
RSA_bits returns the size of
rsa, in bits. -
RSA_blinding_off(
Pointer< RSA> rsa) → void - RSA_blinding_off does nothing.
-
RSA_blinding_on(
Pointer< RSA> rsa, Pointer<BN_CTX> ctx) → int - RSA_blinding_on returns one.
-
RSA_check_fips(
Pointer< RSA> key) → int -
RSA_check_fips performs public key validity tests on
key. It returns one if they pass and zero otherwise. Opaque keys always fail. This function does not mutatersafor thread-safety purposes and may be used concurrently. -
RSA_check_key(
Pointer< RSA> rsa) → int -
RSA_check_key performs basic validity tests on
rsa. It returns one if they pass and zero otherwise. Opaque keys and public keys always pass. If it returns zero then a more detailed error is available on the error queue. -
RSA_decrypt(
Pointer< RSA> rsa, Pointer<Size> out_len, Pointer<Uint8> out, int max_out, Pointer<Uint8> in$, int in_len, int padding) → int -
RSA_decrypt decrypts
in_lenbytes frominwith the private key fromrsaand writes, at most,max_outbytes of plaintext toout. Themax_outargument must be, at least,RSA_sizein order to ensure success. -
RSA_dup_ref(
Pointer< RSA> rsa) → Pointer<RSA> -
RSA_dup_ref increments the reference count of
rsaand returns the same handle. It does not mutatersafor thread-safety purposes and may be used concurrently. -
RSA_encrypt(
Pointer< RSA> rsa, Pointer<Size> out_len, Pointer<Uint8> out, int max_out, Pointer<Uint8> in$, int in_len, int padding) → int -
RSA_encrypt encrypts
in_lenbytes frominto the public key fromrsaand writes, at most,max_outbytes of encrypted data toout. Themax_outargument must be, at least,RSA_sizein order to ensure success. -
RSA_flags(
Pointer< RSA> rsa) → int -
RSA_flags returns the flags for
rsa. These are a bitwise OR ofRSA_FLAG_*constants. -
RSA_free(
Pointer< RSA> rsa) → void -
RSA_free decrements the reference count of
rsaand frees it if the reference count drops to zero. -
RSA_generate_key_ex(
Pointer< RSA> rsa, int bits, Pointer<BIGNUM> e, Pointer<BN_GENCB> cb) → int -
RSA_generate_key_ex generates a new RSA key where the modulus has size
bitsand the public exponent ise. If unsure,RSA_F4is a good value fore. Ifcbis not NULL then it is called during the key generation process. In addition to the calls documented forBN_generate_prime_ex, it is called with event=2 when the n'th prime is rejected as unsuitable and with event=3 when a suitable value forpis found. -
RSA_generate_key_fips(
Pointer< RSA> rsa, int bits, Pointer<BN_GENCB> cb) → int -
RSA_generate_key_fips behaves like
RSA_generate_key_exbut performs additional checks for FIPS compliance. The public exponent is always 65537 andbitsmust be either 2048 or 3072. -
RSA_get0_crt_params(
Pointer< RSA> rsa, Pointer<Pointer< out_dmp1, Pointer<BIGNUM> >Pointer< out_dmq1, Pointer<BIGNUM> >Pointer< out_iqmp) → voidBIGNUM> > -
RSA_get0_crt_params sets
*out_dmp1,*out_dmq1, and*out_iqmp, if non-NULL, torsa's CRT parameters. These are d (mod p-1), d (mod q-1) and q^-1 (mod p), respectively. Ifrsais a public key, each parameter will be set to NULL. -
RSA_get0_d(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_d returns
rsa's private exponent. Ifrsais a public key, this value will be NULL. -
RSA_get0_dmp1(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_dmp1 returns d (mod p-1) for
rsa. Ifrsais a public key or lacks CRT parameters, this value will be NULL. -
RSA_get0_dmq1(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_dmq1 returns d (mod q-1) for
rsa. Ifrsais a public key or lacks CRT parameters, this value will be NULL. -
RSA_get0_e(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_e returns
rsa's public exponent. -
RSA_get0_factors(
Pointer< RSA> rsa, Pointer<Pointer< out_p, Pointer<BIGNUM> >Pointer< out_q) → voidBIGNUM> > -
RSA_get0_factors sets
*out_pand*out_q, if non-NULL, torsa's prime factors. Ifrsais a public key, they will be set to NULL. -
RSA_get0_iqmp(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_iqmp returns q^-1 (mod p). If
rsais a public key or lacks CRT parameters, this value will be NULL. -
RSA_get0_key(
Pointer< RSA> rsa, Pointer<Pointer< out_n, Pointer<BIGNUM> >Pointer< out_e, Pointer<BIGNUM> >Pointer< out_d) → voidBIGNUM> > -
RSA_get0_key sets
*out_n,*out_e, and*out_d, if non-NULL, torsa's modulus, public exponent, and private exponent, respectively. Ifrsais a public key, the private exponent will be set to NULL. -
RSA_get0_n(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_n returns
rsa's public modulus. -
RSA_get0_p(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_p returns
rsa's first private prime factor. Ifrsais a public key or lacks its prime factors, this value will be NULL. -
RSA_get0_pss_params(
Pointer< RSA> rsa) → Pointer<RSA_PSS_PARAMS> -
RSA_get0_pss_params returns NULL. In OpenSSL, this function retries RSA-PSS
parameters associated with
RSAobjects, but BoringSSL does not enable the id-RSASSA-PSS key encoding by default. -
RSA_get0_q(
Pointer< RSA> rsa) → Pointer<BIGNUM> -
RSA_get0_q returns
rsa's second private prime factor. Ifrsais a public key or lacks its prime factors, this value will be NULL. -
RSA_get_ex_data(
Pointer< RSA> rsa, int idx) → Pointer<Void> -
RSA_get_ex_new_index(
int argl, Pointer< Void> argp, Pointer<Int> unused, Pointer<CRYPTO_EX_dup> dup_unused, Pointer<CRYPTO_EX_free> free_func) → int - ex_data functions.
-
RSA_is_opaque(
Pointer< RSA> rsa) → int -
RSA_is_opaque returns one if
rsais opaque and doesn't expose its key material. Otherwise it returns zero. -
RSA_marshal_private_key(
Pointer< CBB> cbb, Pointer<RSA> rsa) → int -
RSA_marshal_private_key marshals
rsaas a DER-encoded RSAPrivateKey structure (RFC 8017) and appends the result tocbb. It returns one on success and zero on failure. -
RSA_marshal_public_key(
Pointer< CBB> cbb, Pointer<RSA> rsa) → int -
RSA_marshal_public_key marshals
rsaas a DER-encoded RSAPublicKey structure (RFC 8017) and appends the result tocbb. It returns one on success and zero on failure. -
RSA_new(
) → Pointer< RSA> -
RSA_new returns a new, empty
RSAobject or NULL on error. Prefer usingRSA_new_public_keyorRSA_new_private_keyto import an RSA key. -
RSA_new_method(
Pointer< ENGINE> engine) → Pointer<RSA> -
RSA_new_method acts the same as
RSA_newbut takes an explicitENGINE. -
RSA_new_method_no_e(
Pointer< ENGINE> engine, Pointer<BIGNUM> n) → Pointer<RSA> -
RSA_new_method_no_e returns a newly-allocated
RSAobject backed byengine, with a public modulus ofnand no known public exponent. -
RSA_new_private_key(
Pointer< BIGNUM> n, Pointer<BIGNUM> e, Pointer<BIGNUM> d, Pointer<BIGNUM> p, Pointer<BIGNUM> q, Pointer<BIGNUM> dmp1, Pointer<BIGNUM> dmq1, Pointer<BIGNUM> iqmp) → Pointer<RSA> -
RSA_new_private_key returns a new
RSAobject containing a private key with the specified parameters, or NULL on error or invalid input. All parameters are mandatory and may not be NULL. -
RSA_new_private_key_large_e(
Pointer< BIGNUM> n, Pointer<BIGNUM> e, Pointer<BIGNUM> d, Pointer<BIGNUM> p, Pointer<BIGNUM> q, Pointer<BIGNUM> dmp1, Pointer<BIGNUM> dmq1, Pointer<BIGNUM> iqmp) → Pointer<RSA> -
RSA_new_private_key_large_e behaves like
RSA_new_private_keybut allows anyeup ton. -
RSA_new_private_key_no_crt(
Pointer< BIGNUM> n, Pointer<BIGNUM> e, Pointer<BIGNUM> d) → Pointer<RSA> -
RSA_new_private_key_no_crt behaves like
RSA_new_private_keybut constructs an RSA key without CRT coefficients. -
RSA_new_private_key_no_e(
Pointer< BIGNUM> n, Pointer<BIGNUM> d) → Pointer<RSA> -
RSA_new_private_key_no_e behaves like
RSA_new_private_keybut constructs an RSA key without CRT parameters or public exponent. -
RSA_new_public_key(
Pointer< BIGNUM> n, Pointer<BIGNUM> e) → Pointer<RSA> -
RSA_new_public_key returns a new
RSAobject containing a public key with the specified parameters, or NULL on error or invalid input. -
RSA_new_public_key_large_e(
Pointer< BIGNUM> n, Pointer<BIGNUM> e) → Pointer<RSA> -
RSA_new_public_key_large_e behaves like
RSA_new_public_keybut allows anyeup ton. -
RSA_padding_add_PKCS1_OAEP_mgf1(
Pointer< Uint8> to, int to_len, Pointer<Uint8> from, int from_len, Pointer<Uint8> param, int param_len, Pointer<EVP_MD> md, Pointer<EVP_MD> mgf1md) → int -
RSA_padding_add_PKCS1_OAEP_mgf1 writes an OAEP padding of
fromtotowith the given parameters and hash functions. Ifmdis NULL then SHA-1 is used. Ifmgf1mdis NULL then the value ofmdis used (which means SHA-1 if that, in turn, is NULL). -
RSA_padding_add_PKCS1_PSS_mgf1(
Pointer< RSA> rsa, Pointer<Uint8> EM, Pointer<Uint8> mHash, Pointer<EVP_MD> Hash, Pointer<EVP_MD> mgf1Hash, int sLen) → int -
RSA_padding_add_PKCS1_PSS_mgf1 writes a PSS padding of
mHashtoEM, wheremHashis a digest produced byHash.RSA_size(rsa)bytes of output will be written toEM. Themgf1Hashargument specifies the hash function for generating the mask. If NULL,Hashis used. ThesLenargument specifies the expected salt length in bytes. IfsLenis -1 then the salt length is the same as the hash length. If -2, then the salt length is maximal given the space inEM. -
RSA_parse_private_key(
Pointer< CBS> cbs) → Pointer<RSA> -
RSA_parse_private_key parses a DER-encoded RSAPrivateKey structure (RFC 8017)
from
cbsand advancescbs. It returns a newly-allocatedRSAor NULL on error. -
RSA_parse_public_key(
Pointer< CBS> cbs) → Pointer<RSA> -
RSA_parse_public_key parses a DER-encoded RSAPublicKey structure (RFC 8017)
from
cbsand advancescbs. It returns a newly-allocatedRSAor NULL on error. -
RSA_print(
Pointer< BIO> bio, Pointer<RSA> rsa, int indent) → int -
RSA_print prints a textual representation of
rsatobio. It returns one on success or zero otherwise. -
RSA_private_decrypt(
int flen, Pointer< Uint8> from, Pointer<Uint8> to, Pointer<RSA> rsa, int padding) → int -
RSA_private_decrypt decrypts
flenbytes fromfromwith the public key inrsaand writes the plaintext toto. Thetobuffer must have at leastRSA_sizebytes of space. It returns the number of bytes written, or -1 on error. Thepaddingargument must be one of theRSA_*_PADDINGvalues. If in doubt, useRSA_PKCS1_OAEP_PADDINGfor new protocols. PassingRSA_PKCS1_PADDINGinto this function is deprecated and insecure. SeeRSA_decrypt. -
RSA_private_encrypt(
int flen, Pointer< Uint8> from, Pointer<Uint8> to, Pointer<RSA> rsa, int padding) → int -
RSA_private_encrypt performs the private key portion of computing a signature
with
rsa. It takesflenbytes fromfromas input and writes the result toto. Thetobuffer must have at leastRSA_sizebytes of space. It returns the number of bytes written, or -1 on error. -
RSA_private_key_from_bytes(
Pointer< Uint8> in$, int in_len) → Pointer<RSA> -
RSA_private_key_from_bytes parses
inas a DER-encoded RSAPrivateKey structure (RFC 8017). It returns a newly-allocatedRSAor NULL on error. -
RSA_private_key_to_bytes(
Pointer< Pointer< out_bytes, Pointer<Uint8> >Size> out_len, Pointer<RSA> rsa) → int -
RSA_private_key_to_bytes marshals
rsaas a DER-encoded RSAPrivateKey structure (RFC 8017) and, on success, sets*out_bytesto a newly allocated buffer containing the result and returns one. Otherwise, it returns zero. The result should be freed withOPENSSL_free. -
RSA_PSS_PARAMS_free(
Pointer< RSA_PSS_PARAMS> params) → void -
RSA_PSS_PARAMS_free releases memory associated with
params. -
RSA_PSS_PARAMS_new(
) → Pointer< RSA_PSS_PARAMS> -
RSA_PSS_PARAMS_new returns a new, empty
RSA_PSS_PARAMS, or NULL on error. -
RSA_public_decrypt(
int flen, Pointer< Uint8> from, Pointer<Uint8> to, Pointer<RSA> rsa, int padding) → int -
RSA_public_decrypt performs the public key portion of verifying
flenbytes of signature fromfromusing the public key fromrsa. It writes the result toto, which must have at leastRSA_sizebytes of space. It returns the number of bytes written, or -1 on error. -
RSA_public_encrypt(
int flen, Pointer< Uint8> from, Pointer<Uint8> to, Pointer<RSA> rsa, int padding) → int -
RSA_public_encrypt encrypts
flenbytes fromfromto the public key inrsaand writes the encrypted data toto. Thetobuffer must have at leastRSA_sizebytes of space. It returns the number of bytes written, or -1 on error. Thepaddingargument must be one of theRSA_*_PADDINGvalues. If in doubt, useRSA_PKCS1_OAEP_PADDINGfor new protocols. -
RSA_public_key_from_bytes(
Pointer< Uint8> in$, int in_len) → Pointer<RSA> -
RSA_public_key_from_bytes parses
inas a DER-encoded RSAPublicKey structure (RFC 8017). It returns a newly-allocatedRSAor NULL on error. -
RSA_public_key_to_bytes(
Pointer< Pointer< out_bytes, Pointer<Uint8> >Size> out_len, Pointer<RSA> rsa) → int -
RSA_public_key_to_bytes marshals
rsaas a DER-encoded RSAPublicKey structure (RFC 8017) and, on success, sets*out_bytesto a newly allocated buffer containing the result and returns one. Otherwise, it returns zero. The result should be freed withOPENSSL_free. -
RSA_set0_crt_params(
Pointer< RSA> rsa, Pointer<BIGNUM> dmp1, Pointer<BIGNUM> dmq1, Pointer<BIGNUM> iqmp) → int -
RSA_set0_crt_params sets
rsa's CRT parameters todmp1,dmq1, andiqmp, if non-NULL, and takes ownership of them. On success, it takes ownership of its parameters and returns one. Otherwise, it returns zero. -
RSA_set0_factors(
Pointer< RSA> rsa, Pointer<BIGNUM> p, Pointer<BIGNUM> q) → int -
RSA_set0_factors sets
rsa's prime factors topandq, if non-NULL, and takes ownership of them. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
RSA_set0_key(
Pointer< RSA> rsa, Pointer<BIGNUM> n, Pointer<BIGNUM> e, Pointer<BIGNUM> d) → int -
RSA_set0_key sets
rsa's modulus, public exponent, and private exponent ton,e, anddrespectively, if non-NULL. On success, it takes ownership of each argument and returns one. Otherwise, it returns zero. -
RSA_set_ex_data(
Pointer< RSA> rsa, int idx, Pointer<Void> arg) → int -
RSA_sign(
int hash_nid, Pointer< Uint8> digest, int digest_len, Pointer<Uint8> out, Pointer<UnsignedInt> out_len, Pointer<RSA> rsa) → int -
RSA_sign signs
digest_lenbytes of digest fromdigestwithrsausing RSASSA-PKCS1-v1_5. It writes, at most,RSA_size(rsa)bytes toout. On successful return, the actual number of bytes written is written to*out_len. -
RSA_sign_pss_mgf1(
Pointer< RSA> rsa, Pointer<Size> out_len, Pointer<Uint8> out, int max_out, Pointer<Uint8> digest, int digest_len, Pointer<EVP_MD> md, Pointer<EVP_MD> mgf1_md, int salt_len) → int -
RSA_sign_pss_mgf1 signs
digest_lenbytes fromdigestwith the public key fromrsausing RSASSA-PSS with MGF1 as the mask generation function. It writes, at most,max_outbytes of signature data toout. Themax_outargument must be, at least,RSA_sizein order to ensure success. It returns 1 on success or zero on error. -
RSA_sign_raw(
Pointer< RSA> rsa, Pointer<Size> out_len, Pointer<Uint8> out, int max_out, Pointer<Uint8> in$, int in_len, int padding) → int -
RSA_sign_raw performs the private key portion of computing a signature with
rsa. It writes, at most,max_outbytes of signature data toout. Themax_outargument must be, at least,RSA_sizein order to ensure the output fits. It returns 1 on success or zero on error. -
RSA_size(
Pointer< RSA> rsa) → int -
RSA_size returns the number of bytes in the modulus, which is also the size
of a signature or encrypted value using
rsa. -
RSA_test_flags(
Pointer< RSA> rsa, int flags) → int -
RSA_test_flags returns the subset of flags in
flagswhich are set inrsa. -
RSA_up_ref(
Pointer< RSA> rsa) → int -
RSA_up_ref increments the reference count of
rsaand returns one. It does not mutatersafor thread-safety purposes and may be used concurrently. -
RSA_verify(
int hash_nid, Pointer< Uint8> digest, int digest_len, Pointer<Uint8> sig, int sig_len, Pointer<RSA> rsa) → int -
RSA_verify verifies that
sig_lenbytes fromsigare a valid, RSASSA-PKCS1-v1_5 signature ofdigest_lenbytes atdigestbyrsa. -
RSA_verify_PKCS1_PSS_mgf1(
Pointer< RSA> rsa, Pointer<Uint8> mHash, Pointer<EVP_MD> Hash, Pointer<EVP_MD> mgf1Hash, Pointer<Uint8> EM, int sLen) → int -
RSA_verify_PKCS1_PSS_mgf1 verifies that
EMis a correct PSS padding ofmHash, wheremHashis a digest produced byHash.EMmust point to exactlyRSA_size(rsa)bytes of data. Themgf1Hashargument specifies the hash function for generating the mask. If NULL,Hashis used. ThesLenargument specifies the expected salt length in bytes. IfsLenis -1 then the salt length is the same as the hash length. If -2, then the salt length is recovered and all values accepted. -
RSA_verify_pss_mgf1(
Pointer< RSA> rsa, Pointer<Uint8> digest, int digest_len, Pointer<EVP_MD> md, Pointer<EVP_MD> mgf1_md, int salt_len, Pointer<Uint8> sig, int sig_len) → int -
RSA_verify_pss_mgf1 verifies that
sig_lenbytes fromsigare a valid, RSASSA-PSS signature ofdigest_lenbytes atdigestbyrsa. It returns one if the signature is valid and zero otherwise. MGF1 is used as the mask generation function. -
RSA_verify_raw(
Pointer< RSA> rsa, Pointer<Size> out_len, Pointer<Uint8> out, int max_out, Pointer<Uint8> in$, int in_len, int padding) → int -
RSA_verify_raw performs the public key portion of verifying
in_lenbytes of signature frominusing the public key fromrsa. On success, it returns one and writes, at most,max_outbytes of output toout. Themax_outargument must be, at least,RSA_sizein order to ensure the output fits. On failure or invalid input, it returns zero. -
RSAPrivateKey_dup(
Pointer< RSA> rsa) → Pointer<RSA> -
RSAPrivateKey_dup allocates a fresh
RSAand copies the private key fromrsainto it. It returns the freshRSAobject, or NULL on error. -
RSAPublicKey_dup(
Pointer< RSA> rsa) → Pointer<RSA> -
RSAPublicKey_dup allocates a fresh
RSAand copies the public key fromrsainto it. It returns the freshRSAobject, or NULL on error. -
s2i_ASN1_INTEGER(
Pointer< X509V3_EXT_METHOD> method, Pointer<Char> value) → Pointer<ASN1_OCTET_STRING> -
s2i_ASN1_INTEGER decodes
valueas the ASCII representation of an integer, and returns a newly-allocatedASN1_INTEGERcontaining the result, or NULL on error.methodis ignored. Ifvaluebegins with "0x" or "0X", the input is decoded in hexadecimal, otherwise decimal. -
s2i_ASN1_OCTET_STRING(
Pointer< X509V3_EXT_METHOD> method, Pointer<X509V3_CTX> ctx, Pointer<Char> str) → Pointer<ASN1_OCTET_STRING> -
s2i_ASN1_OCTET_STRING decodes
stras a hexadecimal byte string, with optional colon separators between bytes. It returns a newly-allocatedASN1_OCTET_STRINGwith the result on success, or NULL on error.methodandctxare ignored. -
SHA1(
Pointer< Uint8> data, int len, Pointer<Uint8> out) → Pointer<Uint8> -
SHA1 writes the digest of
lenbytes fromdatatooutand returnsout. There must be at leastSHA_DIGEST_LENGTHbytes of space inout. -
SHA1_Final(
Pointer< Uint8> out, Pointer<SHA_CTX> sha) → int -
SHA1_Final adds the final padding to
shaand writes the resulting digest toout, which must have at leastSHA_DIGEST_LENGTHbytes of space. It returns one. -
SHA1_Init(
Pointer< SHA_CTX> sha) → int -
SHA1_Init initialises
shaand returns one. -
SHA1_Transform(
Pointer< SHA_CTX> sha, Pointer<Uint8> block) → void -
SHA1_Transform is a low-level function that performs a single, SHA-1 block
transformation using the state from
shaandSHA_CBLOCKbytes fromblock. -
SHA1_Update(
Pointer< SHA_CTX> sha, Pointer<Void> data, int len) → int -
SHA1_Update adds
lenbytes fromdatatoshaand returns one. -
SHA224(
Pointer< Uint8> data, int len, Pointer<Uint8> out) → Pointer<Uint8> -
SHA224 writes the digest of
lenbytes fromdatatooutand returnsout. There must be at leastSHA224_DIGEST_LENGTHbytes of space inout. -
SHA224_Final(
Pointer< Uint8> out, Pointer<SHA256_CTX> sha) → int -
SHA224_Final adds the final padding to
shaand writes the resulting digest toout, which must have at leastSHA224_DIGEST_LENGTHbytes of space. It returns 1. -
SHA224_Init(
Pointer< SHA256_CTX> sha) → int -
SHA224_Init initialises
shaand returns 1. -
SHA224_Update(
Pointer< SHA256_CTX> sha, Pointer<Void> data, int len) → int -
SHA224_Update adds
lenbytes fromdatatoshaand returns 1. -
SHA256(
Pointer< Uint8> data, int len, Pointer<Uint8> out) → Pointer<Uint8> -
SHA256 writes the digest of
lenbytes fromdatatooutand returnsout. There must be at leastSHA256_DIGEST_LENGTHbytes of space inout. -
SHA256_Final(
Pointer< Uint8> out, Pointer<SHA256_CTX> sha) → int -
SHA256_Final adds the final padding to
shaand writes the resulting digest toout, which must have at leastSHA256_DIGEST_LENGTHbytes of space. It returns one on success and zero on programmer error. -
SHA256_Init(
Pointer< SHA256_CTX> sha) → int -
SHA256_Init initialises
shaand returns 1. -
SHA256_Transform(
Pointer< SHA256_CTX> sha, Pointer<Uint8> block) → void -
SHA256_Transform is a low-level function that performs a single, SHA-256
block transformation using the state from
shaandSHA256_CBLOCKbytes fromblock. -
SHA256_TransformBlocks(
Pointer< CBS_ASN1_TAG> state, Pointer<Uint8> data, int num_blocks) → void -
SHA256_TransformBlocks is a low-level function that takes
num_blocks*SHA256_CBLOCKbytes of data and performs SHA-256 transforms on it to updatestate. You should not use this function unless you are implementing a derivative of SHA-256. -
SHA256_Update(
Pointer< SHA256_CTX> sha, Pointer<Void> data, int len) → int -
SHA256_Update adds
lenbytes fromdatatoshaand returns 1. -
SHA384(
Pointer< Uint8> data, int len, Pointer<Uint8> out) → Pointer<Uint8> -
SHA384 writes the digest of
lenbytes fromdatatooutand returnsout. There must be at leastSHA384_DIGEST_LENGTHbytes of space inout. -
SHA384_Final(
Pointer< Uint8> out, Pointer<SHA512_CTX> sha) → int -
SHA384_Final adds the final padding to
shaand writes the resulting digest toout, which must have at leastSHA384_DIGEST_LENGTHbytes of space. It returns one on success and zero on programmer error. -
SHA384_Init(
Pointer< SHA512_CTX> sha) → int -
SHA384_Init initialises
shaand returns 1. -
SHA384_Update(
Pointer< SHA512_CTX> sha, Pointer<Void> data, int len) → int -
SHA384_Update adds
lenbytes fromdatatoshaand returns 1. -
SHA512(
Pointer< Uint8> data, int len, Pointer<Uint8> out) → Pointer<Uint8> -
SHA512 writes the digest of
lenbytes fromdatatooutand returnsout. There must be at leastSHA512_DIGEST_LENGTHbytes of space inout. -
SHA512_256(
Pointer< Uint8> data, int len, Pointer<Uint8> out) → Pointer<Uint8> -
SHA512_256 writes the digest of
lenbytes fromdatatooutand returnsout. There must be at leastSHA512_256_DIGEST_LENGTHbytes of space inout. -
SHA512_256_Final(
Pointer< Uint8> out, Pointer<SHA512_CTX> sha) → int -
SHA512_256_Final adds the final padding to
shaand writes the resulting digest toout, which must have at leastSHA512_256_DIGEST_LENGTHbytes of space. It returns one on success and zero on programmer error. -
SHA512_256_Init(
Pointer< SHA512_CTX> sha) → int -
SHA512_256_Init initialises
shaand returns 1. -
SHA512_256_Update(
Pointer< SHA512_CTX> sha, Pointer<Void> data, int len) → int -
SHA512_256_Update adds
lenbytes fromdatatoshaand returns 1. -
SHA512_Final(
Pointer< Uint8> out, Pointer<SHA512_CTX> sha) → int -
SHA512_Final adds the final padding to
shaand writes the resulting digest toout, which must have at leastSHA512_DIGEST_LENGTHbytes of space. It returns one on success and zero on programmer error. -
SHA512_Init(
Pointer< SHA512_CTX> sha) → int -
SHA512_Init initialises
shaand returns 1. -
SHA512_Transform(
Pointer< SHA512_CTX> sha, Pointer<Uint8> block) → void -
SHA512_Transform is a low-level function that performs a single, SHA-512
block transformation using the state from
shaandSHA512_CBLOCKbytes fromblock. -
SHA512_Update(
Pointer< SHA512_CTX> sha, Pointer<Void> data, int len) → int -
SHA512_Update adds
lenbytes fromdatatoshaand returns 1. -
sk_free(
Pointer< OPENSSL_STACK> sk) → void -
sk_new_null(
) → Pointer< OPENSSL_STACK> -
The following functions call the corresponding
OPENSSL_sk_*function. -
sk_num(
Pointer< OPENSSL_STACK> sk) → int -
sk_pop(
Pointer< OPENSSL_STACK> sk) → Pointer<Void> -
sk_pop_free(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_free_func free_func) → void -
sk_pop_free behaves like
OPENSSL_sk_pop_free_exbut performs an invalid function pointer cast. It exists because some existing callers calledsk_pop_freedirectly. -
sk_pop_free_ex(
Pointer< OPENSSL_STACK> sk, OPENSSL_sk_call_free_func call_free_func, OPENSSL_sk_free_func free_func) → void -
sk_pop_free_ex calls
OPENSSL_sk_pop_free_ex. -
sk_push(
Pointer< OPENSSL_STACK> sk, Pointer<Void> p) → int -
sk_value(
Pointer< OPENSSL_STACK> sk, int i) → Pointer<Void> -
SPAKE2_CTX_free(
Pointer< SPAKE2_CTX> ctx) → void -
SPAKE2_CTX_free frees
ctxand all the resources that it has allocated. -
SPAKE2_CTX_new(
int my_role, Pointer< Uint8> my_name, int my_name_len, Pointer<Uint8> their_name, int their_name_len) → Pointer<SPAKE2_CTX> -
SPAKE2_CTX_new creates a new
SPAKE2_CTX(which can only be used for a single execution of the protocol). SPAKE2 requires the symmetry of the two parties to be broken which is indicated viamy_role– each party must pass a different value for this argument. -
SPAKE2_generate_msg(
Pointer< SPAKE2_CTX> ctx, Pointer<Uint8> out, Pointer<Size> out_len, int max_out_len, Pointer<Uint8> password, int password_len) → int -
SPAKE2_generate_msg generates a SPAKE2 message given
password, writes it tooutand sets*out_lento the number of bytes written. -
SPAKE2_process_msg(
Pointer< SPAKE2_CTX> ctx, Pointer<Uint8> out_key, Pointer<Size> out_key_len, int max_out_key_len, Pointer<Uint8> their_msg, int their_msg_len) → int -
SPAKE2_process_msg completes the SPAKE2 exchange given the peer's message in
their_msg, writes at mostmax_out_key_lenbytes toout_keyand sets*out_key_lento the number of bytes written. -
SSLeay(
) → int - SSLeay is a compatibility function that returns OPENSSL_VERSION_NUMBER from base.h.
-
SSLeay_version(
int which) → Pointer< Char> -
SSLeay_version calls
OpenSSL_version. -
USERNOTICE_free(
Pointer< USERNOTICE> notice) → void -
USERNOTICE_free releases memory associated with
notice. -
USERNOTICE_new(
) → Pointer< USERNOTICE> -
USERNOTICE_new returns a newly-allocated, empty
USERNOTICEobject, or NULL on error. -
X25519(
Pointer< Uint8> private_key, Pointer<Uint8> peer_public_value) → int -
X25519 writes a shared key to
out_shared_keythat is calculated from the given private key and the peer's public value. It returns one on success and zero on error. -
X25519_keypair(
Pointer< Uint8> out_public_value, Pointer<Uint8> out_private_key) → void -
X25519_keypair sets
out_public_valueandout_private_keyto a freshly generated, public–private key pair. -
X25519_public_from_private(
Pointer< Uint8> out_public_value, Pointer<Uint8> private_key) → void -
X25519_public_from_private calculates a Diffie-Hellman public value from the
given private key and writes it to
out_public_value. -
X509_add1_ext_i2d(
Pointer< X509> x, int nid, Pointer<Void> value, int crit, int flags) → int -
X509_add1_ext_i2d behaves like
X509V3_add1_i2dbut adds the extension tox's extension list. -
X509_add1_reject_object(
Pointer< X509> x509, Pointer<ASN1_OBJECT> obj) → int -
X509_add1_reject_object configures
x509as distrusted forobj. It returns one on success and zero on error.objshould be a certificate usage OID associated with anX509_TRUST_*constant. -
X509_add1_trust_object(
Pointer< X509> x509, Pointer<ASN1_OBJECT> obj) → int -
X509_add1_trust_object configures
x509as a valid trust anchor forobj. It returns one on success and zero on error.objshould be a certificate usage OID associated with anX509_TRUST_*constant. -
X509_add_ext(
Pointer< X509> x, Pointer<X509_EXTENSION> ex, int loc) → int -
X509_add_ext adds a copy of
extox. It returns one on success and zero on failure. The caller retains ownership ofexand can release it independently ofx. -
X509_ALGOR_cmp(
Pointer< X509_ALGOR> a, Pointer<X509_ALGOR> b) → int -
X509_ALGOR_cmp returns zero if
aandbare equal, and some non-zero value otherwise. Note this function can only be used for equality checks, not an ordering. -
X509_ALGOR_copy(
Pointer< X509_ALGOR> dst, Pointer<X509_ALGOR> src) → int -
X509_ALGOR_copy sets
dstto a copy of the contents ofsrc. It returns one on success and zero on error. -
X509_ALGOR_dup(
Pointer< X509_ALGOR> alg) → Pointer<X509_ALGOR> -
X509_ALGOR_dup returns a newly-allocated copy of
alg, or NULL on error. This function works by serializing the structure, so ifalgis incomplete, it may fail. -
X509_ALGOR_free(
Pointer< X509_ALGOR> alg) → void -
X509_ALGOR_free releases memory associated with
alg. -
X509_ALGOR_get0(
Pointer< Pointer< out_obj, Pointer<ASN1_OBJECT> >Int> out_param_type, Pointer<Pointer< out_param_value, Pointer<Void> >X509_ALGOR> alg) → void -
X509_ALGOR_get0 sets
*out_objto thealg's algorithm. Ifalg's parameter is omitted, it sets*out_param_typeand*out_param_valuetoV_ASN1_UNDEFand NULL. Otherwise, it sets*out_param_typeand*out_param_valueto the parameter, using the same representation asASN1_TYPE_set0. SeeASN1_TYPE_set0andASN1_TYPEfor details. -
X509_ALGOR_new(
) → Pointer< X509_ALGOR> -
X509_ALGOR_new returns a newly-allocated, empty
X509_ALGORobject, or NULL on error. -
X509_ALGOR_set0(
Pointer< X509_ALGOR> alg, Pointer<ASN1_OBJECT> obj, int param_type, Pointer<Void> param_value) → int -
X509_ALGOR_set0 sets
algto an AlgorithmIdentifier with algorithmobjand parameter determined byparam_typeandparam_value. It returns one on success and zero on error. This function takes ownership ofobjandparam_valueon success. -
X509_ALGOR_set_md(
Pointer< X509_ALGOR> alg, Pointer<EVP_MD> md) → int -
X509_ALGOR_set_md sets
algto the hash functionmd. Note this AlgorithmIdentifier represents the hash function itself, not a signature algorithm that usesmd. It returns one on success and zero on error. -
X509_alias_get0(
Pointer< X509> x509, Pointer<Int> out_len) → Pointer<Uint8> -
X509_alias_get0 looks up
x509's alias. If found, it sets*out_lento the alias's length and returns a pointer to a buffer containing the contents. If not found, it outputs the empty string by returning NULL and setting*out_lento zero. -
X509_alias_set1(
Pointer< X509> x509, Pointer<Uint8> name, int len) → int -
X509_alias_set1 sets
x509's alias tolenbytes fromname. Ifnameis NULL, the alias is cleared instead. Aliases are not part of the certificate itself and will not be serialized byi2d_X509. Ifx509is serialized in a PKCS#12 structure, the friendlyName attribute (RFC 2985) will contain this alias. -
X509_ATTRIBUTE_count(
Pointer< X509_ATTRIBUTE> attr) → int -
X509_ATTRIBUTE_count returns the number of values in
attr. -
X509_ATTRIBUTE_create(
int nid, int attrtype, Pointer< Void> value) → Pointer<X509_ATTRIBUTE> -
X509_ATTRIBUTE_create returns a newly-allocated
X509_ATTRIBUTE, or NULL on error. The attribute has typenidand contains a single value determined byattrtypeandvalue, which are interpreted as inASN1_TYPE_set. Note this function takes ownership ofvalue. -
X509_ATTRIBUTE_create_by_NID(
Pointer< Pointer< attr, int nid, int attrtype, Pointer<X509_ATTRIBUTE> >Void> data, int len) → Pointer<X509_ATTRIBUTE> -
X509_ATTRIBUTE_create_by_NID returns a newly-allocated
X509_ATTRIBUTEof typenid, or NULL on error. The value is determined as inX509_ATTRIBUTE_set1_data. -
X509_ATTRIBUTE_create_by_OBJ(
Pointer< Pointer< attr, Pointer<X509_ATTRIBUTE> >ASN1_OBJECT> obj, int attrtype, Pointer<Void> data, int len) → Pointer<X509_ATTRIBUTE> -
X509_ATTRIBUTE_create_by_OBJ behaves like
X509_ATTRIBUTE_create_by_NIDexcept the attribute's type is determined byobj. -
X509_ATTRIBUTE_create_by_txt(
Pointer< Pointer< attr, Pointer<X509_ATTRIBUTE> >Char> attrname, int type, Pointer<UnsignedChar> bytes, int len) → Pointer<X509_ATTRIBUTE> -
X509_ATTRIBUTE_create_by_txt behaves like
X509_ATTRIBUTE_create_by_NIDexcept the attribute's type is determined by callingOBJ_txt2objwithattrname. -
X509_ATTRIBUTE_dup(
Pointer< X509_ATTRIBUTE> attr) → Pointer<X509_ATTRIBUTE> -
X509_ATTRIBUTE_dup returns a newly-allocated copy of
attr, or NULL on error. This function works by serializing the structure, so ifattris incomplete, it may fail. -
X509_ATTRIBUTE_free(
Pointer< X509_ATTRIBUTE> attr) → void -
X509_ATTRIBUTE_free releases memory associated with
attr. -
X509_ATTRIBUTE_get0_data(
Pointer< X509_ATTRIBUTE> attr, int idx, int attrtype, Pointer<Void> unused) → Pointer<Void> -
X509_ATTRIBUTE_get0_data returns the
idxth value ofattrin a type-specific representation toattrtype, or NULL if out of bounds or the type does not match.attrtypeis one of the type values inASN1_TYPE. On match, the return value uses the same representation asASN1_TYPE_set0. SeeASN1_TYPEfor details. -
X509_ATTRIBUTE_get0_object(
Pointer< X509_ATTRIBUTE> attr) → Pointer<ASN1_OBJECT> -
X509_ATTRIBUTE_get0_object returns the type of
attr. -
X509_ATTRIBUTE_get0_type(
Pointer< X509_ATTRIBUTE> attr, int idx) → Pointer<ASN1_TYPE> -
X509_ATTRIBUTE_get0_type returns the
idxth value inattr, or NULL if out of bounds. Note this function returns one ofattr's values, not the type. -
X509_ATTRIBUTE_new(
) → Pointer< X509_ATTRIBUTE> -
X509_ATTRIBUTE_new returns a newly-allocated, empty
X509_ATTRIBUTEobject, or NULL on error.X509_ATTRIBUTE_set1_*may be used to finish initializing it. -
X509_ATTRIBUTE_set1_data(
Pointer< X509_ATTRIBUTE> attr, int attrtype, Pointer<Void> data, int len) → int -
X509_ATTRIBUTE_set1_data appends a value to
attr's value set and returns one on success or zero on error. The value is determined as follows: -
X509_ATTRIBUTE_set1_object(
Pointer< X509_ATTRIBUTE> attr, Pointer<ASN1_OBJECT> obj) → int -
X509_ATTRIBUTE_set1_object sets
attr's type toobj. It returns one on success and zero on error. -
X509_chain_up_ref(
Pointer< stack_st_X509> chain) → Pointer<stack_st_X509> -
X509_chain_up_ref returns a newly-allocated
STACK_OF(X509)containing a shallow copy ofchain, or NULL on error. That is, the return value has the same contents aschain, and eachX509's reference count is incremented by one. -
X509_check_ca(
Pointer< X509> x509) → int -
X509_check_ca returns one if
x509may be considered a CA certificate, according to basic constraints and key usage extensions. Otherwise, it returns zero. Ifx509is an X509v1 certificate, and thus has no extensions, it is considered eligible. -
X509_check_email(
Pointer< X509> x509, Pointer<Char> chk, int chklen, int flags) → int -
X509_check_email checks if
x509matches the email addresschk. It returns one on match, zero on mismatch, or a negative number on error.flagsshould be some combination ofX509_CHECK_FLAG_*and modifies the behavior. -
X509_check_host(
Pointer< X509> x509, Pointer<Char> chk, int chklen, int flags, Pointer<Pointer< out_peername) → intChar> > -
X509_check_host checks if
x509matches the DNS namechk. It returns one on match, zero on mismatch, or a negative number on error.flagsshould be some combination ofX509_CHECK_FLAG_*and modifies the behavior. On match, ifout_peernameis non-NULL, it additionally sets*out_peernameto a newly-allocated, NUL-terminated string containing the DNS name or wildcard in the certificate which matched. The caller must then free*out_peernamewithOPENSSL_freewhen done. -
X509_check_ip(
Pointer< X509> x509, Pointer<Uint8> chk, int chklen, int flags) → int -
X509_check_ip checks if
x509matches the IP addresschk. The IP address is represented in byte form and should be 4 bytes for an IPv4 address and 16 bytes for an IPv6 address. It returns one on match, zero on mismatch, or a negative number on error.flagsshould be some combination ofX509_CHECK_FLAG_*and modifies the behavior. -
X509_check_ip_asc(
Pointer< X509> x509, Pointer<Char> ipasc, int flags) → int -
X509_check_ip_asc behaves like
X509_check_ipexcept the IP address is specified in textual form inipasc. -
X509_check_issued(
Pointer< X509> issuer, Pointer<X509> subject) → int -
X509_check_issued checks if
issuerandsubject's name, authority key identifier, and key usage fields allowissuerto have issuedsubject. It returnsX509_V_OKon success and anX509_V_ERR_*value otherwise. -
X509_check_private_key(
Pointer< X509> x509, Pointer<EVP_PKEY> pkey) → int -
X509_check_private_key returns one if
x509's public key matchespkeyand zero otherwise. -
X509_check_purpose(
Pointer< X509> x509, int purpose, int ca) → int -
X509_check_purpose performs checks if
x509's basic constraints, key usage, and extended key usage extensions for the specified purpose.purposeshould be one ofX509_PURPOSE_*constants. SeeX509_VERIFY_PARAM_set_purposefor details. It returns one ifx509's extensions are consistent withpurposeand zero otherwise. Ifcais non-zero,x509is checked as a CA certificate. Otherwise, it is checked as an end-entity certificate. -
X509_check_trust(
Pointer< X509> x509, int id, int flags) → int -
X509_check_trust checks if
x509is a valid trust anchor for trust typeid. SeeX509_VERIFY_PARAM_set_trustfor details. It returnsX509_TRUST_TRUSTEDifx509is a trust anchor,X509_TRUST_REJECTEDif it was distrusted, andX509_TRUST_UNTRUSTEDotherwise.idshould be one of theX509_TRUST_*constants, or zero to indicate the default behavior.flagsshould be zero and is ignored. -
X509_cmp(
Pointer< X509> a, Pointer<X509> b) → int -
X509_cmp compares
aandband returns zero if they are equal, a negative number ifbsorts afteraand a negative number ifasorts afterb. The sort order implemented by this function is arbitrary and does not reflect properties of the certificate such as expiry. Applications should not rely on the order itself. -
X509_cmp_current_time(
Pointer< ASN1_OCTET_STRING> s) → int -
X509_cmp_current_time behaves like
X509_cmp_timebut comparessagainst the current time. -
X509_cmp_time(
Pointer< ASN1_OCTET_STRING> s, Pointer<Long> t) → int -
X509_cmp_time compares
sagainst*t. On success, it returns a negative number ifs<=*tand a positive number ifs>*t. On error, it returns zero. Iftis NULL, it uses the current time instead of*t. -
X509_cmp_time_posix(
Pointer< ASN1_OCTET_STRING> s, int t) → int -
X509_cmp_time_posix compares
sagainstt. On success, it returns a negative number ifs<=tand a positive number ifs>t. On error, it returns zero. -
X509_cmp_time_posix_nonstandard(
Pointer< ASN1_OCTET_STRING> s, int t) → int -
X509_cmp_time_posix_nonstandard compares
sagainstt. On success, it returns a negative number ifs<=tand a positive number ifs>t. On error, it returns zero. -
X509_CRL_add0_revoked(
Pointer< X509_CRL> crl, Pointer<X509_REVOKED> rev) → int -
X509_CRL_add0_revoked adds
revtocrl. On success, it takes ownership ofrevand returns one. On error, it returns zero. If this function fails, the caller retains ownership ofrevand must release it when done. -
X509_CRL_add1_ext_i2d(
Pointer< X509_CRL> x, int nid, Pointer<Void> value, int crit, int flags) → int -
X509_CRL_add1_ext_i2d behaves like
X509V3_add1_i2dbut adds the extension tox's extension list. -
X509_CRL_add_ext(
Pointer< X509_CRL> x, Pointer<X509_EXTENSION> ex, int loc) → int -
X509_CRL_add_ext adds a copy of
extox. It returns one on success and zero on failure. The caller retains ownership ofexand can release it independently ofx. -
X509_CRL_cmp(
Pointer< X509_CRL> a, Pointer<X509_CRL> b) → int -
X509_CRL_cmp behaves like
X509_NAME_cmp, but comparesaandb's issuer names. -
X509_CRL_delete_ext(
Pointer< X509_CRL> x, int loc) → Pointer<X509_EXTENSION> -
X509_CRL_delete_ext removes the extension in
xat indexlocand returns the removed extension, or NULL iflocwas out of bounds. If non-NULL, the caller must release the result withX509_EXTENSION_free. -
X509_CRL_digest(
Pointer< X509_CRL> crl, Pointer<EVP_MD> md, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → int -
X509_CRL_digest hashes
crl's DER encoding withmdand writes the result toout.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_lenis not NULL,*out_lenis set to the number of bytes written. This function returns one on success and zero on error. Note this digest covers the entire CRL, not just the signed portion. -
X509_CRL_dup(
Pointer< X509_CRL> crl) → Pointer<X509_CRL> -
X509_CRL_dup returns a newly-allocated copy of
crl, or NULL on error. This function works by serializing the structure, so ifcrlis incomplete, it may fail. -
X509_CRL_dup_ref(
Pointer< X509_CRL> crl) → Pointer<X509_CRL> -
X509_CRL_dup_ref adds one to the reference count of
crland returns the same. -
X509_CRL_free(
Pointer< X509_CRL> crl) → void -
X509_CRL_free decrements
crl's reference count and, if zero, releases memory associated withcrl. -
X509_CRL_get0_by_cert(
Pointer< X509_CRL> crl, Pointer<Pointer< out, Pointer<X509_REVOKED> >X509> x509) → int -
X509_CRL_get0_by_cert behaves like
X509_CRL_get0_by_serial, except it looks for the entry that matchesx509. -
X509_CRL_get0_by_serial(
Pointer< X509_CRL> crl, Pointer<Pointer< out, Pointer<X509_REVOKED> >ASN1_OCTET_STRING> serial) → int -
X509_CRL_get0_by_serial finds the entry in
crlwhose serial number isserial. If found, it sets*outto the entry and returns one. If not found, it returns zero. -
X509_CRL_get0_extensions(
Pointer< X509_CRL> crl) → Pointer<X509_EXTENSIONS> -
X509_CRL_get0_extensions returns
crl's extension list, or NULL ifcrlomits it. A CRL can have extensions on individual entries, which isX509_REVOKED_get0_extensions, or on the overall CRL, which is this function. -
X509_CRL_get0_lastUpdate(
Pointer< X509_CRL> crl) → Pointer<ASN1_OCTET_STRING> -
X509_CRL_get0_lastUpdate returns
crl's thisUpdate time. The OpenSSL API refers to this field as lastUpdate. -
X509_CRL_get0_nextUpdate(
Pointer< X509_CRL> crl) → Pointer<ASN1_OCTET_STRING> -
X509_CRL_get0_nextUpdate returns
crl's nextUpdate time, or NULL ifcrlhas none. -
X509_CRL_get0_signature(
Pointer< X509_CRL> crl, Pointer<Pointer< out_sig, Pointer<ASN1_OCTET_STRING> >Pointer< out_alg) → voidX509_ALGOR> > -
X509_CRL_get0_signature sets
*out_sigand*out_algto the signature and signature algorithm ofcrl, respectively. Either output pointer may be NULL to ignore the value. -
X509_CRL_get_ext(
Pointer< X509_CRL> x, int loc) → Pointer<X509_EXTENSION> -
X509_CRL_get_ext returns the extension in
xat indexloc, or NULL iflocis out of bounds. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. -
X509_CRL_get_ext_by_critical(
Pointer< X509_CRL> x, int crit, int lastpos) → int -
X509_CRL_get_ext_by_critical behaves like
X509v3_get_ext_by_criticalbut searches for extensions inx. -
X509_CRL_get_ext_by_NID(
Pointer< X509_CRL> x, int nid, int lastpos) → int -
X509_CRL_get_ext_by_NID behaves like
X509v3_get_ext_by_NIDbut searches for extensions inx. -
X509_CRL_get_ext_by_OBJ(
Pointer< X509_CRL> x, Pointer<ASN1_OBJECT> obj, int lastpos) → int -
X509_CRL_get_ext_by_OBJ behaves like
X509v3_get_ext_by_OBJbut searches for extensions inx. -
X509_CRL_get_ext_count(
Pointer< X509_CRL> x) → int -
X509_CRL_get_ext_count returns the number of extensions in
x. -
X509_CRL_get_ext_d2i(
Pointer< X509_CRL> crl, int nid, Pointer<Int> out_critical, Pointer<Int> out_idx) → Pointer<Void> -
X509_CRL_get_ext_d2i behaves like
X509V3_get_d2ibut looks for the extension incrl's extension list. -
X509_CRL_get_issuer(
Pointer< X509_CRL> crl) → Pointer<X509_NAME> -
X509_CRL_get_issuer returns
crl's issuer name. Note this function is not const-correct for legacy reasons. -
X509_CRL_get_lastUpdate(
Pointer< X509_CRL> crl) → Pointer<ASN1_OCTET_STRING> -
X509_CRL_get_lastUpdate returns a mutable pointer to
crl's thisUpdate time. The OpenSSL API refers to this field as lastUpdate. -
X509_CRL_get_nextUpdate(
Pointer< X509_CRL> crl) → Pointer<ASN1_OCTET_STRING> -
X509_CRL_get_nextUpdate returns a mutable pointer to
crl's nextUpdate time, or NULL ifcrlhas none. UseX509_CRL_get0_nextUpdateorX509_CRL_set1_nextUpdateinstead. -
X509_CRL_get_REVOKED(
Pointer< X509_CRL> crl) → Pointer<stack_st_X509_REVOKED> -
X509_CRL_get_REVOKED returns the list of revoked certificates in
crl, or NULL ifcrlomits it. -
X509_CRL_get_signature_nid(
Pointer< X509_CRL> crl) → int -
X509_CRL_get_signature_nid returns the NID corresponding to
crl's signature algorithm, orNID_undefif the signature algorithm does not correspond to a known NID. -
X509_CRL_get_version(
Pointer< X509_CRL> crl) → int -
X509_CRL_get_version returns the numerical value of
crl's version, which will be one of theX509_CRL_VERSION_*constants. -
X509_CRL_match(
Pointer< X509_CRL> a, Pointer<X509_CRL> b) → int -
X509_CRL_match compares
aandband returns zero if they are equal, a negative number ifbsorts afteraand a negative number ifasorts afterb. The sort order implemented by this function is arbitrary and does not reflect properties of the CRL such as expiry. Applications should not rely on the order itself. -
X509_CRL_new(
) → Pointer< X509_CRL> -
X509_CRL_new returns a newly-allocated, empty
X509_CRLobject, or NULL on error. This object may be filled in and then signed to construct a CRL. -
X509_CRL_print(
Pointer< BIO> bp, Pointer<X509_CRL> x) → int -
X509_CRL_print writes a human-readable representation of
xtobp. It returns one on success and zero on error. -
X509_CRL_print_fp(
Pointer< FILE> fp, Pointer<X509_CRL> x) → int -
X509_CRL_print_fp behaves like
X509_CRL_printbut writes tofp. -
X509_CRL_set1_lastUpdate(
Pointer< X509_CRL> crl, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_CRL_set1_lastUpdate sets
crl's thisUpdate time totm. It returns one on success and zero on error. The OpenSSL API refers to this field as lastUpdate. -
X509_CRL_set1_nextUpdate(
Pointer< X509_CRL> crl, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_CRL_set1_nextUpdate sets
crl's nextUpdate time totm. It returns one on success and zero on error. -
X509_CRL_set1_signature_algo(
Pointer< X509_CRL> crl, Pointer<X509_ALGOR> algo) → int -
X509_CRL_set1_signature_algo sets
crl's signature algorithm toalgoand returns one on success or zero on error. It updates both the signature field of the TBSCertList structure, and the signatureAlgorithm field of the CRL. -
X509_CRL_set1_signature_value(
Pointer< X509_CRL> crl, Pointer<Uint8> sig, int sig_len) → int -
X509_CRL_set1_signature_value sets
crl's signature to a copy of thesig_lenbytes pointed bysig. It returns one on success and zero on error. -
X509_CRL_set_issuer_name(
Pointer< X509_CRL> crl, Pointer<X509_NAME> name) → int -
X509_CRL_set_issuer_name sets
crl's issuer to a copy ofname. It returns one on success and zero on error. -
X509_CRL_set_version(
Pointer< X509_CRL> crl, int version) → int -
X509_CRL_set_version sets
crl's version toversion, which should be one of theX509_CRL_VERSION_*constants. It returns one on success and zero on error. -
X509_CRL_sign(
Pointer< X509_CRL> crl, Pointer<EVP_PKEY> pkey, Pointer<EVP_MD> md) → int -
X509_CRL_sign signs
crlwithpkeyand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. This function uses digest algorithmmd, orpkey's default if NULL. Other signing parameters usepkey's defaults. To customize them, useX509_CRL_sign_ctx. -
X509_CRL_sign_ctx(
Pointer< X509_CRL> crl, Pointer<EVP_MD_CTX> ctx) → int -
X509_CRL_sign_ctx signs
crlwithctxand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. The signature algorithm and parameters come fromctx, which must have been initialized withEVP_DigestSignInit. The caller should configure the correspondingEVP_PKEY_CTXbefore calling this function. -
X509_CRL_sort(
Pointer< X509_CRL> crl) → int -
X509_CRL_sort sorts the entries in
crlby serial number. It returns one on success and zero on error. -
X509_CRL_up_ref(
Pointer< X509_CRL> crl) → int -
X509_CRL_up_ref adds one to the reference count of
crland returns one. -
X509_CRL_verify(
Pointer< X509_CRL> crl, Pointer<EVP_PKEY> pkey) → int -
X509_CRL_verify checks that
crlhas a valid signature bypkey. It returns one if the signature is valid and zero otherwise. -
X509_delete_ext(
Pointer< X509> x, int loc) → Pointer<X509_EXTENSION> -
X509_delete_ext removes the extension in
xat indexlocand returns the removed extension, or NULL iflocwas out of bounds. If non-NULL, the caller must release the result withX509_EXTENSION_free. -
X509_digest(
Pointer< X509> x509, Pointer<EVP_MD> md, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → int -
X509_digest hashes
x509's DER encoding withmdand writes the result toout.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_lenis not NULL,*out_lenis set to the number of bytes written. This function returns one on success and zero on error. Note this digest covers the entire certificate, not just the signed portion. -
X509_dup(
Pointer< X509> x509) → Pointer<X509> -
X509_dup returns a newly-allocated copy of
x509, or NULL on error. This function works by serializing the structure, so auxiliary properties (seei2d_X509_AUX) are not preserved. Additionally, ifx509is incomplete, this function may fail. -
X509_dup_ref(
Pointer< X509> x509) → Pointer<X509> -
X509_dup_ref increments the reference count of
x509and returnsx509. The caller must callX509_freeon the result to release the reference. -
X509_email_free(
Pointer< stack_st_OPENSSL_STRING> sk) → void -
X509_email_free releases memory associated with
sk, includingskitself. EachOPENSSL_STRINGinskmust be a NUL-terminated string allocated withOPENSSL_malloc. Ifskis NULL, no action is taken. -
X509_EXTENSION_create_by_NID(
Pointer< Pointer< ex, int nid, int crit, Pointer<X509_EXTENSION> >ASN1_OCTET_STRING> data) → Pointer<X509_EXTENSION> -
X509_EXTENSION_create_by_NID creates a new
X509_EXTENSIONwith typenid, valuedata, and critical bitcrit. It returns anX509_EXTENSIONon success, and NULL on error.nidshould be aNID_*constant. -
X509_EXTENSION_create_by_OBJ(
Pointer< Pointer< ex, Pointer<X509_EXTENSION> >ASN1_OBJECT> obj, int crit, Pointer<ASN1_OCTET_STRING> data) → Pointer<X509_EXTENSION> -
X509_EXTENSION_create_by_OBJ behaves like
X509_EXTENSION_create_by_NID, but the extension type is determined by anASN1_OBJECT. -
X509_EXTENSION_dup(
Pointer< X509_EXTENSION> ex) → Pointer<X509_EXTENSION> -
X509_EXTENSION_dup returns a newly-allocated copy of
ex, or NULL on error. This function works by serializing the structure, so ifexis incomplete, it may fail. -
X509_EXTENSION_free(
Pointer< X509_EXTENSION> ex) → void -
X509_EXTENSION_free releases memory associated with
ex. -
X509_EXTENSION_get_critical(
Pointer< X509_EXTENSION> ex) → int -
X509_EXTENSION_get_critical returns one if
exis critical and zero otherwise. -
X509_EXTENSION_get_data(
Pointer< X509_EXTENSION> ne) → Pointer<ASN1_OCTET_STRING> -
X509_EXTENSION_get_data returns
ne's extension value. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. -
X509_EXTENSION_get_object(
Pointer< X509_EXTENSION> ex) → Pointer<ASN1_OBJECT> -
X509_EXTENSION_get_object returns
ex's extension type. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. -
X509_EXTENSION_new(
) → Pointer< X509_EXTENSION> -
X509_EXTENSION_new returns a newly-allocated, empty
X509_EXTENSIONobject or NULL on error. -
X509_EXTENSION_set_critical(
Pointer< X509_EXTENSION> ex, int crit) → int -
X509_EXTENSION_set_critical sets
exto critical ifcritis non-zero and to non-critical ifcritis zero. -
X509_EXTENSION_set_data(
Pointer< X509_EXTENSION> ex, Pointer<ASN1_OCTET_STRING> data) → int -
X509_EXTENSION_set_data sets
ex's extension value to a copy ofdata. It returns one on success and zero on error. -
X509_EXTENSION_set_object(
Pointer< X509_EXTENSION> ex, Pointer<ASN1_OBJECT> obj) → int -
X509_EXTENSION_set_object sets
ex's extension type toobj. It returns one on success and zero on error. -
X509_find_by_issuer_and_serial(
Pointer< stack_st_X509> sk, Pointer<X509_NAME> name, Pointer<ASN1_OCTET_STRING> serial) → Pointer<X509> -
X509_find_by_issuer_and_serial returns the first
X509inskwhose issuer and serial arenameandserial, respectively. If no match is found, it returns NULL. -
X509_find_by_subject(
Pointer< stack_st_X509> sk, Pointer<X509_NAME> name) → Pointer<X509> -
X509_find_by_subject returns the first
X509inskwhose subject isname. If no match is found, it returns NULL. -
X509_free(
Pointer< X509> x509) → void -
X509_free decrements
x509's reference count and, if zero, releases memory associated withx509. -
X509_get0_authority_issuer returns the authorityCertIssuer of
x509's authority key identifier, if the extension and field are present. (See RFC 5280, section 4.2.1.1.) It returns NULL if the extension is not present, if it is present but lacks an authorityCertIssuer field, or if some extension inx509was invalid. -
X509_get0_authority_key_id returns keyIdentifier of
x509's authority key identifier, if the extension and field are present. (See RFC 5280, section 4.2.1.1.) It returns NULL if the extension is not present, if it is present but lacks a keyIdentifier field, or if some extension inx509was invalid. -
X509_get0_authority_serial returns the authorityCertSerialNumber of
x509's authority key identifier, if the extension and field are present. (See RFC 5280, section 4.2.1.1.) It returns NULL if the extension is not present, if it is present but lacks an authorityCertSerialNumber field, or if some extension inx509was invalid. -
X509_get0_extensions(
Pointer< X509> x509) → Pointer<X509_EXTENSIONS> -
X509_get0_extensions returns
x509's extension list, or NULL ifx509omits it. -
X509_get0_notAfter(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get0_notAfter returns
x509's notAfter time. -
X509_get0_notBefore(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get0_notBefore returns
x509's notBefore time. -
X509_get0_pubkey(
Pointer< X509> x509) → Pointer<EVP_PKEY> -
X509_get0_pubkey returns
x509's public key as anEVP_PKEY, or NULL if the public key was unsupported or could not be decoded. TheEVP_PKEYis cached inx509, so callers must not mutate the result. -
X509_get0_pubkey_bitstr(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get0_pubkey_bitstr returns the BIT STRING portion of
x509's public key. Note this does not contain the AlgorithmIdentifier portion. -
X509_get0_serialNumber(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get0_serialNumber returns
x509's serial number. -
X509_get0_signature(
Pointer< Pointer< out_sig, Pointer<ASN1_OCTET_STRING> >Pointer< out_alg, Pointer<X509_ALGOR> >X509> x509) → void -
X509_get0_signature sets
*out_sigand*out_algto the signature and signature algorithm ofx509, respectively. Either output pointer may be NULL to ignore the value. -
X509_get0_subject_key_id(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get0_subject_key_id returns
x509's subject key identifier, if present. (See RFC 5280, section 4.2.1.2.) It returns NULL if the extension is not present or if some extension inx509was invalid. -
X509_get0_tbs_sigalg(
Pointer< X509> x509) → Pointer<X509_ALGOR> -
X509_get0_tbs_sigalg returns the signature algorithm in
x509's TBSCertificate. For the outer signature algorithm, seeX509_get0_signature. -
X509_get0_uids(
Pointer< X509> x509, Pointer<Pointer< out_issuer_uid, Pointer<ASN1_OCTET_STRING> >Pointer< out_subject_uid) → voidASN1_OCTET_STRING> > -
X509_get0_uids sets
*out_issuer_uidto a non-owning pointer to the issuerUID field ofx509, or NULL ifx509has no issuerUID. It similarly outputsx509's subjectUID field to*out_subject_uid. -
X509_get1_email(
Pointer< X509> x509) → Pointer<stack_st_OPENSSL_STRING> -
X509_get1_email returns a newly-allocated list of NUL-terminated strings
containing all email addresses in
x509's subject and all rfc822name names inx509's subject alternative names. Email addresses which contain embedded NUL bytes are skipped. The results are returned in an arbitrary order. -
X509_get1_ocsp(
Pointer< X509> x509) → Pointer<stack_st_OPENSSL_STRING> -
X509_get1_ocsp returns a newly-allocated list of NUL-terminated strings
containing all OCSP URIs in
x509. That is, it collects all URI AccessDescriptions with an accessMethod of id-ad-ocsp inx509's authority information access extension. URIs which contain embedded NUL bytes are skipped. The results are returned in an arbitrary order. -
X509_get_default_cert_area(
) → Pointer< Char> - The following functions return filesystem paths used to determine the above "default" paths, when the corresponding environment variables are not set.
-
X509_get_default_cert_dir(
) → Pointer< Char> -
X509_get_default_cert_dir_env(
) → Pointer< Char> - X509_get_default_cert_dir_env returns "SSL_CERT_DIR", an environment variable used to determine the above "default" paths.
-
X509_get_default_cert_file(
) → Pointer< Char> -
X509_get_default_cert_file_env(
) → Pointer< Char> - X509_get_default_cert_file_env returns "SSL_CERT_FILE", an environment variable used to determine the above "default" paths.
-
X509_get_default_private_dir(
) → Pointer< Char> -
X509_get_ex_data(
Pointer< X509> r, int idx) → Pointer<Void> -
X509_get_ex_new_index(
int argl, Pointer< Void> argp, Pointer<Int> unused, Pointer<CRYPTO_EX_dup> dup_unused, Pointer<CRYPTO_EX_free> free_func) → int - ex_data functions.
-
X509_get_ext(
Pointer< X509> x, int loc) → Pointer<X509_EXTENSION> -
X509_get_ext returns the extension in
xat indexloc, or NULL iflocis out of bounds. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. -
X509_get_ext_by_critical(
Pointer< X509> x, int crit, int lastpos) → int -
X509_get_ext_by_critical behaves like
X509v3_get_ext_by_criticalbut searches for extensions inx. -
X509_get_ext_by_NID(
Pointer< X509> x, int nid, int lastpos) → int -
X509_get_ext_by_NID behaves like
X509v3_get_ext_by_NIDbut searches for extensions inx. -
X509_get_ext_by_OBJ(
Pointer< X509> x, Pointer<ASN1_OBJECT> obj, int lastpos) → int -
X509_get_ext_by_OBJ behaves like
X509v3_get_ext_by_OBJbut searches for extensions inx. -
X509_get_ext_count(
Pointer< X509> x) → int -
X509_get_ext_count returns the number of extensions in
x. -
X509_get_ext_d2i(
Pointer< X509> x509, int nid, Pointer<Int> out_critical, Pointer<Int> out_idx) → Pointer<Void> -
X509_get_ext_d2i behaves like
X509V3_get_d2ibut looks for the extension inx509's extension list. -
X509_get_extended_key_usage(
Pointer< X509> x509) → int -
X509_get_extended_key_usage returns a bitmask of extended key usages (see
Section 4.2.1.12 of RFC 5280) which
x509is valid for. The result will be a combination ofXKU_*constants. If checking an extended key usage not defined above, callers should extract the extended key usage extension separately, e.g. viaX509_get_ext_d2i. -
X509_get_extension_flags(
Pointer< X509> x509) → int -
X509_get_extension_flags decodes a set of extensions from
x509and returns a collection ofEXFLAG_*bits which reflectx509. If there was an error in computing this bitmask, the result will include theEXFLAG_INVALIDbit. -
X509_get_issuer_name(
Pointer< X509> x509) → Pointer<X509_NAME> -
X509_get_issuer_name returns
x509's issuer. -
X509_get_key_usage(
Pointer< X509> x509) → int -
X509_get_key_usage returns a bitmask of key usages (see Section 4.2.1.3 of
RFC 5280) which
x509is valid for. This function only reports the first 16 bits, in a little-endian byte order, but big-endian bit order. That is, bits 0 though 7 are reported at 1<<7 through 1<<0, and bits 8 through 15 are reported at 1<<15 through 1<<8. -
X509_get_notAfter(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get_notAfter returns
x509's notAfter time. Note this function is not const-correct for legacy reasons. UseX509_get0_notAfterorX509_getm_notAfterinstead. -
X509_get_notBefore(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get_notBefore returns
x509's notBefore time. Note this function is not const-correct for legacy reasons. UseX509_get0_notBeforeorX509_getm_notBeforeinstead. -
X509_get_pathlen(
Pointer< X509> x509) → int -
X509_get_pathlen returns path length constraint from the basic constraints
extension in
x509. (See RFC 5280, section 4.2.1.9.) It returns -1 if the constraint is not present, or if some extension inx509was invalid. -
X509_get_pubkey(
Pointer< X509> x509) → Pointer<EVP_PKEY> -
X509_get_pubkey behaves like
X509_get0_pubkeybut increments the reference count on theEVP_PKEY. The caller must release the result withEVP_PKEY_freewhen done. TheEVP_PKEYis cached inx509, so callers must not mutate the result. -
X509_get_serialNumber(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_get_serialNumber returns a mutable pointer to
x509's serial number. PreferX509_get0_serialNumber. -
X509_get_signature_nid(
Pointer< X509> x509) → int -
X509_get_signature_nid returns the NID corresponding to
x509's signature algorithm, orNID_undefif the signature algorithm does not correspond to a known NID. -
X509_get_subject_name(
Pointer< X509> x509) → Pointer<X509_NAME> -
X509_get_subject_name returns
x509's subject. -
X509_get_version(
Pointer< X509> x509) → int -
X509_get_version returns the numerical value of
x509's version, which will be one of theX509_VERSION_*constants. -
X509_get_X509_PUBKEY(
Pointer< X509> x509) → Pointer<X509_PUBKEY> -
X509_get_X509_PUBKEY returns the public key of
x509. Note this function is not const-correct for legacy reasons. Callers should not modify the returned object. -
X509_getm_notAfter(
Pointer< X509> x) → Pointer<ASN1_OCTET_STRING> -
X509_getm_notAfter returns a mutable pointer to
x509's notAfter time. -
X509_getm_notBefore(
Pointer< X509> x509) → Pointer<ASN1_OCTET_STRING> -
X509_getm_notBefore returns a mutable pointer to
x509's notBefore time. -
X509_gmtime_adj(
Pointer< ASN1_OCTET_STRING> s, int offset_sec) → Pointer<ASN1_OCTET_STRING> -
X509_gmtime_adj behaves like
X509_time_adj_exbut addsoffset_secto the current time. -
X509_INFO_free(
Pointer< X509_INFO> info) → void -
X509_INFO_free releases memory associated with
info. -
X509_issuer_name_cmp(
Pointer< X509> a, Pointer<X509> b) → int -
X509_issuer_name_cmp behaves like
X509_NAME_cmp, but comparesaandb's issuer names. -
X509_issuer_name_hash(
Pointer< X509> x509) → int -
X509_issuer_name_hash returns the hash of
x509's issuer name withX509_NAME_hash. -
X509_issuer_name_hash_old(
Pointer< X509> x509) → int -
X509_issuer_name_hash_old returns the hash of
x509's issuer name withX509_NAME_hash_old. -
X509_keyid_get0(
Pointer< X509> x509, Pointer<Int> out_len) → Pointer<Uint8> -
X509_keyid_get0 looks up
x509's key ID. If found, it sets*out_lento the key ID's length and returns a pointer to a buffer containing the contents. If not found, it outputs the empty string by returning NULL and setting*out_lento zero. -
X509_keyid_set1(
Pointer< X509> x509, Pointer<Uint8> id, int len) → int -
X509_keyid_set1 sets
x509's key ID tolenbytes fromid. Ifidis NULL, the key ID is cleared instead. Key IDs are not part of the certificate itself and will not be serialized byi2d_X509. -
X509_load_cert_crl_file(
Pointer< X509_LOOKUP> lookup, Pointer<Char> file, int type) → int -
X509_load_cert_crl_file loads CRLs and trusted certificates from
fileand adds them tolookup'sX509_STORE. It returns one on success and zero on error. -
X509_load_cert_file(
Pointer< X509_LOOKUP> lookup, Pointer<Char> file, int type) → int -
X509_load_cert_file loads trusted certificates from
fileand adds them tolookup'sX509_STORE. It returns one on success and zero on error. -
X509_load_crl_file(
Pointer< X509_LOOKUP> lookup, Pointer<Char> file, int type) → int -
X509_load_crl_file loads CRLs from
fileand add them it tolookup'sX509_STORE. It returns one on success and zero on error. -
X509_LOOKUP_add_dir(
Pointer< X509_LOOKUP> lookup, Pointer<Char> path, int type) → int -
X509_LOOKUP_add_dir configures
lookupto load CRLs and trusted certificates from the directories inpath. It returns one on success and zero on error.lookupmust have been constructed withX509_LOOKUP_hash_dir. -
X509_LOOKUP_ctrl(
Pointer< X509_LOOKUP> lookup, int cmd, Pointer<Char> argc, int argl, Pointer<Pointer< ret) → intChar> > -
X509_LOOKUP_ctrl implements commands on
lookup.cmdspecifies the command. The other arguments specify the operation in a command-specific way. UseX509_LOOKUP_load_fileorX509_LOOKUP_add_dirinstead. -
X509_LOOKUP_file(
) → Pointer< X509_LOOKUP_METHOD> -
X509_LOOKUP_file creates
X509_LOOKUPs that may be used withX509_LOOKUP_load_file. -
X509_LOOKUP_free(
Pointer< X509_LOOKUP> ctx) → void -
X509_LOOKUP_free releases memory associated with
ctx. This function should never be used outside the library. No function in the public API hands ownership of anX509_LOOKUPto the caller. -
X509_LOOKUP_hash_dir(
) → Pointer< X509_LOOKUP_METHOD> -
X509_LOOKUP_hash_dir creates
X509_LOOKUPs that may be used withX509_LOOKUP_add_dir. -
X509_LOOKUP_load_file(
Pointer< X509_LOOKUP> lookup, Pointer<Char> file, int type) → int -
X509_LOOKUP_load_file calls
X509_load_cert_crl_file.lookupmust have been constructed withX509_LOOKUP_file. -
X509_NAME_add_entry(
Pointer< X509_NAME> name, Pointer<X509_NAME_ENTRY> entry, int loc, int set) → int -
X509_NAME_add_entry adds a copy of
entrytonameand returns one on success or zero on error. Iflocis -1, the entry is appended toname. Otherwise, it is inserted at indexloc. Ifsetis -1, the entry is added to the previous entry's RDN. If it is 0, the entry becomes a singleton RDN. If 1, it is added to next entry's RDN. -
X509_NAME_add_entry_by_NID(
Pointer< X509_NAME> name, int nid, int type, Pointer<Uint8> bytes, int len, int loc, int set) → int -
X509_NAME_add_entry_by_NID behaves like
X509_NAME_add_entry_by_OBJbut sets the entry's attribute type tonid, which should be one of theNID_*constants. -
X509_NAME_add_entry_by_OBJ(
Pointer< X509_NAME> name, Pointer<ASN1_OBJECT> obj, int type, Pointer<Uint8> bytes, int len, int loc, int set) → int -
X509_NAME_add_entry_by_OBJ adds a new entry to
nameand returns one on success or zero on error. The entry's attribute type isobj. The entry's attribute value is determined bytype,bytes, andlen, as inX509_NAME_ENTRY_set_data. The entry's position is determined bylocandsetas inX509_NAME_add_entry. -
X509_NAME_add_entry_by_txt(
Pointer< X509_NAME> name, Pointer<Char> field, int type, Pointer<Uint8> bytes, int len, int loc, int set) → int -
X509_NAME_add_entry_by_txt behaves like
X509_NAME_add_entry_by_OBJbut sets the entry's attribute type tofield, which is passed toOBJ_txt2obj. -
X509_NAME_cmp(
Pointer< X509_NAME> a, Pointer<X509_NAME> b) → int -
X509_NAME_cmp compares
aandb's canonicalized forms. It returns zero if they are equal, one ifasorts afterb, -1 ifbsorts aftera, and -2 on error. -
X509_NAME_delete_entry(
Pointer< X509_NAME> name, int loc) → Pointer<X509_NAME_ENTRY> -
X509_NAME_delete_entry removes and returns the attribute in
nameat indexloc, or NULL iflocis out of range.locis interpreted usingX509_NAME's flattened representation. If the attribute is found, the caller is responsible for releasing the result withX509_NAME_ENTRY_free. -
X509_NAME_digest(
Pointer< X509_NAME> name, Pointer<EVP_MD> md, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → int -
X509_NAME_digest hashes
name's DER encoding withmdand writes the result toout.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_lenis not NULL,*out_lenis set to the number of bytes written. This function returns one on success and zero on error. -
X509_NAME_dup(
Pointer< X509_NAME> name) → Pointer<X509_NAME> -
X509_NAME_dup returns a newly-allocated copy of
name, or NULL on error. -
X509_NAME_entry_count(
Pointer< X509_NAME> name) → int -
X509_NAME_entry_count returns the number of entries in
name. -
X509_NAME_ENTRY_create_by_NID(
Pointer< Pointer< out, int nid, int type, Pointer<X509_NAME_ENTRY> >Uint8> bytes, int len) → Pointer<X509_NAME_ENTRY> -
X509_NAME_ENTRY_create_by_NID behaves like
X509_NAME_ENTRY_create_by_OBJexcept the attribute type isnid, which should be one of theNID_*constants. -
X509_NAME_ENTRY_create_by_OBJ(
Pointer< Pointer< out, Pointer<X509_NAME_ENTRY> >ASN1_OBJECT> obj, int type, Pointer<Uint8> bytes, int len) → Pointer<X509_NAME_ENTRY> -
X509_NAME_ENTRY_create_by_OBJ creates a new
X509_NAME_ENTRYwith attribute typeobj. The attribute value is determined fromtype,bytes, andlenas inX509_NAME_ENTRY_set_data. It returns theX509_NAME_ENTRYon success and NULL on error. -
X509_NAME_ENTRY_create_by_txt(
Pointer< Pointer< out, Pointer<X509_NAME_ENTRY> >Char> field, int type, Pointer<Uint8> bytes, int len) → Pointer<X509_NAME_ENTRY> -
X509_NAME_ENTRY_create_by_txt behaves like
X509_NAME_ENTRY_create_by_OBJexcept the attribute type isfield, which is passed toOBJ_txt2obj. -
X509_NAME_ENTRY_dup(
Pointer< X509_NAME_ENTRY> entry) → Pointer<X509_NAME_ENTRY> -
X509_NAME_ENTRY_dup returns a newly-allocated copy of
entry, or NULL on error. -
X509_NAME_ENTRY_free(
Pointer< X509_NAME_ENTRY> entry) → void -
X509_NAME_ENTRY_free releases memory associated with
entry. -
X509_NAME_ENTRY_get_data(
Pointer< X509_NAME_ENTRY> entry) → Pointer<ASN1_OCTET_STRING> -
X509_NAME_ENTRY_get_data returns
entry's attribute value, represented as anASN1_STRING. This value may have any ASN.1 type, so callers must check the type before interpreting the contents. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. Doing so will break internal invariants in the library. -
X509_NAME_ENTRY_get_object(
Pointer< X509_NAME_ENTRY> entry) → Pointer<ASN1_OBJECT> -
X509_NAME_ENTRY_get_object returns
entry's attribute type. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. Doing so will break internal invariants in the library. -
X509_NAME_ENTRY_new(
) → Pointer< X509_NAME_ENTRY> -
X509_NAME_ENTRY_new returns a new, empty
X509_NAME_ENTRY, or NULL on error. -
X509_NAME_ENTRY_set(
Pointer< X509_NAME_ENTRY> entry) → int -
X509_NAME_ENTRY_set returns the zero-based index of the RDN which contains
entry. Consecutive entries with the same index are part of the same RDN. -
X509_NAME_ENTRY_set_data(
Pointer< X509_NAME_ENTRY> entry, int type, Pointer<Uint8> bytes, int len) → int -
X509_NAME_ENTRY_set_data sets
entry's value tolenbytes frombytes. It returns one on success and zero on error. Iflenis -1,bytesmust be a NUL-terminated C string and the length is determined bystrlen.bytesis converted to an ASN.1 type as follows: -
X509_NAME_ENTRY_set_object(
Pointer< X509_NAME_ENTRY> entry, Pointer<ASN1_OBJECT> obj) → int -
X509_NAME_ENTRY_set_object sets
entry's attribute type toobj. It returns one on success and zero on error. -
X509_NAME_free(
Pointer< X509_NAME> name) → void -
X509_NAME_free releases memory associated with
name. -
X509_NAME_get0_der(
Pointer< X509_NAME> name, Pointer<Pointer< out_der, Pointer<Uint8> >Size> out_der_len) → int -
X509_NAME_get0_der marshals
nameas a DER-encoded X.509 Name (RFC 5280). On success, it returns one and sets*out_derand*out_der_lento a buffer containing the result. Otherwise, it returns zero.*out_deris owned bynameand must not be freed by the caller. It is invalidated afternameis mutated or freed. -
X509_NAME_get_entry(
Pointer< X509_NAME> name, int loc) → Pointer<X509_NAME_ENTRY> -
X509_NAME_get_entry returns the attribute in
nameat indexloc, or NULL iflocis out of range.locis interpreted usingX509_NAME's flattened representation. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. Doing so will break internal invariants in the library. -
X509_NAME_get_index_by_NID(
Pointer< X509_NAME> name, int nid, int lastpos) → int -
X509_NAME_get_index_by_NID returns the zero-based index of the first
attribute in
namewith typenid, or -1 if there is none.nidshould be one of theNID_*constants. Iflastposis non-negative, it begins searching atlastpos+1. To search all attributes, pass in -1, not zero. -
X509_NAME_get_index_by_OBJ(
Pointer< X509_NAME> name, Pointer<ASN1_OBJECT> obj, int lastpos) → int -
X509_NAME_get_index_by_OBJ behaves like
X509_NAME_get_index_by_NIDbut looks for attributes with typeobj. -
X509_NAME_get_text_by_NID(
Pointer< X509_NAME> name, int nid, Pointer<Char> buf, int len) → int -
X509_NAME_get_text_by_NID behaves like
X509_NAME_get_text_by_OBJexcept it finds an attribute of typenid, which should be one of theNID_*constants. -
X509_NAME_get_text_by_OBJ(
Pointer< X509_NAME> name, Pointer<ASN1_OBJECT> obj, Pointer<Char> buf, int len) → int -
X509_NAME_get_text_by_OBJ finds the first attribute with type
objinname. If found, it writes the value's UTF-8 representation tobuf. followed by a NUL byte, and returns the number of bytes in the output, excluding the NUL byte. This is unlike OpenSSL which returns the raw ASN1_STRING data. The UTF-8 encoding of theASN1_STRINGmay not contain a 0 codepoint. -
X509_NAME_hash(
Pointer< X509_NAME> name) → int -
X509_NAME_hash returns a hash of
name, or zero on error. This is the new hash used byX509_LOOKUP_add_dir. -
X509_NAME_hash_old(
Pointer< X509_NAME> name) → int -
X509_NAME_hash_old returns a hash of
name, or zero on error. This is the legacy hash used byX509_LOOKUP_add_dir, which is still supported for compatibility. -
X509_NAME_new(
) → Pointer< X509_NAME> -
X509_NAME_new returns a new, empty
X509_NAME, or NULL on error. -
X509_NAME_oneline(
Pointer< X509_NAME> name, Pointer<Char> buf, int size) → Pointer<Char> -
X509_NAME_oneline writes a human-readable representation to
nameto a buffer as a NUL-terminated C string. -
X509_NAME_print(
Pointer< BIO> bp, Pointer<X509_NAME> name, int obase) → int -
X509_NAME_print prints a human-readable representation of
nametobp. It returns one on success and zero on error.obaseis ignored. -
X509_NAME_print_ex(
Pointer< BIO> out, Pointer<X509_NAME> nm, int indent, int flags) → int -
X509_NAME_print_ex writes a human-readable representation of
nmtoout. Each line of output is indented byindentspaces. It returns the number of bytes written on success, and -1 on error. Ifoutis NULL, it returns the number of bytes it would have written but does not write anything.flagsshould be some combination ofXN_FLAG_*andASN1_STRFLGS_*values and determines the output. If unsure, useXN_FLAG_RFC2253. -
X509_NAME_print_ex_fp(
Pointer< FILE> fp, Pointer<X509_NAME> nm, int indent, int flags) → int -
X509_NAME_print_ex_fp behaves like
X509_NAME_print_exbut writes tofp. -
X509_NAME_set(
Pointer< Pointer< xn, Pointer<X509_NAME> >X509_NAME> name) → int -
X509_NAME_set makes a copy of
name. On success, it frees*xn, sets*xnto the copy, and returns one. Otherwise, it returns zero. -
X509_new(
) → Pointer< X509> -
X509_new returns a newly-allocated, empty
X509object, or NULL on error. This produces an incomplete certificate which may be filled in to issue a new certificate. -
X509_OBJECT_free(
Pointer< X509_OBJECT> obj) → void -
X509_OBJECT_free releases memory associated with
obj. -
X509_OBJECT_free_contents(
Pointer< X509_OBJECT> obj) → void -
X509_OBJECT_free_contents sets
objto the empty object, freeing any values that were previously there. -
X509_OBJECT_get0_X509(
Pointer< X509_OBJECT> obj) → Pointer<X509> -
X509_OBJECT_get0_X509 returns
objas a certificate, or NULL ifobjis not a certificate. -
X509_OBJECT_get_type(
Pointer< X509_OBJECT> obj) → int -
X509_OBJECT_get_type returns the type of
obj, which will be one of theX509_LU_*constants. -
X509_OBJECT_new(
) → Pointer< X509_OBJECT> -
X509_OBJECT_new returns a newly-allocated, empty
X509_OBJECTor NULL on error. -
X509_parse_from_buffer(
Pointer< CRYPTO_BUFFER> buf) → Pointer<X509> -
X509_parse_from_buffer behaves like
X509_parse_with_algorithmsbut uses a default algorithm list. -
X509_parse_with_algorithms(
Pointer< CRYPTO_BUFFER> buf, Pointer<Pointer< algs, int num_algs) → Pointer<EVP_PKEY_ALG> >X509> -
X509_parse_with_algorithms parses an X.509 structure from
bufand returns a fresh X509 or NULL on error. There must not be any trailing data inbuf. The returned structure (if any) incrementsbuf's reference count and retains a reference to it. -
X509_print(
Pointer< BIO> bp, Pointer<X509> x) → int -
X509_print calls
X509_print_exwithXN_FLAG_COMPATandX509_FLAG_COMPATflags. -
X509_print_ex(
Pointer< BIO> bp, Pointer<X509> x, int nmflag, int cflag) → int -
X509_print_ex writes a human-readable representation of
xtobp. It returns one on success and zero on error.nmflagsis the flags parameter forX509_NAME_print_exwhen printing the subject and issuer.cflagshould be some combination of theX509_FLAG_*andX509V3_EXT_*constants. -
X509_print_ex_fp(
Pointer< FILE> fp, Pointer<X509> x, int nmflag, int cflag) → int -
X509_print_ex_fp behaves like
X509_print_exbut writes tofp. -
X509_print_fp(
Pointer< FILE> fp, Pointer<X509> x) → int -
X509_print_fp behaves like
X509_printbut writes tofp. -
X509_pubkey_digest(
Pointer< X509> x509, Pointer<EVP_MD> md, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → int -
X509_pubkey_digest hashes the contents of the BIT STRING in
x509's subjectPublicKeyInfo field withmdand writes the result toout.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_lenis not NULL,*out_lenis set to the number of bytes written. This function returns one on success and zero on error. -
X509_PUBKEY_free(
Pointer< X509_PUBKEY> key) → void -
X509_PUBKEY_free releases memory associated with
key. -
X509_PUBKEY_get(
Pointer< X509_PUBKEY> key) → Pointer<EVP_PKEY> -
X509_PUBKEY_get behaves like
X509_PUBKEY_get0but increments the reference count on theEVP_PKEY. The caller must release the result withEVP_PKEY_freewhen done. TheEVP_PKEYis cached inkey, so callers must not mutate the result. -
X509_PUBKEY_get0(
Pointer< X509_PUBKEY> key) → Pointer<EVP_PKEY> -
X509_PUBKEY_get0 returns
keyas anEVP_PKEY, or NULL ifkeyeither could not be parsed or is an unrecognized algorithm. TheEVP_PKEYis cached inkey, so callers must not mutate the result. -
X509_PUBKEY_get0_param(
Pointer< Pointer< out_obj, Pointer<ASN1_OBJECT> >Pointer< out_key, Pointer<Uint8> >Int> out_key_len, Pointer<Pointer< out_alg, Pointer<X509_ALGOR> >X509_PUBKEY> pub) → int -
X509_PUBKEY_get0_param outputs fields of
puband returns one. Ifout_objis not NULL, it sets*out_objto AlgorithmIdentifier's OID. Ifout_keyis not NULL, it sets*out_keyand*out_key_lento the encoded public key. Ifout_algis not NULL, it sets*out_algto the AlgorithmIdentifier. -
X509_PUBKEY_get0_public_key(
Pointer< X509_PUBKEY> pub) → Pointer<ASN1_OCTET_STRING> -
X509_PUBKEY_get0_public_key returns
pub's encoded public key. -
X509_PUBKEY_new(
) → Pointer< X509_PUBKEY> -
X509_PUBKEY_new returns a newly-allocated, empty
X509_PUBKEYobject, or NULL on error. -
X509_PUBKEY_set(
Pointer< Pointer< x, Pointer<X509_PUBKEY> >EVP_PKEY> pkey) → int -
X509_PUBKEY_set serializes
pkeyinto a newly-allocatedX509_PUBKEYstructure. On success, it frees*xif non-NULL, then sets*xto the new object, and returns one. Otherwise, it returns zero. -
X509_PUBKEY_set0_param(
Pointer< X509_PUBKEY> pub, Pointer<ASN1_OBJECT> obj, int param_type, Pointer<Void> param_value, Pointer<Uint8> key, int key_len) → int -
X509_PUBKEY_set0_param sets
pubto a key with AlgorithmIdentifier determined byobj,param_type, andparam_value, and an encoded public key ofkey. On success, it givespubownership of all the other parameters and returns one. Otherwise, it returns zero.keymust have been allocated byOPENSSL_malloc.objand, if applicable,param_valuemust not be freed after a successful call, and must have been allocated in a manner compatible withASN1_OBJECT_freeorASN1_STRING_free. -
X509_PURPOSE_get0(
int id) → Pointer< X509_PURPOSE> -
X509_PURPOSE_get0 returns the
X509_PURPOSEobject corresponding toid, which should be one of theX509_PURPOSE_*constants, or NULL if none exists. -
X509_PURPOSE_get_by_sname(
Pointer< Char> sname) → int -
X509_PURPOSE_get_by_sname returns the
X509_PURPOSE_*constant corresponding a short namesname, or -1 ifsnamewas not recognized. -
X509_PURPOSE_get_id(
Pointer< X509_PURPOSE> purpose) → int -
X509_PURPOSE_get_id returns
purpose's ID. This will be one of theX509_PURPOSE_*constants. -
X509_reject_clear(
Pointer< X509> x509) → void -
X509_reject_clear clears the list of OIDs for which
x509is distrusted. See alsoX509_add1_reject_object. -
X509_REQ_add1_attr(
Pointer< X509_REQ> req, Pointer<X509_ATTRIBUTE> attr) → int -
X509_REQ_add1_attr appends a copy of
attrtoreq's list of attributes. It returns one on success and zero on error. -
X509_REQ_add1_attr_by_NID(
Pointer< X509_REQ> req, int nid, int attrtype, Pointer<UnsignedChar> data, int len) → int -
X509_REQ_add1_attr_by_NID behaves like
X509_REQ_add1_attr_by_OBJexcept the attribute type is determined bynid. -
X509_REQ_add1_attr_by_OBJ(
Pointer< X509_REQ> req, Pointer<ASN1_OBJECT> obj, int attrtype, Pointer<UnsignedChar> data, int len) → int -
X509_REQ_add1_attr_by_OBJ appends a new attribute to
reqwith typeobj. It returns one on success and zero on error. The value is determined byX509_ATTRIBUTE_set1_data. -
X509_REQ_add1_attr_by_txt(
Pointer< X509_REQ> req, Pointer<Char> attrname, int attrtype, Pointer<UnsignedChar> data, int len) → int -
X509_REQ_add1_attr_by_txt behaves like
X509_REQ_add1_attr_by_OBJexcept the attribute type is determined by callingOBJ_txt2objwithattrname. -
X509_REQ_add_extensions(
Pointer< X509_REQ> req, Pointer<X509_EXTENSIONS> exts) → int -
X509_REQ_add_extensions behaves like
X509_REQ_add_extensions_nid, using the standardNID_ext_reqfor the attribute type. -
X509_REQ_add_extensions_nid(
Pointer< X509_REQ> req, Pointer<X509_EXTENSIONS> exts, int nid) → int -
X509_REQ_add_extensions_nid adds an attribute to
reqof typenid, to request the certificate extensions inexts. It returns one on success and zero on error.nidshould beNID_ext_reqorNID_ms_ext_req. -
X509_REQ_check_private_key(
Pointer< X509_REQ> req, Pointer<EVP_PKEY> pkey) → int -
X509_REQ_check_private_key returns one if
req's public key matchespkeyand zero otherwise. -
X509_REQ_delete_attr(
Pointer< X509_REQ> req, int loc) → Pointer<X509_ATTRIBUTE> -
X509_REQ_delete_attr removes the attribute at index
locinreq. It returns the removed attribute to the caller, or NULL iflocwas out of bounds. If non-NULL, the caller must release the result withX509_ATTRIBUTE_freewhen done. It is also safe, but not necessary, to callX509_ATTRIBUTE_freeif the result is NULL. -
X509_REQ_digest(
Pointer< X509_REQ> req, Pointer<EVP_MD> md, Pointer<Uint8> out, Pointer<UnsignedInt> out_len) → int -
X509_REQ_digest hashes
req's DER encoding withmdand writes the result toout.EVP_MD_CTX_sizebytes are written, which is at mostEVP_MAX_MD_SIZE. Ifout_lenis not NULL,*out_lenis set to the number of bytes written. This function returns one on success and zero on error. Note this digest covers the entire certificate request, not just the signed portion. -
X509_REQ_dup(
Pointer< X509_REQ> req) → Pointer<X509_REQ> -
X509_REQ_dup returns a newly-allocated copy of
req, or NULL on error. This function works by serializing the structure, so ifreqis incomplete, it may fail. -
X509_REQ_extension_nid(
int nid) → int -
X509_REQ_extension_nid returns one if
nidis a supported CSR attribute type for carrying extensions and zero otherwise. The supported types areNID_ext_req(pkcs-9-at-extensionRequest from RFC 2985) andNID_ms_ext_req(a Microsoft szOID_CERT_EXTENSIONS variant). -
X509_REQ_free(
Pointer< X509_REQ> req) → void -
X509_REQ_free releases memory associated with
req. -
X509_REQ_get0_pubkey(
Pointer< X509_REQ> req) → Pointer<EVP_PKEY> -
X509_REQ_get0_pubkey returns
req's public key as anEVP_PKEY, or NULL if the public key was unsupported or could not be decoded. TheEVP_PKEYis cached inreq, so callers must not mutate the result. -
X509_REQ_get0_signature(
Pointer< X509_REQ> req, Pointer<Pointer< out_sig, Pointer<ASN1_OCTET_STRING> >Pointer< out_alg) → voidX509_ALGOR> > -
X509_REQ_get0_signature sets
*out_sigand*out_algto the signature and signature algorithm ofreq, respectively. Either output pointer may be NULL to ignore the value. -
X509_REQ_get1_email(
Pointer< X509_REQ> req) → Pointer<stack_st_OPENSSL_STRING> -
X509_REQ_get1_email returns a newly-allocated list of NUL-terminated strings
containing all email addresses in
req's subject and all rfc822name names inreq's subject alternative names. The subject alternative names extension is extracted from the result ofX509_REQ_get_extensions. Email addresses which contain embedded NUL bytes are skipped. The results are returned in an arbitrary order. -
X509_REQ_get_attr(
Pointer< X509_REQ> req, int loc) → Pointer<X509_ATTRIBUTE> -
X509_REQ_get_attr returns the attribute at index
locinreq, or NULL if out of bounds. -
X509_REQ_get_attr_by_NID(
Pointer< X509_REQ> req, int nid, int lastpos) → int -
X509_REQ_get_attr_by_NID returns the index of the attribute in
reqof typenid, or a negative number if not found. If found, callers can useX509_REQ_get_attrto look up the attribute by index. -
X509_REQ_get_attr_by_OBJ(
Pointer< X509_REQ> req, Pointer<ASN1_OBJECT> obj, int lastpos) → int -
X509_REQ_get_attr_by_OBJ behaves like
X509_REQ_get_attr_by_NIDbut looks for attributes of typeobj. -
X509_REQ_get_attr_count(
Pointer< X509_REQ> req) → int -
X509_REQ_get_attr_count returns the number of attributes in
req. -
X509_REQ_get_extensions(
Pointer< X509_REQ> req) → Pointer<X509_EXTENSIONS> -
X509_REQ_get_extensions decodes the most preferred list of requested
extensions in
reqand returns a newly-allocatedSTACK_OF(X509_EXTENSION)containing the result. It returns NULL on error, or ifreqdid not request extensions. -
X509_REQ_get_pubkey(
Pointer< X509_REQ> req) → Pointer<EVP_PKEY> -
X509_REQ_get_pubkey behaves like
X509_REQ_get0_pubkeybut increments the reference count on theEVP_PKEY. The caller must release the result withEVP_PKEY_freewhen done. TheEVP_PKEYis cached inreq, so callers must not mutate the result. -
X509_REQ_get_signature_nid(
Pointer< X509_REQ> req) → int -
X509_REQ_get_signature_nid returns the NID corresponding to
req's signature algorithm, orNID_undefif the signature algorithm does not correspond to a known NID. -
X509_REQ_get_subject_name(
Pointer< X509_REQ> req) → Pointer<X509_NAME> -
X509_REQ_get_subject_name returns
req's subject name. Note this function is not const-correct for legacy reasons. -
X509_REQ_get_version(
Pointer< X509_REQ> req) → int -
X509_REQ_get_version returns the numerical value of
req's version. This will always beX509_REQ_VERSION_1for valid CSRs. For compatibility,d2i_X509_REQalso accepts some invalid version numbers, in which case this function may return other values. -
X509_REQ_new(
) → Pointer< X509_REQ> -
X509_REQ_new returns a newly-allocated, empty
X509_REQobject, or NULL on error. This object may be filled in and then signed to construct a CSR. -
X509_REQ_print(
Pointer< BIO> bp, Pointer<X509_REQ> req) → int -
X509_REQ_print calls
X509_REQ_print_exwithXN_FLAG_COMPATandX509_FLAG_COMPATflags. -
X509_REQ_print_ex(
Pointer< BIO> bp, Pointer<X509_REQ> x, int nmflag, int cflag) → int -
X509_REQ_print_ex writes a human-readable representation of
xtobp. It returns one on success and zero on error.nmflagsis the flags parameter forX509_NAME_print_ex, when printing the subject.cflagshould be some combination of theX509_FLAG_*andX509V3_EXT_*constants. -
X509_REQ_print_fp(
Pointer< FILE> fp, Pointer<X509_REQ> req) → int -
X509_REQ_print_fp behaves like
X509_REQ_printbut writes tofp. -
X509_REQ_set1_signature_algo(
Pointer< X509_REQ> req, Pointer<X509_ALGOR> algo) → int -
X509_REQ_set1_signature_algo sets
req's signature algorithm toalgoand returns one on success or zero on error. -
X509_REQ_set1_signature_value(
Pointer< X509_REQ> req, Pointer<Uint8> sig, int sig_len) → int -
X509_REQ_set1_signature_value sets
req's signature to a copy of thesig_lenbytes pointed bysig. It returns one on success and zero on error. -
X509_REQ_set_pubkey(
Pointer< X509_REQ> req, Pointer<EVP_PKEY> pkey) → int -
X509_REQ_set_pubkey sets
req's public key topkey. It returns one on success and zero on error. -
X509_REQ_set_subject_name(
Pointer< X509_REQ> req, Pointer<X509_NAME> name) → int -
X509_REQ_set_subject_name sets
req's subject to a copy ofname. It returns one on success and zero on error. -
X509_REQ_set_version(
Pointer< X509_REQ> req, int version) → int -
X509_REQ_set_version sets
req's version toversion, which should beX509_REQ_VERSION_1. It returns one on success and zero on error. -
X509_REQ_sign(
Pointer< X509_REQ> req, Pointer<EVP_PKEY> pkey, Pointer<EVP_MD> md) → int -
X509_REQ_sign signs
reqwithpkeyand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. This function uses digest algorithmmd, orpkey's default if NULL. Other signing parameters usepkey's defaults. To customize them, useX509_REQ_sign_ctx. -
X509_REQ_sign_ctx(
Pointer< X509_REQ> req, Pointer<EVP_MD_CTX> ctx) → int -
X509_REQ_sign_ctx signs
reqwithctxand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. The signature algorithm and parameters come fromctx, which must have been initialized withEVP_DigestSignInit. The caller should configure the correspondingEVP_PKEY_CTXbefore calling this function. -
X509_REQ_verify(
Pointer< X509_REQ> req, Pointer<EVP_PKEY> pkey) → int -
X509_REQ_verify checks that
reqhas a valid signature bypkey. It returns one if the signature is valid and zero otherwise. -
X509_REVOKED_add1_ext_i2d(
Pointer< X509_REVOKED> x, int nid, Pointer<Void> value, int crit, int flags) → int -
X509_REVOKED_add1_ext_i2d behaves like
X509V3_add1_i2dbut adds the extension tox's extension list. -
X509_REVOKED_add_ext(
Pointer< X509_REVOKED> x, Pointer<X509_EXTENSION> ex, int loc) → int -
X509_REVOKED_add_ext adds a copy of
extox. It returns one on success and zero on failure. The caller retains ownership ofexand can release it independently ofx. -
X509_REVOKED_delete_ext(
Pointer< X509_REVOKED> x, int loc) → Pointer<X509_EXTENSION> -
X509_REVOKED_delete_ext removes the extension in
xat indexlocand returns the removed extension, or NULL iflocwas out of bounds. If non-NULL, the caller must release the result withX509_EXTENSION_free. -
X509_REVOKED_dup(
Pointer< X509_REVOKED> rev) → Pointer<X509_REVOKED> -
X509_REVOKED_dup returns a newly-allocated copy of
rev, or NULL on error. This function works by serializing the structure, so ifrevis incomplete, it may fail. -
X509_REVOKED_free(
Pointer< X509_REVOKED> rev) → void -
X509_REVOKED_free releases memory associated with
rev. -
X509_REVOKED_get0_extensions(
Pointer< X509_REVOKED> r) → Pointer<X509_EXTENSIONS> -
X509_REVOKED_get0_extensions returns
r's extensions list, or NULL ifromits it. A CRL can have extensions on individual entries, which is this function, or on the overall CRL, which isX509_CRL_get0_extensions. -
X509_REVOKED_get0_revocationDate(
Pointer< X509_REVOKED> revoked) → Pointer<ASN1_OCTET_STRING> -
X509_REVOKED_get0_revocationDate returns the revocation time of the
certificate revoked by
revoked. -
X509_REVOKED_get0_serialNumber(
Pointer< X509_REVOKED> revoked) → Pointer<ASN1_OCTET_STRING> -
X509_REVOKED_get0_serialNumber returns the serial number of the certificate
revoked by
revoked. -
X509_REVOKED_get_ext(
Pointer< X509_REVOKED> x, int loc) → Pointer<X509_EXTENSION> -
X509_REVOKED_get_ext returns the extension in
xat indexloc, or NULL iflocis out of bounds. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. -
X509_REVOKED_get_ext_by_critical(
Pointer< X509_REVOKED> x, int crit, int lastpos) → int -
X509_REVOKED_get_ext_by_critical behaves like
X509v3_get_ext_by_criticalbut searches for extensions inx. -
X509_REVOKED_get_ext_by_NID(
Pointer< X509_REVOKED> x, int nid, int lastpos) → int -
X509_REVOKED_get_ext_by_NID behaves like
X509v3_get_ext_by_NIDbut searches for extensions inx. -
X509_REVOKED_get_ext_by_OBJ(
Pointer< X509_REVOKED> x, Pointer<ASN1_OBJECT> obj, int lastpos) → int -
X509_REVOKED_get_ext_by_OBJ behaves like
X509v3_get_ext_by_OBJbut searches for extensions inx. -
X509_REVOKED_get_ext_count(
Pointer< X509_REVOKED> x) → int -
X509_REVOKED_get_ext_count returns the number of extensions in
x. -
X509_REVOKED_get_ext_d2i(
Pointer< X509_REVOKED> revoked, int nid, Pointer<Int> out_critical, Pointer<Int> out_idx) → Pointer<Void> -
X509_REVOKED_get_ext_d2i behaves like
X509V3_get_d2ibut looks for the extension inrevoked's extension list. -
X509_REVOKED_new(
) → Pointer< X509_REVOKED> -
X509_REVOKED_new returns a newly-allocated, empty
X509_REVOKEDobject, or NULL on allocation error. -
X509_REVOKED_set_revocationDate(
Pointer< X509_REVOKED> revoked, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_REVOKED_set_revocationDate sets
revoked's revocation time totm. It returns one on success or zero on error. -
X509_REVOKED_set_serialNumber(
Pointer< X509_REVOKED> revoked, Pointer<ASN1_OCTET_STRING> serial) → int -
X509_REVOKED_set_serialNumber sets
revoked's serial number toserial. It returns one on success or zero on error. -
X509_set1_notAfter(
Pointer< X509> x509, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_set1_notAfter sets
x509's notAfter time totm. it returns one on success and zero on error. -
X509_set1_notBefore(
Pointer< X509> x509, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_set1_notBefore sets
x509's notBefore time totm. It returns one on success and zero on error. -
X509_set1_signature_algo(
Pointer< X509> x509, Pointer<X509_ALGOR> algo) → int -
X509_set1_signature_algo sets
x509's signature algorithm toalgoand returns one on success or zero on error. It updates both the signature field of the TBSCertificate structure, and the signatureAlgorithm field of the Certificate. -
X509_set1_signature_value(
Pointer< X509> x509, Pointer<Uint8> sig, int sig_len) → int -
X509_set1_signature_value sets
x509's signature to a copy of thesig_lenbytes pointed bysig. It returns one on success and zero on error. -
X509_set_ex_data(
Pointer< X509> r, int idx, Pointer<Void> arg) → int -
X509_set_issuer_name(
Pointer< X509> x509, Pointer<X509_NAME> name) → int -
X509_set_issuer_name sets
x509's issuer to a copy ofname. It returns one on success and zero on error. -
X509_set_notAfter(
Pointer< X509> x509, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_set_notAfter calls
X509_set1_notAfter. UseX509_set1_notAfterinstead. -
X509_set_notBefore(
Pointer< X509> x509, Pointer<ASN1_OCTET_STRING> tm$1) → int -
X509_set_notBefore calls
X509_set1_notBefore. UseX509_set1_notBeforeinstead. -
X509_set_pubkey(
Pointer< X509> x509, Pointer<EVP_PKEY> pkey) → int -
X509_set_pubkey sets
x509's public key topkey. It returns one on success and zero on error. -
X509_set_serialNumber(
Pointer< X509> x509, Pointer<ASN1_OCTET_STRING> serial) → int -
X509_set_serialNumber sets
x509's serial number toserial. It returns one on success and zero on error. -
X509_set_subject_name(
Pointer< X509> x509, Pointer<X509_NAME> name) → int -
X509_set_subject_name sets
x509's subject to a copy ofname. It returns one on success and zero on error. -
X509_set_version(
Pointer< X509> x509, int version) → int -
X509_set_version sets
x509's version toversion, which should be one of theX509V_VERSION_*constants. It returns one on success and zero on error. -
X509_SIG_free(
Pointer< X509_SIG> key) → void -
X509_SIG_free releases memory associated with
key. -
X509_SIG_get0(
Pointer< X509_SIG> sig, Pointer<Pointer< out_alg, Pointer<X509_ALGOR> >Pointer< out_digest) → voidASN1_OCTET_STRING> > -
X509_SIG_get0 sets
*out_algand*out_digestto non-owning pointers tosig's algorithm and digest fields, respectively. Eitherout_algandout_digestmay be NULL to skip those fields. -
X509_SIG_getm(
Pointer< X509_SIG> sig, Pointer<Pointer< out_alg, Pointer<X509_ALGOR> >Pointer< out_digest) → voidASN1_OCTET_STRING> > -
X509_SIG_getm behaves like
X509_SIG_get0but returns mutable pointers. -
X509_SIG_new(
) → Pointer< X509_SIG> -
X509_SIG_new returns a newly-allocated, empty
X509_SIGobject, or NULL on error. -
X509_sign(
Pointer< X509> x509, Pointer<EVP_PKEY> pkey, Pointer<EVP_MD> md) → int -
X509_sign signs
x509withpkeyand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. This function uses digest algorithmmd, orpkey's default if NULL. Other signing parameters usepkey's defaults. To customize them, useX509_sign_ctx. -
X509_sign_ctx(
Pointer< X509> x509, Pointer<EVP_MD_CTX> ctx) → int -
X509_sign_ctx signs
x509withctxand replaces the signature algorithm and signature fields. It returns the length of the signature on success and zero on error. The signature algorithm and parameters come fromctx, which must have been initialized withEVP_DigestSignInit. The caller should configure the correspondingEVP_PKEY_CTXbefore calling this function. -
X509_signature_dump(
Pointer< BIO> bio, Pointer<ASN1_OCTET_STRING> sig, int indent) → int -
X509_signature_dump writes a human-readable representation of
sigtobio, indented withindentspaces. It returns one on success and zero on error. -
X509_signature_print(
Pointer< BIO> bio, Pointer<X509_ALGOR> alg, Pointer<ASN1_OCTET_STRING> sig) → int -
X509_signature_print writes a human-readable representation of
algandsigtobio. It returns one on success and zero on error. -
X509_STORE_add_cert(
Pointer< X509_STORE> store, Pointer<X509> x509) → int -
X509_STORE_add_cert adds
x509tostoreas a trusted certificate. It returns one on success and zero on error. This function internally incrementsx509's reference count, so the caller retains ownership ofx509. -
X509_STORE_add_crl(
Pointer< X509_STORE> store, Pointer<X509_CRL> crl) → int -
X509_STORE_add_crl adds
crltostore. It returns one on success and zero on error. This function internally incrementscrl's reference count, so the caller retains ownership ofcrl. CRLs added in this way are candidates for CRL lookup whenX509_V_FLAG_CRL_CHECKis set. -
X509_STORE_add_lookup(
Pointer< X509_STORE> store, Pointer<X509_LOOKUP_METHOD> method) → Pointer<X509_LOOKUP> -
X509_STORE_add_lookup returns an
X509_LOOKUPassociated withstorewith typemethod, or NULL on error. The result is owned bystore, so callers are not expected to free it. This may be used withX509_LOOKUP_add_dirorX509_LOOKUP_load_file, depending onmethod, to configurestore. -
X509_STORE_CTX_cleanup(
Pointer< X509_STORE_CTX> ctx) → void -
X509_STORE_CTX_cleanup resets
ctxto the empty state. -
X509_STORE_CTX_free(
Pointer< X509_STORE_CTX> ctx) → void -
X509_STORE_CTX_free releases memory associated with
ctx. -
X509_STORE_CTX_get0_cert(
Pointer< X509_STORE_CTX> ctx) → Pointer<X509> -
X509_STORE_CTX_get0_cert returns the leaf certificate that
ctxis verifying. -
X509_STORE_CTX_get0_chain(
Pointer< X509_STORE_CTX> ctx) → Pointer<stack_st_X509> -
X509_STORE_CTX_get0_chain, after a successful
X509_verify_certcall, returns the verified certificate chain. The chain begins with the leaf and ends with trust anchor. -
X509_STORE_CTX_get0_param(
Pointer< X509_STORE_CTX> ctx) → Pointer<X509_VERIFY_PARAM> -
X509_STORE_CTX_get0_param returns
ctx's verification parameters. This object is mutable and may be modified by the caller. -
X509_STORE_CTX_get0_parent_ctx(
Pointer< X509_STORE_CTX> ctx) → Pointer<X509_STORE_CTX> - X509_STORE_CTX_get0_parent_ctx returns NULL.
-
X509_STORE_CTX_get0_store(
Pointer< X509_STORE_CTX> ctx) → Pointer<X509_STORE> -
X509_STORE_CTX_get0_store returns the
X509_STOREthatctxuses. -
X509_STORE_CTX_get0_untrusted(
Pointer< X509_STORE_CTX> ctx) → Pointer<stack_st_X509> -
X509_STORE_CTX_get0_untrusted returns the stack of untrusted intermediates
used by
ctxfor certificate verification. -
X509_STORE_CTX_get1_certs(
Pointer< X509_STORE_CTX> ctx, Pointer<X509_NAME> name) → Pointer<stack_st_X509> -
X509_STORE_CTX_get1_certs returns a newly-allocated stack containing all
trusted certificates in
ctx'sX509_STOREwhose subject matchesname, or NULL on error. The caller must release the result withsk_X509_pop_freeandX509_freewhen done. -
X509_STORE_CTX_get1_chain(
Pointer< X509_STORE_CTX> ctx) → Pointer<stack_st_X509> -
X509_STORE_CTX_get1_chain behaves like
X509_STORE_CTX_get0_chainbut returns a newly-allocatedSTACK_OF(X509)containing the completed chain, with each certificate's reference count incremented. Callers must free the result withsk_X509_pop_freeandX509_freewhen done. -
X509_STORE_CTX_get1_crls(
Pointer< X509_STORE_CTX> ctx, Pointer<X509_NAME> name) → Pointer<stack_st_X509_CRL> -
X509_STORE_CTX_get1_crls returns a newly-allocated stack containing all
CRLs in
ctx'sX509_STOREwhose subject matchesname, or NULL on error. The caller must release the result withsk_X509_CRL_pop_freeandX509_CRL_freewhen done. -
X509_STORE_CTX_get1_issuer(
Pointer< Pointer< out_issuer, Pointer<X509> >X509_STORE_CTX> ctx, Pointer<X509> x509) → int -
X509_STORE_CTX_get1_issuer looks up a candidate trusted issuer for
x509out ofctx'sX509_STORE, based on the criteria inX509_check_issued. If one was found, it returns one and sets*out_issuerto the issuer. The caller must release*out_issuerwithX509_freewhen done. If none was found, it returns zero and leaves*out_issuerunchanged. -
X509_STORE_CTX_get_by_subject(
Pointer< X509_STORE_CTX> ctx, int type, Pointer<X509_NAME> name, Pointer<X509_OBJECT> ret) → int -
X509_STORE_CTX_get_by_subject looks up an object of type
typeinctx'sX509_STOREthat matchesname.typeshould be one of theX509_LU_*constants to indicate the type of object. If a match was found, it stores the result inretand returns one. Otherwise, it returns zero. If multiple objects match, this function outputs an arbitrary one. -
X509_STORE_CTX_get_chain(
Pointer< X509_STORE_CTX> ctx) → Pointer<stack_st_X509> -
X509_STORE_CTX_get_chain is a legacy alias for
X509_STORE_CTX_get0_chain. -
X509_STORE_CTX_get_current_cert(
Pointer< X509_STORE_CTX> ctx) → Pointer<X509> -
X509_STORE_CTX_get_current_cert returns the certificate which caused the
error returned by
X509_STORE_CTX_get_error. -
X509_STORE_CTX_get_error(
Pointer< X509_STORE_CTX> ctx) → int -
X509_STORE_CTX_get_error, after
X509_verify_certreturns, returnsX509_V_OKif verification succeeded or anX509_V_ERR_*describing why verification failed. This will be consistent withX509_verify_cert's return value, unless the caller used the deprecated verification callback (seeX509_STORE_CTX_set_verify_cb) in a way that breaksctx's invariants. -
X509_STORE_CTX_get_error_depth(
Pointer< X509_STORE_CTX> ctx) → int -
X509_STORE_CTX_get_error_depth returns the depth at which the error returned
by
X509_STORE_CTX_get_erroroccurred. This is zero-indexed integer into the certificate chain. Zero indicates the target certificate, one its issuer, and so on. -
X509_STORE_CTX_get_ex_data(
Pointer< X509_STORE_CTX> ctx, int idx) → Pointer<Void> -
X509_STORE_CTX_get_ex_new_index(
int argl, Pointer< Void> argp, Pointer<Int> unused, Pointer<CRYPTO_EX_dup> dup_unused, Pointer<CRYPTO_EX_free> free_func) → int -
X509_STORE_CTX_init(
Pointer< X509_STORE_CTX> ctx, Pointer<X509_STORE> store, Pointer<X509> x509, Pointer<stack_st_X509> chain) → int -
X509_STORE_CTX_init initializes
ctxto verifyx509, using trusted certificates and parameters instore. It returns one on success and zero on error.chainis a list of untrusted intermediate certificates to use in verification. -
X509_STORE_CTX_new(
) → Pointer< X509_STORE_CTX> -
X509_STORE_CTX_new returns a newly-allocated, empty
X509_STORE_CTX, or NULL on error. -
X509_STORE_CTX_set0_crls(
Pointer< X509_STORE_CTX> ctx, Pointer<stack_st_X509_CRL> sk) → void -
X509_STORE_CTX_set0_crls configures
ctxto consider the CRLs inskas candidates for CRL lookup.skmust remain valid for the duration ofctx. These CRLs are considered in addition to CRLs found inX509_STORE. -
X509_STORE_CTX_set0_param(
Pointer< X509_STORE_CTX> ctx, Pointer<X509_VERIFY_PARAM> param) → void -
X509_STORE_CTX_set0_param returns
ctx's verification parameters toparamand takes ownership ofparam. After this function returns, the caller should not freeparam. -
X509_STORE_CTX_set0_trusted_stack(
Pointer< X509_STORE_CTX> ctx, Pointer<stack_st_X509> sk) → void -
X509_STORE_CTX_set0_trusted_stack configures
ctxto trust the certificates insk.skmust remain valid for the duration ofctx. Calling this function causesctxto ignore any certificates configured in theX509_STORE. Certificates inskare still subject to the check described inX509_VERIFY_PARAM_set_trust. -
X509_STORE_CTX_set_chain(
Pointer< X509_STORE_CTX> ctx, Pointer<stack_st_X509> sk) → void -
X509_STORE_CTX_set_chain configures
ctxto useskfor untrusted intermediate certificates to use in verification. This function is redundant with thechainparameter ofX509_STORE_CTX_init. Use the parameter instead. -
X509_STORE_CTX_set_default(
Pointer< X509_STORE_CTX> ctx, Pointer<Char> name) → int -
X509_STORE_CTX_set_default looks up the set of parameters named
nameand applies those default verification parameters forctx. As inX509_VERIFY_PARAM_inherit, only unset parameters are changed. This function returns one on success and zero on error. -
X509_STORE_CTX_set_depth(
Pointer< X509_STORE_CTX> ctx, int depth) → void -
X509_STORE_CTX_set_depth configures
ctxto, by default, limit certificate chains todepthintermediate certificates. This count excludes both the target certificate and the trust anchor (root certificate). -
X509_STORE_CTX_set_error(
Pointer< X509_STORE_CTX> ctx, int err) → void -
X509_STORE_CTX_set_error sets
ctx's error toerr, which should beX509_V_OKor anX509_V_ERR_*constant. It is not expected to be called in typicalX509_STORE_CTXusage, but may be used in callback APIs where applications synthesizeX509_STORE_CTXerror conditions. See alsoX509_STORE_CTX_set_verify_cbandSSL_CTX_set_cert_verify_callback. -
X509_STORE_CTX_set_ex_data(
Pointer< X509_STORE_CTX> ctx, int idx, Pointer<Void> data) → int -
X509_STORE_CTX_set_flags(
Pointer< X509_STORE_CTX> ctx, int flags) → void -
X509_STORE_CTX_set_flags enables all values in
flagsinctx's verification flags.flagsshould be a combination ofX509_V_FLAG_*constants. -
X509_STORE_CTX_set_purpose(
Pointer< X509_STORE_CTX> ctx, int purpose) → int -
X509_STORE_CTX_set_purpose simultaneously configures
ctx's purpose and trust checks, if unset. It returns one on success and zero ifpurposeis not a valid purpose value.purposeshould be anX509_PURPOSE_*constant. If so, it configuresctxwith a purpose check ofpurposeand a trust check ofpurpose's corresponding trust value. If either the purpose or trust check had already been specified forctx, that corresponding modification is silently dropped. -
X509_STORE_CTX_set_time(
Pointer< X509_STORE_CTX> ctx, int flags, int t) → void -
X509_STORE_CTX_set_time configures certificate verification to use
tinstead of the current time.flagsis ignored and should be zero. -
X509_STORE_CTX_set_time_posix(
Pointer< X509_STORE_CTX> ctx, int flags, int t) → void -
X509_STORE_CTX_set_time_posix configures certificate verification to use
tinstead of the current time.tis interpreted as a POSIX timestamp in seconds.flagsis ignored and should be zero. -
X509_STORE_CTX_set_trust(
Pointer< X509_STORE_CTX> ctx, int trust) → int -
X509_STORE_CTX_set_trust configures
ctx's trust check, if unset. It returns one on success and zero iftrustis not a valid trust value.trustshould be anX509_TRUST_*constant. If so, it configuresctxwith a trust check oftrust. If the trust check had already been specified forctx, it silently does nothing. -
X509_STORE_CTX_set_verify_cb(
Pointer< X509_STORE_CTX> ctx, Pointer<NativeFunction< verify_cb) → voidInt Function(Int ok, Pointer< >X509_STORE_CTX> ctx)> -
X509_STORE_CTX_set_verify_cb configures a callback function for
ctxthat is called multiple times duringX509_verify_cert. The callback returns zero to fail verification and one to proceed. Typically, it will returnok, which preserves the default behavior. Returning one whenokis zero will proceed past some error. The callback may inspectctxand the error queue to attempt to determine the current stage of certificate verification, but this is often unreliable. When synthesizing an error, callbacks should useX509_STORE_CTX_set_errorto set a corresponding error. -
X509_STORE_CTX_trusted_stack(
Pointer< X509_STORE_CTX> ctx, Pointer<stack_st_X509> sk) → void -
X509_STORE_CTX_trusted_stack is a deprecated alias for
X509_STORE_CTX_set0_trusted_stack. -
X509_STORE_dup_ref(
Pointer< X509_STORE> store) → Pointer<X509_STORE> -
X509_STORE_dup_ref adds one to the reference count of
storeand returns the same handle. -
X509_STORE_free(
Pointer< X509_STORE> store) → void -
X509_STORE_free releases memory associated with
store. -
X509_STORE_get0_objects(
Pointer< X509_STORE> store) → Pointer<stack_st_X509_OBJECT> -
X509_STORE_get0_objects returns a non-owning pointer of
store's internal object list. Although this function is not const, callers must not modify the result of this function. -
X509_STORE_get0_param(
Pointer< X509_STORE> store) → Pointer<X509_VERIFY_PARAM> -
X509_STORE_get0_param returns
store's verification parameters. This object is mutable and may be modified by the caller. For an individual certificate verification operation,X509_STORE_CTX_initinitializes theX509_STORE_CTX's parameters with these parameters. -
X509_STORE_get1_objects(
Pointer< X509_STORE> store) → Pointer<stack_st_X509_OBJECT> -
X509_STORE_get1_objects returns a newly-allocated stack containing the
contents of
store, or NULL on error. The caller must release the result withsk_X509_OBJECT_pop_freeandX509_OBJECT_freewhen done. -
X509_STORE_load_locations(
Pointer< X509_STORE> store, Pointer<Char> file, Pointer<Char> dir) → int -
X509_STORE_load_locations configures
storeto load data from filepathsfileanddir. It returns one on success and zero on error. Either offileordirmay be NULL, but at least one must be non-NULL. -
X509_STORE_new(
) → Pointer< X509_STORE> -
X509_STORE_new returns a newly-allocated
X509_STORE, or NULL on error. -
X509_STORE_set1_param(
Pointer< X509_STORE> store, Pointer<X509_VERIFY_PARAM> param) → int -
X509_STORE_set1_param copies verification parameters from
paramas inX509_VERIFY_PARAM_set1. It returns one on success and zero on error. -
X509_STORE_set_default_paths(
Pointer< X509_STORE> store) → int -
X509_STORE_set_default_paths configures
storeto read from some "default" filesystem paths. It returns one on success and zero on error. The filesystem paths are determined by a combination of hardcoded paths and the SSL_CERT_DIR and SSL_CERT_FILE environment variables. -
X509_STORE_set_depth(
Pointer< X509_STORE> store, int depth) → int -
X509_STORE_set_depth configures
storeto, by default, limit certificate chains todepthintermediate certificates. This count excludes both the target certificate and the trust anchor (root certificate). -
X509_STORE_set_flags(
Pointer< X509_STORE> store, int flags) → int -
X509_STORE_set_flags enables all values in
flagsinstore's verification flags.flagsshould be a combination ofX509_V_FLAG_*constants. -
X509_STORE_set_purpose(
Pointer< X509_STORE> store, int purpose) → int -
X509_STORE_set_purpose configures the purpose check for
store. SeeX509_VERIFY_PARAM_set_purposefor details. -
X509_STORE_set_trust(
Pointer< X509_STORE> store, int trust) → int -
X509_STORE_set_trust configures the trust check for
store. SeeX509_VERIFY_PARAM_set_trustfor details. -
X509_STORE_set_verify_cb(
Pointer< X509_STORE> store, X509_STORE_CTX_verify_cb verify_cb) → void -
X509_STORE_set_verify_cb acts like
X509_STORE_CTX_set_verify_cbbut sets the verify callback for anyX509_STORE_CTXcreated from thisX509_STORE -
X509_STORE_up_ref(
Pointer< X509_STORE> store) → int -
X509_STORE_up_ref adds one to the reference count of
storeand returns one. Althoughstoreis not const, this function's use ofstoreis thread-safe. -
X509_subject_name_cmp(
Pointer< X509> a, Pointer<X509> b) → int -
X509_subject_name_cmp behaves like
X509_NAME_cmp, but comparesaandb's subject names. -
X509_subject_name_hash(
Pointer< X509> x509) → int -
X509_subject_name_hash returns the hash of
x509's subject name withX509_NAME_hash. -
X509_subject_name_hash_old(
Pointer< X509> x509) → int -
X509_subject_name_hash_old returns the hash of
x509's usjbect name withX509_NAME_hash_old. -
X509_supported_extension(
Pointer< X509_EXTENSION> ex) → int -
X509_supported_extension returns one if
exis a critical X.509 certificate extension, supported byX509_verify_cert, and zero otherwise. -
X509_time_adj(
Pointer< ASN1_OCTET_STRING> s, int offset_sec, Pointer<Long> t) → Pointer<ASN1_OCTET_STRING> -
X509_time_adj calls
X509_time_adj_exwithoffset_dayequal to zero. -
X509_time_adj_ex(
Pointer< ASN1_OCTET_STRING> s, int offset_day, int offset_sec, Pointer<Long> t) → Pointer<ASN1_OCTET_STRING> -
X509_time_adj_ex behaves like
ASN1_TIME_adj, but adds an offset to*t. Iftis NULL, it uses the current time instead of*t. -
X509_trust_clear(
Pointer< X509> x509) → void -
X509_trust_clear clears the list of OIDs for which
x509is trusted. See alsoX509_add1_trust_object. -
X509_up_ref(
Pointer< X509> x509) → int -
X509_up_ref adds one to the reference count of
x509and returns one. -
X509_verify(
Pointer< X509> x509, Pointer<EVP_PKEY> pkey) → int -
X509_verify checks that
x509has a valid signature bypkey. It returns one if the signature is valid and zero otherwise. Note this function only checks the signature itself and does not perform a full certificate validation. -
X509_verify_cert(
Pointer< X509_STORE_CTX> ctx) → int -
X509_verify_cert performs certificate verification with
ctx, which must have been initialized withX509_STORE_CTX_init. It returns one on success and zero on error. On success,X509_STORE_CTX_get0_chainorX509_STORE_CTX_get1_chainmay be used to return the verified certificate chain. On error,X509_STORE_CTX_get_errormay be used to return additional error information. -
X509_verify_cert_error_string(
int err) → Pointer< Char> -
X509_verify_cert_error_string returns
erras a human-readable string, whereerrshould be one of theX509_V_*values. Iferris unknown, it returns a default description. -
X509_VERIFY_PARAM_add0_policy(
Pointer< X509_VERIFY_PARAM> param, Pointer<ASN1_OBJECT> policy) → int -
X509_VERIFY_PARAM_add0_policy adds
policyto the user-initial-policy-set (see Section 6.1.1 of RFC 5280). On success, it takes ownership ofpolicyand returns one. Otherwise, it returns zero and the caller retains ownership ofpolicy. -
X509_VERIFY_PARAM_add1_host(
Pointer< X509_VERIFY_PARAM> param, Pointer<Char> name, int name_len) → int -
X509_VERIFY_PARAM_add1_host adds
nameto the list of names checked byparam. If any configured DNS name matches the certificate, verification succeeds. It returns one on success and zero on error. -
X509_VERIFY_PARAM_clear_flags(
Pointer< X509_VERIFY_PARAM> param, int flags) → int -
X509_VERIFY_PARAM_clear_flags disables all values in
flagsinparam's verification flags and returns one.flagsshould be a combination ofX509_V_FLAG_*constants. -
X509_VERIFY_PARAM_free(
Pointer< X509_VERIFY_PARAM> param) → void -
X509_VERIFY_PARAM_free releases memory associated with
param. -
X509_VERIFY_PARAM_get_depth(
Pointer< X509_VERIFY_PARAM> param) → int -
X509_VERIFY_PARAM_get_depth returns the maximum depth configured in
param. SeeX509_VERIFY_PARAM_set_depth. -
X509_VERIFY_PARAM_get_flags(
Pointer< X509_VERIFY_PARAM> param) → int -
X509_VERIFY_PARAM_get_flags returns
param's verification flags. -
X509_VERIFY_PARAM_inherit(
Pointer< X509_VERIFY_PARAM> to, Pointer<X509_VERIFY_PARAM> from) → int -
X509_VERIFY_PARAM_inherit applies
fromas the default values forto. That is, for each parameter that is unset into, it copies the value infrom. This function returns one on success and zero on error. -
X509_VERIFY_PARAM_new(
) → Pointer< X509_VERIFY_PARAM> -
X509_VERIFY_PARAM_new returns a newly-allocated
X509_VERIFY_PARAM, or NULL on error. -
X509_VERIFY_PARAM_set1(
Pointer< X509_VERIFY_PARAM> to, Pointer<X509_VERIFY_PARAM> from) → int -
X509_VERIFY_PARAM_set1 copies parameters from
fromtoto. If a parameter is unset infrom, the existing value intois preserved. This function returns one on success and zero on error. -
X509_VERIFY_PARAM_set1_email(
Pointer< X509_VERIFY_PARAM> param, Pointer<Char> email, int email_len) → int -
X509_VERIFY_PARAM_set1_email configures
paramto check for the email address specified byemail. It returns one on success and zero on error. -
X509_VERIFY_PARAM_set1_host(
Pointer< X509_VERIFY_PARAM> param, Pointer<Char> name, int name_len) → int -
X509_VERIFY_PARAM_set1_host configures
paramto check for the DNS name specified byname. It returns one on success and zero on error. -
X509_VERIFY_PARAM_set1_ip(
Pointer< X509_VERIFY_PARAM> param, Pointer<Uint8> ip, int ip_len) → int -
X509_VERIFY_PARAM_set1_ip configures
paramto check for the IP address specified byip. It returns one on success and zero on error. The IP address is specified in its binary representation.ip_lenmust be 4 for an IPv4 address and 16 for an IPv6 address. -
X509_VERIFY_PARAM_set1_ip_asc(
Pointer< X509_VERIFY_PARAM> param, Pointer<Char> ipasc) → int -
X509_VERIFY_PARAM_set1_ip_asc decodes
ipascas the ASCII representation of an IPv4 or IPv6 address, and configuresparamto check for it. It returns one on success and zero on error. -
X509_VERIFY_PARAM_set1_policies(
Pointer< X509_VERIFY_PARAM> param, Pointer<EXTENDED_KEY_USAGE> policies) → int -
X509_VERIFY_PARAM_set1_policies sets the user-initial-policy-set (see
Section 6.1.1 of RFC 5280) to a copy of
policies. It returns one on success and zero on error. -
X509_VERIFY_PARAM_set_depth(
Pointer< X509_VERIFY_PARAM> param, int depth) → void -
X509_VERIFY_PARAM_set_depth configures
paramto limit certificate chains todepthintermediate certificates. This count excludes both the target certificate and the trust anchor (root certificate). -
X509_VERIFY_PARAM_set_flags(
Pointer< X509_VERIFY_PARAM> param, int flags) → int -
X509_VERIFY_PARAM_set_flags enables all values in
flagsinparam's verification flags and returns one.flagsshould be a combination ofX509_V_FLAG_*constants. -
X509_VERIFY_PARAM_set_hostflags(
Pointer< X509_VERIFY_PARAM> param, int flags) → void -
X509_VERIFY_PARAM_set_hostflags sets the name-checking flags on
paramtoflags.flagsshould be a combination ofX509_CHECK_FLAG_*constants. -
X509_VERIFY_PARAM_set_purpose(
Pointer< X509_VERIFY_PARAM> param, int purpose) → int -
X509_VERIFY_PARAM_set_purpose configures
paramto validate certificates for a specified purpose. It returns one on success and zero ifpurposeis not a valid purpose type.purposeshould be one of theX509_PURPOSE_*values. -
X509_VERIFY_PARAM_set_time(
Pointer< X509_VERIFY_PARAM> param, int t) → void -
X509_VERIFY_PARAM_set_time configures certificate verification to use
tinstead of the current time. -
X509_VERIFY_PARAM_set_time_posix(
Pointer< X509_VERIFY_PARAM> param, int t) → void -
X509_VERIFY_PARAM_set_time_posix configures certificate verification to use
tinstead of the current time.tis interpreted as a POSIX timestamp in seconds. -
X509_VERIFY_PARAM_set_trust(
Pointer< X509_VERIFY_PARAM> param, int trust) → int -
X509_VERIFY_PARAM_set_trust configures which certificates from
X509_STOREare trust anchors. It returns one on success and zero iftrustis not a valid trust value.trustshould be one of theX509_TRUST_*constants. This function allows applications to vary trust anchors when the same set of trusted certificates is used in multiple contexts. -
X509V3_add1_i2d(
Pointer< Pointer< x, int nid, Pointer<X509_EXTENSIONS> >Void> value, int crit, int flags) → int -
X509V3_add1_i2d casts
valueto the type that corresponds tonid, serializes it, and appends it to the extension list in*x. If*xis NULL, it will set*xto a newly-allocatedSTACK_OF(X509_EXTENSION)as needed. Thecritparameter determines whether the new extension is critical.flagsmay be some combination of theX509V3_ADD_*constants to control the function's behavior on duplicate extension. -
X509v3_add_ext(
Pointer< Pointer< x, Pointer<X509_EXTENSIONS> >X509_EXTENSION> ex, int loc) → Pointer<X509_EXTENSIONS> -
X509v3_add_ext adds a copy of
exto the extension list in*x. If*xis NULL, it allocates a newSTACK_OF(X509_EXTENSION)to hold the copy and sets*xto the new list. It returns*xon success and NULL on error. The caller retains ownership ofexand can release it independently of*x. -
X509V3_add_standard_extensions(
) → int - X509V3_add_standard_extensions returns one.
-
X509V3_conf_free(
Pointer< CONF_VALUE> val) → void -
X509V3_conf_free releases memory associated with
CONF_VALUE. -
X509v3_delete_ext(
Pointer< X509_EXTENSIONS> x, int loc) → Pointer<X509_EXTENSION> -
X509v3_delete_ext removes the extension in
xat indexlocand returns the removed extension, or NULL iflocwas out of bounds. If an extension was returned, the caller must release it withX509_EXTENSION_free. -
X509V3_EXT_add(
Pointer< X509V3_EXT_METHOD> ext) → int -
X509V3_EXT_add registers
extas a custom extension for the extension typeext->ext_nid.extmust be valid for the remainder of the address space's lifetime. It returns one on success and zero on error. -
X509V3_EXT_add_alias(
int nid_to, int nid_from) → int -
X509V3_EXT_add_alias registers a custom extension with NID
nid_to. The corresponding ASN.1 type is copied fromnid_from. It returns one on success and zero on error. -
X509V3_EXT_add_nconf(
Pointer< CONF> conf, Pointer<X509V3_CTX> ctx, Pointer<Char> section, Pointer<X509> cert) → int -
X509V3_EXT_add_nconf adds extensions to
certas inX509V3_EXT_add_nconf_sk. It returns one on success and zero on error. -
X509V3_EXT_add_nconf_sk(
Pointer< CONF> conf, Pointer<X509V3_CTX> ctx, Pointer<Char> section, Pointer<Pointer< sk) → intX509_EXTENSIONS> > -
X509V3_EXT_add_nconf_sk looks up the section named
sectioninconf. For eachCONF_VALUEin the section, it constructs an extension as inX509V3_EXT_nconf, takingnameandvaluefrom theCONF_VALUE. Each new extension is appended to*sk. If*skis non-NULL, and at least one extension is added, it sets*skto a newly-allocatedSTACK_OF(X509_EXTENSION). It returns one on success and zero on error. -
X509V3_EXT_CRL_add_nconf(
Pointer< CONF> conf, Pointer<X509V3_CTX> ctx, Pointer<Char> section, Pointer<X509_CRL> crl) → int -
X509V3_EXT_CRL_add_nconf adds extensions to
crlas inX509V3_EXT_add_nconf_sk. It returns one on success and zero on error. -
X509V3_EXT_d2i(
Pointer< X509_EXTENSION> ext) → Pointer<Void> -
X509V3_EXT_d2i decodes
extand returns a pointer to a newly-allocated structure, with type dependent on the type of the extension. It returns NULL ifextis an unsupported extension or if there was a syntax error in the extension. The caller should cast the return value to the expected type and free the structure when done. -
X509V3_EXT_free(
int nid, Pointer< Void> ext_data) → int -
X509V3_EXT_free casts
ext_datainto the type that corresponds tonidand releases memory associated with it. It returns one on success and zero ifnidis not a known extension. -
X509V3_EXT_get(
Pointer< X509_EXTENSION> ext) → Pointer<X509V3_EXT_METHOD> -
X509V3_EXT_get returns the
X509V3_EXT_METHODcorresponding toext's extension type, or NULL if none was registered. -
X509V3_EXT_get_nid(
int nid) → Pointer< X509V3_EXT_METHOD> -
X509V3_EXT_get_nid returns the
X509V3_EXT_METHODcorresponding tonid, or NULL if none was registered. -
X509V3_EXT_i2d(
int ext_nid, int crit, Pointer< Void> ext_struc) → Pointer<X509_EXTENSION> -
X509V3_EXT_i2d casts
ext_strucinto the type that corresponds toext_nid, serializes it, and returns a newly-allocatedX509_EXTENSIONobject containing the serialization, or NULL on error. TheX509_EXTENSIONhas OIDext_nidand is critical ifcritis one. -
X509V3_EXT_nconf(
Pointer< CONF> conf, Pointer<X509V3_CTX> ctx, Pointer<Char> name, Pointer<Char> value) → Pointer<X509_EXTENSION> -
X509V3_EXT_nconf constructs an extension of type specified by
name, and value specified byvalue. It returns a newly-allocatedX509_EXTENSIONobject on success, or NULL on error.confandctxspecify additional information referenced by some formats. Eitherconforctxmay be NULL, in which case features which use it will be disabled. -
X509V3_EXT_nconf_nid(
Pointer< CONF> conf, Pointer<X509V3_CTX> ctx, int ext_nid, Pointer<Char> value) → Pointer<X509_EXTENSION> -
X509V3_EXT_nconf_nid behaves like
X509V3_EXT_nconf, except the extension type is specified as a NID. -
X509V3_EXT_print(
Pointer< BIO> out, Pointer<X509_EXTENSION> ext, int flag, int indent) → int -
X509V3_EXT_print prints a human-readable representation of
extto out. It returns one on success and zero on error. The output is indented byindentspaces.flagis one of theX509V3_EXT_*constants and controls printing of unknown extensions and syntax errors. -
X509V3_EXT_print_fp(
Pointer< FILE> out, Pointer<X509_EXTENSION> ext, int flag, int indent) → int -
X509V3_EXT_print_fp behaves like
X509V3_EXT_printbut writes to aFILEinstead of aBIO. -
X509V3_EXT_REQ_add_nconf(
Pointer< CONF> conf, Pointer<X509V3_CTX> ctx, Pointer<Char> section, Pointer<X509_REQ> req) → int -
X509V3_EXT_REQ_add_nconf adds extensions to
reqas inX509V3_EXT_add_nconf_sk. It returns one on success and zero on error. -
X509V3_extensions_print(
Pointer< BIO> out, Pointer<Char> title, Pointer<X509_EXTENSIONS> exts, int flag, int indent) → int -
X509V3_extensions_print prints
title, followed by a human-readable representation ofextstoout. It returns one on success and zero on error. The output is indented byindentspaces.flagis one of theX509V3_EXT_*constants and controls printing of unknown extensions and syntax errors. -
X509V3_get_d2i(
Pointer< X509_EXTENSIONS> extensions, int nid, Pointer<Int> out_critical, Pointer<Int> out_idx) → Pointer<Void> -
X509V3_get_d2i finds and decodes the extension in
extensionsof typenid. If found, it decodes it and returns a newly-allocated structure, with type dependent onnid. If the extension is not found or on error, it returns NULL. The caller may distinguish these cases using theout_criticalvalue. -
X509v3_get_ext(
Pointer< X509_EXTENSIONS> x, int loc) → Pointer<X509_EXTENSION> -
X509v3_get_ext returns the extension in
xat indexloc, or NULL iflocis out of bounds. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result. -
X509v3_get_ext_by_critical(
Pointer< X509_EXTENSIONS> x, int crit, int lastpos) → int -
X509v3_get_ext_by_critical returns the index of the first extension in
xwhose critical bit matchescrit, or a negative number if no such extension was found. -
X509v3_get_ext_by_NID(
Pointer< X509_EXTENSIONS> x, int nid, int lastpos) → int -
X509v3_get_ext_by_NID returns the index of the first extension in
xwith typenid, or a negative number if not found. If found, callers can useX509v3_get_extto look up the extension by index. -
X509v3_get_ext_by_OBJ(
Pointer< X509_EXTENSIONS> x, Pointer<ASN1_OBJECT> obj, int lastpos) → int -
X509v3_get_ext_by_OBJ behaves like
X509v3_get_ext_by_NIDbut looks for extensions matchingobj. -
X509v3_get_ext_count(
Pointer< X509_EXTENSIONS> x) → int -
X509v3_get_ext_count returns the number of extensions in
x. -
X509V3_set_ctx(
Pointer< X509V3_CTX> ctx, Pointer<X509> issuer, Pointer<X509> subject, Pointer<X509_REQ> req, Pointer<X509_CRL> crl, int flags) → void -
X509V3_set_ctx initializes
ctxwith the specified objects. Some string formats will reference fields in these objects. Each object may be NULL to omit it, in which case those formats cannot be used.flagsshould be zero, unless called viaX509V3_set_ctx_test. -
X509V3_set_nconf(
Pointer< X509V3_CTX> ctx, Pointer<CONF> conf) → void -
X509V3_set_nconf sets
ctxto useconfas the config database.ctxmust have previously been initialized byX509V3_set_ctxorX509V3_set_ctx_test. Some string formats will reference sections inconf.confmay be NULL, in which case these formats cannot be used. If non-NULL,confmust outlivectx.
Typedefs
- ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st
- AES_KEY = aes_key_st
- ASN1_BIT_STRING = asn1_string_st
- ASN1_BMPSTRING = asn1_string_st
- ASN1_BOOLEAN = Int
- ASN1_ENUMERATED = asn1_string_st
- ASN1_GENERALIZEDTIME = asn1_string_st
- ASN1_GENERALSTRING = asn1_string_st
- ASN1_IA5STRING = asn1_string_st
- ASN1_INTEGER = asn1_string_st
- ASN1_ITEM = ASN1_ITEM_st
- ASN1_ITEM_EXP = ASN1_ITEM
-
ASN1_ITEM_EXP is an abstraction for referencing an
ASN1_ITEMin a constant-initialized structure, such as a method table. It exists because, on some OpenSSL platforms,ASN1_ITEMreferences are indirected through functions. Structures reference theASN1_ITEMby declaring a field likeASN1_ITEM_EXP *itemand initializing it withASN1_ITEM_ref. - ASN1_NULL = asn1_null_st
-
An
ASN1_NULLis an opaque type. asn1.h represents the ASN.1 NULL value as an opaque, non-NULLASN1_NULL*pointer. - ASN1_OBJECT = asn1_object_st
- ASN1_OCTET_STRING = asn1_string_st
- ASN1_PCTX = asn1_pctx_st
- ASN1_PRINTABLESTRING = asn1_string_st
- ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE
- ASN1_STRING = asn1_string_st
- ASN1_T61STRING = asn1_string_st
- ASN1_TIME = asn1_string_st
- ASN1_TYPE = asn1_type_st
- ASN1_UNIVERSALSTRING = asn1_string_st
- ASN1_UTCTIME = asn1_string_st
- ASN1_UTF8STRING = asn1_string_st
- ASN1_VALUE = ASN1_VALUE_st
-
ASN1_VALUE_st (aka
ASN1_VALUE) is an opaque type used as a placeholder for the C type corresponding to anASN1_ITEM. - ASN1_VISIBLESTRING = asn1_string_st
- AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION
- AUTHORITY_KEYID = AUTHORITY_KEYID_st
- BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st
- BIGNUM = bignum_st
- BIO = bio_st
-
BIO_info_cb
= NativeFunction<
Int Function(Pointer< BIO> , Int, Int)> - bio_info_cb = BIO_info_cb
- BIO_METHOD = bio_method_st
- BLAKE2B_CTX = blake2b_state_st
- BN_CTX = bignum_ctx
- BN_GENCB = bn_gencb_st
- BN_MONT_CTX = bn_mont_ctx_st
- BN_ULONG = Uint64
- BUF_MEM = buf_mem_st
- CBB = cbb_st
- CBS = cbs_st
- CBS_ASN1_TAG = Uint32
-
CBS_ASN1_TAG is the type used by
CBSandCBBfor ASN.1 tags. See that header for details. This type is defined in base.h as a forward declaration. - CERTIFICATEPOLICIES = stack_st_POLICYINFO
- CMAC_CTX = cmac_ctx_st
- CMS_ContentInfo = CMS_ContentInfo_st
- CMS_SignerInfo = CMS_SignerInfo_st
- CONF = conf_st
- CONF_VALUE = conf_value_st
- CPACE_CTX = cpace_ctx_st
- CRL_DIST_POINTS = stack_st_DIST_POINT
- CRYPTO_BUFFER = crypto_buffer_st
- CRYPTO_BUFFER_POOL = crypto_buffer_pool_st
- CRYPTO_EX_DATA = crypto_ex_data_st
- CRYPTO_EX_DATA, in the public API, is an opaque struct that is never returned from the library.
-
CRYPTO_EX_dup
= NativeFunction<
Int Function(Pointer< CRYPTO_EX_DATA> to, Pointer<CRYPTO_EX_DATA> from, Pointer<Pointer< from_d, Int index, Long argl, Pointer<Void> >Void> argp)> - CRYPTO_EX_dup is a legacy callback function type which is ignored.
-
CRYPTO_EX_free
= NativeFunction<
Void Function(Pointer< Void> parent, Pointer<Void> ptr, Pointer<CRYPTO_EX_DATA> ad, Int index, Long argl, Pointer<Void> argp)> -
CRYPTO_EX_free is a callback function that is called when an object of the
class with extra data pointers is being destroyed. For example, if this
callback has been passed to
SSL_get_ex_new_indexthen it may be called each time anSSL*is destroyed. - CRYPTO_EX_unused = Int
- CRYPTO_EX_unused is a placeholder for an unused callback. It is aliased to int to ensure non-NULL callers fail to compile rather than fail silently.
- CRYPTO_IOVEC = crypto_iovec_st
- CRYPTO_IVEC = crypto_ivec_st
- CRYPTO_MUST_BE_NULL = crypto_must_be_null_st
- CRYPTO_MUST_BE_NULL is an opaque type that is never returned from BoringSSL. It is used in function parameters that must be NULL.
- CRYPTO_THREADID = Int
- CRYPTO_THREADID is a dummy value.
- CTR_DRBG_STATE = ctr_drbg_state_st
-
d2i_of_void
= NativeFunction<
Pointer< Void> Function(Pointer<Pointer< , Pointer<Void> >Pointer< , Long)>UnsignedChar> > -
The following typedefs are sometimes used for pointers to functions like
d2i_SAMPLEandi2d_SAMPLE. Note, however, that these act onvoid*. Calling a function with a different pointer type is undefined in C, so this is only valid with a wrapper. - DartASN1_BOOLEAN = int
- DartBN_ULONG = int
- DartCBS_ASN1_TAG = int
- DartCRYPTO_EX_unused = int
- DartCRYPTO_THREADID = int
-
DartERR_print_errors_callback_tFunction
= int Function(Pointer<
Char> str, int len, Pointer<Void> ctx) -
DartOPENSSL_sk_call_cmp_funcFunction
= int Function(OPENSSL_sk_cmp_func, Pointer<
Void> , Pointer<Void> ) -
DartOPENSSL_sk_call_delete_if_funcFunction
= int Function(OPENSSL_sk_delete_if_func, Pointer<
Void> , Pointer<Void> ) -
DartOPENSSL_sk_call_free_funcFunction
= void Function(OPENSSL_sk_free_func, Pointer<
Void> ) -
DartOPENSSL_sk_cmp_funcFunction
= int Function(Pointer<
Pointer< a, Pointer<Void> >Pointer< b)Void> > -
DartOPENSSL_sk_delete_if_funcFunction
= int Function(Pointer<
Void> obj, Pointer<Void> data) -
DartOPENSSL_sk_free_funcFunction
= void Function(Pointer<
Void> method) - DartPKCS7_DIGEST = void
- DartPKCS7_ENCRYPT = void
- DartPKCS7_ENVELOPE = void
- DartPKCS7_SIGNER_INFO = void
- Dartptrdiff_t = int
-
Dartsk_ACCESS_DESCRIPTION_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<ACCESS_DESCRIPTION> >Pointer< )ACCESS_DESCRIPTION> > -
Dartsk_ACCESS_DESCRIPTION_delete_if_funcFunction
= int Function(Pointer<
ACCESS_DESCRIPTION> , Pointer<Void> ) -
Dartsk_ACCESS_DESCRIPTION_free_funcFunction
= void Function(Pointer<
ACCESS_DESCRIPTION> desc) -
Dartsk_ASN1_INTEGER_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<ASN1_OCTET_STRING> >Pointer< )ASN1_OCTET_STRING> > -
Dartsk_ASN1_INTEGER_delete_if_funcFunction
= int Function(Pointer<
ASN1_OCTET_STRING> , Pointer<Void> ) -
Dartsk_ASN1_INTEGER_free_funcFunction
= void Function(Pointer<
ASN1_OCTET_STRING> str) -
Dartsk_ASN1_OBJECT_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<ASN1_OBJECT> >Pointer< )ASN1_OBJECT> > -
Dartsk_ASN1_OBJECT_delete_if_funcFunction
= int Function(Pointer<
ASN1_OBJECT> , Pointer<Void> ) -
Dartsk_ASN1_OBJECT_free_funcFunction
= void Function(Pointer<
ASN1_OBJECT> a) -
Dartsk_ASN1_TYPE_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<ASN1_TYPE> >Pointer< )ASN1_TYPE> > -
Dartsk_ASN1_TYPE_delete_if_funcFunction
= int Function(Pointer<
ASN1_TYPE> , Pointer<Void> ) -
Dartsk_ASN1_TYPE_free_funcFunction
= void Function(Pointer<
ASN1_TYPE> a) -
Dartsk_BIO_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<BIO> >Pointer< )BIO> > -
Dartsk_BIO_delete_if_funcFunction
= int Function(Pointer<
BIO> , Pointer<Void> ) -
Dartsk_BIO_free_funcFunction
= void Function(Pointer<
BIO> bio) -
Dartsk_CONF_VALUE_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<CONF_VALUE> >Pointer< )CONF_VALUE> > -
Dartsk_CONF_VALUE_delete_if_funcFunction
= int Function(Pointer<
CONF_VALUE> , Pointer<Void> ) -
Dartsk_CONF_VALUE_free_funcFunction
= void Function(Pointer<
CONF_VALUE> val) -
Dartsk_CRYPTO_BUFFER_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<CRYPTO_BUFFER> >Pointer< )CRYPTO_BUFFER> > -
Dartsk_CRYPTO_BUFFER_delete_if_funcFunction
= int Function(Pointer<
CRYPTO_BUFFER> , Pointer<Void> ) -
Dartsk_CRYPTO_BUFFER_free_funcFunction
= void Function(Pointer<
CRYPTO_BUFFER> buf) -
Dartsk_DIST_POINT_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<DIST_POINT> >Pointer< )DIST_POINT> > -
Dartsk_DIST_POINT_delete_if_funcFunction
= int Function(Pointer<
DIST_POINT> , Pointer<Void> ) -
Dartsk_DIST_POINT_free_funcFunction
= void Function(Pointer<
DIST_POINT> dp) -
Dartsk_GENERAL_NAME_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<GENERAL_NAME> >Pointer< )GENERAL_NAME> > -
Dartsk_GENERAL_NAME_delete_if_funcFunction
= int Function(Pointer<
GENERAL_NAME> , Pointer<Void> ) -
Dartsk_GENERAL_NAME_free_funcFunction
= void Function(Pointer<
GENERAL_NAME> gen) -
Dartsk_GENERAL_SUBTREE_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<GENERAL_SUBTREE> >Pointer< )GENERAL_SUBTREE> > -
Dartsk_GENERAL_SUBTREE_delete_if_funcFunction
= int Function(Pointer<
GENERAL_SUBTREE> , Pointer<Void> ) -
Dartsk_GENERAL_SUBTREE_free_funcFunction
= void Function(Pointer<
GENERAL_SUBTREE> subtree) -
Dartsk_OPENSSL_STRING_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<Char> >Pointer< )Char> > -
Dartsk_OPENSSL_STRING_delete_if_funcFunction
= int Function(Pointer<
Char> , Pointer<Void> ) -
Dartsk_OPENSSL_STRING_free_funcFunction
= void Function(Pointer<
Char> format) -
Dartsk_POLICY_MAPPING_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<POLICY_MAPPING> >Pointer< )POLICY_MAPPING> > -
Dartsk_POLICY_MAPPING_delete_if_funcFunction
= int Function(Pointer<
POLICY_MAPPING> , Pointer<Void> ) -
Dartsk_POLICY_MAPPING_free_funcFunction
= void Function(Pointer<
POLICY_MAPPING> mapping) -
Dartsk_POLICYINFO_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<POLICYINFO> >Pointer< )POLICYINFO> > -
Dartsk_POLICYINFO_delete_if_funcFunction
= int Function(Pointer<
POLICYINFO> , Pointer<Void> ) -
Dartsk_POLICYINFO_free_funcFunction
= void Function(Pointer<
POLICYINFO> info) -
Dartsk_POLICYQUALINFO_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<POLICYQUALINFO> >Pointer< )POLICYQUALINFO> > -
Dartsk_POLICYQUALINFO_delete_if_funcFunction
= int Function(Pointer<
POLICYQUALINFO> , Pointer<Void> ) -
Dartsk_POLICYQUALINFO_free_funcFunction
= void Function(Pointer<
POLICYQUALINFO> info) -
Dartsk_void_cmp_funcFunction
= int Function(Pointer<
Pointer< a, Pointer<Void> >Pointer< b)Void> > -
Dartsk_void_delete_if_funcFunction
= int Function(Pointer<
Void> obj, Pointer<Void> data) -
Dartsk_void_free_funcFunction
= void Function(Pointer<
Void> method) -
Dartsk_X509_ALGOR_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_ALGOR> >Pointer< )X509_ALGOR> > -
Dartsk_X509_ALGOR_delete_if_funcFunction
= int Function(Pointer<
X509_ALGOR> , Pointer<Void> ) -
Dartsk_X509_ALGOR_free_funcFunction
= void Function(Pointer<
X509_ALGOR> alg) -
Dartsk_X509_ATTRIBUTE_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_ATTRIBUTE> >Pointer< )X509_ATTRIBUTE> > -
Dartsk_X509_ATTRIBUTE_delete_if_funcFunction
= int Function(Pointer<
X509_ATTRIBUTE> , Pointer<Void> ) -
Dartsk_X509_ATTRIBUTE_free_funcFunction
= void Function(Pointer<
X509_ATTRIBUTE> attr) -
Dartsk_X509_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509> >Pointer< )X509> > -
Dartsk_X509_CRL_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_CRL> >Pointer< )X509_CRL> > -
Dartsk_X509_CRL_delete_if_funcFunction
= int Function(Pointer<
X509_CRL> , Pointer<Void> ) -
Dartsk_X509_CRL_free_funcFunction
= void Function(Pointer<
X509_CRL> crl) -
Dartsk_X509_delete_if_funcFunction
= int Function(Pointer<
X509> , Pointer<Void> ) -
Dartsk_X509_EXTENSION_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_EXTENSION> >Pointer< )X509_EXTENSION> > -
Dartsk_X509_EXTENSION_delete_if_funcFunction
= int Function(Pointer<
X509_EXTENSION> , Pointer<Void> ) -
Dartsk_X509_EXTENSION_free_funcFunction
= void Function(Pointer<
X509_EXTENSION> ex) -
Dartsk_X509_free_funcFunction
= void Function(Pointer<
X509> x509) -
Dartsk_X509_INFO_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_INFO> >Pointer< )X509_INFO> > -
Dartsk_X509_INFO_delete_if_funcFunction
= int Function(Pointer<
X509_INFO> , Pointer<Void> ) -
Dartsk_X509_INFO_free_funcFunction
= void Function(Pointer<
X509_INFO> info) -
Dartsk_X509_NAME_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_NAME> >Pointer< )X509_NAME> > -
Dartsk_X509_NAME_delete_if_funcFunction
= int Function(Pointer<
X509_NAME> , Pointer<Void> ) -
Dartsk_X509_NAME_ENTRY_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_NAME_ENTRY> >Pointer< )X509_NAME_ENTRY> > -
Dartsk_X509_NAME_ENTRY_delete_if_funcFunction
= int Function(Pointer<
X509_NAME_ENTRY> , Pointer<Void> ) -
Dartsk_X509_NAME_ENTRY_free_funcFunction
= void Function(Pointer<
X509_NAME_ENTRY> entry) -
Dartsk_X509_NAME_free_funcFunction
= void Function(Pointer<
X509_NAME> name) -
Dartsk_X509_OBJECT_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_OBJECT> >Pointer< )X509_OBJECT> > -
Dartsk_X509_OBJECT_delete_if_funcFunction
= int Function(Pointer<
X509_OBJECT> , Pointer<Void> ) -
Dartsk_X509_OBJECT_free_funcFunction
= void Function(Pointer<
X509_OBJECT> obj) -
Dartsk_X509_REVOKED_cmp_funcFunction
= int Function(Pointer<
Pointer< , Pointer<X509_REVOKED> >Pointer< )X509_REVOKED> > -
Dartsk_X509_REVOKED_delete_if_funcFunction
= int Function(Pointer<
X509_REVOKED> , Pointer<Void> ) -
Dartsk_X509_REVOKED_free_funcFunction
= void Function(Pointer<
X509_REVOKED> rev) -
DartX509_STORE_CTX_verify_cbFunction
= int Function(int, Pointer<
X509_STORE_CTX> ) -
DartX509V3_EXT_D2IFunction
= Pointer<
Void> Function(Pointer<Void> ext, Pointer<Pointer< inp, int len)Uint8> > -
DartX509V3_EXT_FREEFunction
= void Function(Pointer<
Void> method) -
DartX509V3_EXT_I2DFunction
= int Function(Pointer<
Void> ext, Pointer<Pointer< outp)Uint8> > -
DartX509V3_EXT_I2RFunction
= int Function(Pointer<
X509V3_EXT_METHOD> method, Pointer<Void> ext, Pointer<BIO> out, int indent) - DH = dh_st
- DIST_POINT = DIST_POINT_st
- DIST_POINT_NAME = DIST_POINT_NAME_st
- DSA = dsa_st
- DSA_SIG = DSA_SIG_st
- EC_GROUP = ec_group_st
- EC_KEY = ec_key_st
- EC_METHOD = ec_method_st
- EC_POINT = ec_point_st
- ECDSA_METHOD = ecdsa_method_st
- ECDSA_SIG = ecdsa_sig_st
- EDIPARTYNAME = EDIPartyName_st
- ENGINE = engine_st
- ERR_FNS = st_ERR_FNS
-
ERR_print_errors_callback_t
= Pointer<
NativeFunction< ERR_print_errors_callback_tFunction> > -
ERR_print_errors_callback_t is the type of a function used by
ERR_print_errors_cb. It takes a pointer to a human readable string (and its length) that describes an entry in the error queue. Thectxargument is an opaque pointer given toERR_print_errors_cb. -
ERR_print_errors_callback_tFunction
= Int Function(Pointer<
Char> str, Size len, Pointer<Void> ctx) - EVP_AEAD = evp_aead_st
- EVP_AEAD_CTX = evp_aead_ctx_st
- EVP_CIPHER = evp_cipher_st
- EVP_CIPHER_CTX = evp_cipher_ctx_st
- EVP_CIPHER_INFO = evp_cipher_info_st
- EVP_ENCODE_CTX = evp_encode_ctx_st
- EVP_HPKE_AEAD = evp_hpke_aead_st
- EVP_HPKE_CTX = evp_hpke_ctx_st
- EVP_HPKE_KDF = evp_hpke_kdf_st
- EVP_HPKE_KEM = evp_hpke_kem_st
- EVP_HPKE_KEY = evp_hpke_key_st
- EVP_KEM = evp_kem_st
- EVP_MD = env_md_st
- EVP_MD_CTX = env_md_ctx_st
- EVP_PKEY = evp_pkey_st
- EVP_PKEY_ALG = evp_pkey_alg_st
- EVP_PKEY_CTX = evp_pkey_ctx_st
- EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT
- Extended key usage.
- FILE = _IO_FILE
- GENERAL_NAME = GENERAL_NAME_st
- GENERAL_NAMES = stack_st_GENERAL_NAME
- GENERAL_SUBTREE = GENERAL_SUBTREE_st
- HMAC_CTX = hmac_ctx_st
-
i2d_of_void
= NativeFunction<
Int Function(Pointer< Void> , Pointer<Pointer< )>UnsignedChar> > - ISSUING_DIST_POINT = ISSUING_DIST_POINT_st
- MD4_CTX = md4_state_st
- MD5_CTX = md5_state_st
- NAME_CONSTRAINTS = NAME_CONSTRAINTS_st
- NETSCAPE_SPKAC = Netscape_spkac_st
- NETSCAPE_SPKI = Netscape_spki_st
- NOTICEREF = NOTICEREF_st
- OBJ_NAME = obj_name_st
-
OPENSSL_BLOCK
= Pointer<
Void> - OPENSSL_INIT_SETTINGS = ossl_init_settings_st
-
OPENSSL_sk_call_cmp_func
= Pointer<
NativeFunction< OPENSSL_sk_call_cmp_funcFunction> > -
OPENSSL_sk_call_cmp_funcFunction
= Int Function(OPENSSL_sk_cmp_func, Pointer<
Void> , Pointer<Void> ) -
OPENSSL_sk_call_copy_func
= Pointer<
NativeFunction< OPENSSL_sk_call_copy_funcFunction> > -
OPENSSL_sk_call_copy_funcFunction
= Pointer<
Void> Function(OPENSSL_sk_copy_func, Pointer<Void> ) -
OPENSSL_sk_call_delete_if_func
= Pointer<
NativeFunction< OPENSSL_sk_call_delete_if_funcFunction> > -
OPENSSL_sk_call_delete_if_funcFunction
= Int Function(OPENSSL_sk_delete_if_func, Pointer<
Void> , Pointer<Void> ) -
OPENSSL_sk_call_free_func
= Pointer<
NativeFunction< OPENSSL_sk_call_free_funcFunction> > - The following function types call the above type-erased signatures with the true types.
-
OPENSSL_sk_call_free_funcFunction
= Void Function(OPENSSL_sk_free_func, Pointer<
Void> ) -
OPENSSL_sk_cmp_func
= Pointer<
NativeFunction< OPENSSL_sk_cmp_funcFunction> > -
OPENSSL_sk_cmp_func is a comparison function that returns a value < 0, 0 or >
0 if
*ais less than, equal to or greater than*b, respectively. Note the extra indirection - the function is given a pointer to a pointer to the element. This differs from the usual qsort/bsearch comparison function. -
OPENSSL_sk_cmp_funcFunction
= Int Function(Pointer<
Pointer< a, Pointer<Void> >Pointer< b)Void> > -
OPENSSL_sk_copy_func
= Pointer<
NativeFunction< OPENSSL_sk_copy_funcFunction> > -
OPENSSL_sk_copy_func is a function that copies an element in a stack. Note
its actual type is T ()(const T *) for some T. Low-level
sk_*functions will be passed a type-specific wrapper to call it correctly. -
OPENSSL_sk_copy_funcFunction
= Pointer<
Void> Function(Pointer<Void> ptr) -
OPENSSL_sk_delete_if_func
= Pointer<
NativeFunction< OPENSSL_sk_delete_if_funcFunction> > -
OPENSSL_sk_delete_if_func is the generic version of
sk_SAMPLE_delete_if_func. -
OPENSSL_sk_delete_if_funcFunction
= Int Function(Pointer<
Void> obj, Pointer<Void> data) -
OPENSSL_sk_free_func
= Pointer<
NativeFunction< OPENSSL_sk_free_funcFunction> > -
OPENSSL_sk_free_func is a function that frees an element in a stack. Note its
actual type is void (*)(T *) for some T. Low-level
sk_*functions will be passed a type-specific wrapper to call it correctly. -
OPENSSL_sk_free_funcFunction
= Void Function(Pointer<
Void> ptr) - OPENSSL_STACK = stack_st
- An OPENSSL_STACK contains an array of pointers. It is not designed to be used directly, rather the wrapper macros should be used.
-
OPENSSL_STRING
= Pointer<
Char> - Built-in stacks.
- OSSL_LIB_CTX = ossl_lib_ctx_st
- OSSL_PARAM = ossl_param_st
- ossl_ssize_t = ptrdiff_t
-
ossl_ssize_t is a signed type which is large enough to fit the size of any
valid memory allocation. We prefer using
size_t, but sometimes we need a signed type for OpenSSL API compatibility. This type can be used in such cases to avoid overflow. - OTHERNAME = otherName_st
-
pem_password_cb
= NativeFunction<
Int Function(Pointer< Char> out, Int max_out, Int enc, Pointer<Void> userdata)> -
pem_password_cb is an application-supplied callback to supply a PEM password.
On success, the callback should write the password into
out, which has room for at mostmax_outbytes. On error, including ifmax_outis too small, it should return -1.encis one if the password will be used for encrypting and zero if it is used for decrypting.userdatais the application-supplied parameter of the same name to the PEM function. - PKCS12 = pkcs12_st
- PKCS7_DIGEST = Void
- PKCS7_ENCRYPT = Void
- PKCS7_ENVELOPE = Void
- PKCS7_SIGNER_INFO = Void
- PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st
- POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st
- POLICY_MAPPING = POLICY_MAPPING_st
- POLICY_MAPPINGS = stack_st_POLICY_MAPPING
- POLICYINFO = POLICYINFO_st
- POLICYQUALINFO = POLICYQUALINFO_st
- ptrdiff_t = Long
- RAND_METHOD = rand_meth_st
- RC4_KEY = rc4_key_st
- RIPEMD160_CTX = RIPEMD160state_st
- RSA = rsa_st
- RSA_METHOD = rsa_meth_st
- RSA_PSS_PARAMS = rsa_pss_params_st
- SHA256_CTX = sha256_state_st
- SHA512_CTX = sha512_state_st
- SHA_CTX = sha_state_st
-
sk_ACCESS_DESCRIPTION_cmp_func
= Pointer<
NativeFunction< sk_ACCESS_DESCRIPTION_cmp_funcFunction> > -
sk_ACCESS_DESCRIPTION_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<ACCESS_DESCRIPTION> >Pointer< )ACCESS_DESCRIPTION> > -
sk_ACCESS_DESCRIPTION_copy_func
= Pointer<
NativeFunction< sk_ACCESS_DESCRIPTION_copy_funcFunction> > -
sk_ACCESS_DESCRIPTION_copy_funcFunction
= Pointer<
ACCESS_DESCRIPTION> Function(Pointer<ACCESS_DESCRIPTION> ) -
sk_ACCESS_DESCRIPTION_delete_if_func
= Pointer<
NativeFunction< sk_ACCESS_DESCRIPTION_delete_if_funcFunction> > -
sk_ACCESS_DESCRIPTION_delete_if_funcFunction
= Int Function(Pointer<
ACCESS_DESCRIPTION> , Pointer<Void> ) -
sk_ACCESS_DESCRIPTION_free_func
= Pointer<
NativeFunction< sk_ACCESS_DESCRIPTION_free_funcFunction> > -
sk_ACCESS_DESCRIPTION_free_funcFunction
= Void Function(Pointer<
ACCESS_DESCRIPTION> ) -
sk_ASN1_INTEGER_cmp_func
= Pointer<
NativeFunction< sk_ASN1_INTEGER_cmp_funcFunction> > -
sk_ASN1_INTEGER_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<ASN1_OCTET_STRING> >Pointer< )ASN1_OCTET_STRING> > -
sk_ASN1_INTEGER_copy_func
= Pointer<
NativeFunction< sk_ASN1_INTEGER_copy_funcFunction> > -
sk_ASN1_INTEGER_copy_funcFunction
= Pointer<
ASN1_OCTET_STRING> Function(Pointer<ASN1_OCTET_STRING> x) -
sk_ASN1_INTEGER_delete_if_func
= Pointer<
NativeFunction< sk_ASN1_INTEGER_delete_if_funcFunction> > -
sk_ASN1_INTEGER_delete_if_funcFunction
= Int Function(Pointer<
ASN1_OCTET_STRING> , Pointer<Void> ) -
sk_ASN1_INTEGER_free_func
= Pointer<
NativeFunction< sk_ASN1_INTEGER_free_funcFunction> > -
sk_ASN1_INTEGER_free_funcFunction
= Void Function(Pointer<
ASN1_OCTET_STRING> ) -
sk_ASN1_OBJECT_cmp_func
= Pointer<
NativeFunction< sk_ASN1_OBJECT_cmp_funcFunction> > -
sk_ASN1_OBJECT_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<ASN1_OBJECT> >Pointer< )ASN1_OBJECT> > -
sk_ASN1_OBJECT_copy_func
= Pointer<
NativeFunction< sk_ASN1_OBJECT_copy_funcFunction> > -
sk_ASN1_OBJECT_copy_funcFunction
= Pointer<
ASN1_OBJECT> Function(Pointer<ASN1_OBJECT> obj) -
sk_ASN1_OBJECT_delete_if_func
= Pointer<
NativeFunction< sk_ASN1_OBJECT_delete_if_funcFunction> > -
sk_ASN1_OBJECT_delete_if_funcFunction
= Int Function(Pointer<
ASN1_OBJECT> , Pointer<Void> ) -
sk_ASN1_OBJECT_free_func
= Pointer<
NativeFunction< sk_ASN1_OBJECT_free_funcFunction> > -
sk_ASN1_OBJECT_free_funcFunction
= Void Function(Pointer<
ASN1_OBJECT> ) -
sk_ASN1_TYPE_cmp_func
= Pointer<
NativeFunction< sk_ASN1_TYPE_cmp_funcFunction> > -
sk_ASN1_TYPE_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<ASN1_TYPE> >Pointer< )ASN1_TYPE> > -
sk_ASN1_TYPE_copy_func
= Pointer<
NativeFunction< sk_ASN1_TYPE_copy_funcFunction> > -
sk_ASN1_TYPE_copy_funcFunction
= Pointer<
ASN1_TYPE> Function(Pointer<ASN1_TYPE> ) -
sk_ASN1_TYPE_delete_if_func
= Pointer<
NativeFunction< sk_ASN1_TYPE_delete_if_funcFunction> > -
sk_ASN1_TYPE_delete_if_funcFunction
= Int Function(Pointer<
ASN1_TYPE> , Pointer<Void> ) -
sk_ASN1_TYPE_free_func
= Pointer<
NativeFunction< sk_ASN1_TYPE_free_funcFunction> > -
sk_ASN1_TYPE_free_funcFunction
= Void Function(Pointer<
ASN1_TYPE> ) -
sk_BIO_cmp_func
= Pointer<
NativeFunction< sk_BIO_cmp_funcFunction> > -
sk_BIO_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<BIO> >Pointer< )BIO> > -
sk_BIO_copy_func
= Pointer<
NativeFunction< sk_BIO_copy_funcFunction> > -
sk_BIO_copy_funcFunction
= Pointer<
BIO> Function(Pointer<BIO> bio) -
sk_BIO_delete_if_func
= Pointer<
NativeFunction< sk_BIO_delete_if_funcFunction> > -
sk_BIO_delete_if_funcFunction
= Int Function(Pointer<
BIO> , Pointer<Void> ) -
sk_BIO_free_func
= Pointer<
NativeFunction< sk_BIO_free_funcFunction> > -
sk_BIO_free_funcFunction
= Void Function(Pointer<
BIO> ) -
sk_CONF_VALUE_cmp_func
= Pointer<
NativeFunction< sk_CONF_VALUE_cmp_funcFunction> > -
sk_CONF_VALUE_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<CONF_VALUE> >Pointer< )CONF_VALUE> > -
sk_CONF_VALUE_copy_func
= Pointer<
NativeFunction< sk_CONF_VALUE_copy_funcFunction> > -
sk_CONF_VALUE_copy_funcFunction
= Pointer<
CONF_VALUE> Function(Pointer<CONF_VALUE> ) -
sk_CONF_VALUE_delete_if_func
= Pointer<
NativeFunction< sk_CONF_VALUE_delete_if_funcFunction> > -
sk_CONF_VALUE_delete_if_funcFunction
= Int Function(Pointer<
CONF_VALUE> , Pointer<Void> ) -
sk_CONF_VALUE_free_func
= Pointer<
NativeFunction< sk_CONF_VALUE_free_funcFunction> > -
sk_CONF_VALUE_free_funcFunction
= Void Function(Pointer<
CONF_VALUE> ) -
sk_CRYPTO_BUFFER_cmp_func
= Pointer<
NativeFunction< sk_CRYPTO_BUFFER_cmp_funcFunction> > -
sk_CRYPTO_BUFFER_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<CRYPTO_BUFFER> >Pointer< )CRYPTO_BUFFER> > -
sk_CRYPTO_BUFFER_copy_func
= Pointer<
NativeFunction< sk_CRYPTO_BUFFER_copy_funcFunction> > -
sk_CRYPTO_BUFFER_copy_funcFunction
= Pointer<
CRYPTO_BUFFER> Function(Pointer<CRYPTO_BUFFER> buf) -
sk_CRYPTO_BUFFER_delete_if_func
= Pointer<
NativeFunction< sk_CRYPTO_BUFFER_delete_if_funcFunction> > -
sk_CRYPTO_BUFFER_delete_if_funcFunction
= Int Function(Pointer<
CRYPTO_BUFFER> , Pointer<Void> ) -
sk_CRYPTO_BUFFER_free_func
= Pointer<
NativeFunction< sk_CRYPTO_BUFFER_free_funcFunction> > - Buffers and buffer pools.
-
sk_CRYPTO_BUFFER_free_funcFunction
= Void Function(Pointer<
CRYPTO_BUFFER> ) -
sk_DIST_POINT_cmp_func
= Pointer<
NativeFunction< sk_DIST_POINT_cmp_funcFunction> > -
sk_DIST_POINT_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<DIST_POINT> >Pointer< )DIST_POINT> > -
sk_DIST_POINT_copy_func
= Pointer<
NativeFunction< sk_DIST_POINT_copy_funcFunction> > -
sk_DIST_POINT_copy_funcFunction
= Pointer<
DIST_POINT> Function(Pointer<DIST_POINT> ) -
sk_DIST_POINT_delete_if_func
= Pointer<
NativeFunction< sk_DIST_POINT_delete_if_funcFunction> > -
sk_DIST_POINT_delete_if_funcFunction
= Int Function(Pointer<
DIST_POINT> , Pointer<Void> ) -
sk_DIST_POINT_free_func
= Pointer<
NativeFunction< sk_DIST_POINT_free_funcFunction> > -
sk_DIST_POINT_free_funcFunction
= Void Function(Pointer<
DIST_POINT> ) -
sk_GENERAL_NAME_cmp_func
= Pointer<
NativeFunction< sk_GENERAL_NAME_cmp_funcFunction> > -
sk_GENERAL_NAME_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<GENERAL_NAME> >Pointer< )GENERAL_NAME> > -
sk_GENERAL_NAME_copy_func
= Pointer<
NativeFunction< sk_GENERAL_NAME_copy_funcFunction> > -
sk_GENERAL_NAME_copy_funcFunction
= Pointer<
GENERAL_NAME> Function(Pointer<GENERAL_NAME> gen) -
sk_GENERAL_NAME_delete_if_func
= Pointer<
NativeFunction< sk_GENERAL_NAME_delete_if_funcFunction> > -
sk_GENERAL_NAME_delete_if_funcFunction
= Int Function(Pointer<
GENERAL_NAME> , Pointer<Void> ) -
sk_GENERAL_NAME_free_func
= Pointer<
NativeFunction< sk_GENERAL_NAME_free_funcFunction> > -
sk_GENERAL_NAME_free_funcFunction
= Void Function(Pointer<
GENERAL_NAME> ) -
sk_GENERAL_SUBTREE_cmp_func
= Pointer<
NativeFunction< sk_GENERAL_SUBTREE_cmp_funcFunction> > -
sk_GENERAL_SUBTREE_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<GENERAL_SUBTREE> >Pointer< )GENERAL_SUBTREE> > -
sk_GENERAL_SUBTREE_copy_func
= Pointer<
NativeFunction< sk_GENERAL_SUBTREE_copy_funcFunction> > -
sk_GENERAL_SUBTREE_copy_funcFunction
= Pointer<
GENERAL_SUBTREE> Function(Pointer<GENERAL_SUBTREE> ) -
sk_GENERAL_SUBTREE_delete_if_func
= Pointer<
NativeFunction< sk_GENERAL_SUBTREE_delete_if_funcFunction> > -
sk_GENERAL_SUBTREE_delete_if_funcFunction
= Int Function(Pointer<
GENERAL_SUBTREE> , Pointer<Void> ) -
sk_GENERAL_SUBTREE_free_func
= Pointer<
NativeFunction< sk_GENERAL_SUBTREE_free_funcFunction> > -
sk_GENERAL_SUBTREE_free_funcFunction
= Void Function(Pointer<
GENERAL_SUBTREE> ) -
sk_OPENSSL_STRING_cmp_func
= Pointer<
NativeFunction< sk_OPENSSL_STRING_cmp_funcFunction> > -
sk_OPENSSL_STRING_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<Char> >Pointer< )Char> > -
sk_OPENSSL_STRING_copy_func
= Pointer<
NativeFunction< sk_OPENSSL_STRING_copy_funcFunction> > -
sk_OPENSSL_STRING_copy_funcFunction
= Pointer<
Char> Function(Pointer<Char> str) -
sk_OPENSSL_STRING_delete_if_func
= Pointer<
NativeFunction< sk_OPENSSL_STRING_delete_if_funcFunction> > -
sk_OPENSSL_STRING_delete_if_funcFunction
= Int Function(Pointer<
Char> , Pointer<Void> ) -
sk_OPENSSL_STRING_free_func
= Pointer<
NativeFunction< sk_OPENSSL_STRING_free_funcFunction> > -
sk_OPENSSL_STRING_free_funcFunction
= Void Function(Pointer<
Char> ) -
sk_POLICY_MAPPING_cmp_func
= Pointer<
NativeFunction< sk_POLICY_MAPPING_cmp_funcFunction> > -
sk_POLICY_MAPPING_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<POLICY_MAPPING> >Pointer< )POLICY_MAPPING> > -
sk_POLICY_MAPPING_copy_func
= Pointer<
NativeFunction< sk_POLICY_MAPPING_copy_funcFunction> > -
sk_POLICY_MAPPING_copy_funcFunction
= Pointer<
POLICY_MAPPING> Function(Pointer<POLICY_MAPPING> ) -
sk_POLICY_MAPPING_delete_if_func
= Pointer<
NativeFunction< sk_POLICY_MAPPING_delete_if_funcFunction> > -
sk_POLICY_MAPPING_delete_if_funcFunction
= Int Function(Pointer<
POLICY_MAPPING> , Pointer<Void> ) -
sk_POLICY_MAPPING_free_func
= Pointer<
NativeFunction< sk_POLICY_MAPPING_free_funcFunction> > -
sk_POLICY_MAPPING_free_funcFunction
= Void Function(Pointer<
POLICY_MAPPING> ) -
sk_POLICYINFO_cmp_func
= Pointer<
NativeFunction< sk_POLICYINFO_cmp_funcFunction> > -
sk_POLICYINFO_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<POLICYINFO> >Pointer< )POLICYINFO> > -
sk_POLICYINFO_copy_func
= Pointer<
NativeFunction< sk_POLICYINFO_copy_funcFunction> > -
sk_POLICYINFO_copy_funcFunction
= Pointer<
POLICYINFO> Function(Pointer<POLICYINFO> ) -
sk_POLICYINFO_delete_if_func
= Pointer<
NativeFunction< sk_POLICYINFO_delete_if_funcFunction> > -
sk_POLICYINFO_delete_if_funcFunction
= Int Function(Pointer<
POLICYINFO> , Pointer<Void> ) -
sk_POLICYINFO_free_func
= Pointer<
NativeFunction< sk_POLICYINFO_free_funcFunction> > -
sk_POLICYINFO_free_funcFunction
= Void Function(Pointer<
POLICYINFO> ) -
sk_POLICYQUALINFO_cmp_func
= Pointer<
NativeFunction< sk_POLICYQUALINFO_cmp_funcFunction> > -
sk_POLICYQUALINFO_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<POLICYQUALINFO> >Pointer< )POLICYQUALINFO> > -
sk_POLICYQUALINFO_copy_func
= Pointer<
NativeFunction< sk_POLICYQUALINFO_copy_funcFunction> > -
sk_POLICYQUALINFO_copy_funcFunction
= Pointer<
POLICYQUALINFO> Function(Pointer<POLICYQUALINFO> ) -
sk_POLICYQUALINFO_delete_if_func
= Pointer<
NativeFunction< sk_POLICYQUALINFO_delete_if_funcFunction> > -
sk_POLICYQUALINFO_delete_if_funcFunction
= Int Function(Pointer<
POLICYQUALINFO> , Pointer<Void> ) -
sk_POLICYQUALINFO_free_func
= Pointer<
NativeFunction< sk_POLICYQUALINFO_free_funcFunction> > -
sk_POLICYQUALINFO_free_funcFunction
= Void Function(Pointer<
POLICYQUALINFO> ) -
sk_void_cmp_func
= Pointer<
NativeFunction< OPENSSL_sk_cmp_funcFunction> > -
sk_void_cmp_funcFunction
= Int Function(Pointer<
Pointer< a, Pointer<Void> >Pointer< b)Void> > -
sk_void_copy_func
= Pointer<
NativeFunction< OPENSSL_sk_copy_funcFunction> > -
sk_void_copy_funcFunction
= Pointer<
Void> Function(Pointer<Void> ptr) -
sk_void_delete_if_func
= Pointer<
NativeFunction< OPENSSL_sk_delete_if_funcFunction> > -
sk_void_delete_if_funcFunction
= Int Function(Pointer<
Void> obj, Pointer<Void> data) -
sk_void_free_func
= Pointer<
NativeFunction< OPENSSL_sk_free_funcFunction> > -
We also disable -Wcast-qual. As part of this C-based type erasure setup,
the wrapper macros need to cast away const in places. In C++, const_cast
suppresses the warning, but it seemingly cannot be suppressed in C. -
sk_void_free_funcFunction
= Void Function(Pointer<
Void> ptr) -
sk_X509_ALGOR_cmp_func
= Pointer<
NativeFunction< sk_X509_ALGOR_cmp_funcFunction> > -
sk_X509_ALGOR_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_ALGOR> >Pointer< )X509_ALGOR> > -
sk_X509_ALGOR_copy_func
= Pointer<
NativeFunction< sk_X509_ALGOR_copy_funcFunction> > -
sk_X509_ALGOR_copy_funcFunction
= Pointer<
X509_ALGOR> Function(Pointer<X509_ALGOR> alg) -
sk_X509_ALGOR_delete_if_func
= Pointer<
NativeFunction< sk_X509_ALGOR_delete_if_funcFunction> > -
sk_X509_ALGOR_delete_if_funcFunction
= Int Function(Pointer<
X509_ALGOR> , Pointer<Void> ) -
sk_X509_ALGOR_free_func
= Pointer<
NativeFunction< sk_X509_ALGOR_free_funcFunction> > -
sk_X509_ALGOR_free_funcFunction
= Void Function(Pointer<
X509_ALGOR> ) -
sk_X509_ATTRIBUTE_cmp_func
= Pointer<
NativeFunction< sk_X509_ATTRIBUTE_cmp_funcFunction> > -
sk_X509_ATTRIBUTE_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_ATTRIBUTE> >Pointer< )X509_ATTRIBUTE> > -
sk_X509_ATTRIBUTE_copy_func
= Pointer<
NativeFunction< sk_X509_ATTRIBUTE_copy_funcFunction> > -
sk_X509_ATTRIBUTE_copy_funcFunction
= Pointer<
X509_ATTRIBUTE> Function(Pointer<X509_ATTRIBUTE> attr) -
sk_X509_ATTRIBUTE_delete_if_func
= Pointer<
NativeFunction< sk_X509_ATTRIBUTE_delete_if_funcFunction> > -
sk_X509_ATTRIBUTE_delete_if_funcFunction
= Int Function(Pointer<
X509_ATTRIBUTE> , Pointer<Void> ) -
sk_X509_ATTRIBUTE_free_func
= Pointer<
NativeFunction< sk_X509_ATTRIBUTE_free_funcFunction> > -
sk_X509_ATTRIBUTE_free_funcFunction
= Void Function(Pointer<
X509_ATTRIBUTE> ) -
sk_X509_cmp_func
= Pointer<
NativeFunction< sk_X509_cmp_funcFunction> > -
sk_X509_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509> >Pointer< )X509> > -
sk_X509_copy_func
= Pointer<
NativeFunction< sk_X509_copy_funcFunction> > -
sk_X509_copy_funcFunction
= Pointer<
X509> Function(Pointer<X509> x509) -
sk_X509_CRL_cmp_func
= Pointer<
NativeFunction< sk_X509_CRL_cmp_funcFunction> > -
sk_X509_CRL_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_CRL> >Pointer< )X509_CRL> > -
sk_X509_CRL_copy_func
= Pointer<
NativeFunction< sk_X509_CRL_copy_funcFunction> > -
sk_X509_CRL_copy_funcFunction
= Pointer<
X509_CRL> Function(Pointer<X509_CRL> crl) -
sk_X509_CRL_delete_if_func
= Pointer<
NativeFunction< sk_X509_CRL_delete_if_funcFunction> > -
sk_X509_CRL_delete_if_funcFunction
= Int Function(Pointer<
X509_CRL> , Pointer<Void> ) -
sk_X509_CRL_free_func
= Pointer<
NativeFunction< sk_X509_CRL_free_funcFunction> > - Certificate revocation lists.
-
sk_X509_CRL_free_funcFunction
= Void Function(Pointer<
X509_CRL> ) -
sk_X509_delete_if_func
= Pointer<
NativeFunction< sk_X509_delete_if_funcFunction> > -
sk_X509_delete_if_funcFunction
= Int Function(Pointer<
X509> , Pointer<Void> ) -
sk_X509_EXTENSION_cmp_func
= Pointer<
NativeFunction< sk_X509_EXTENSION_cmp_funcFunction> > -
sk_X509_EXTENSION_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_EXTENSION> >Pointer< )X509_EXTENSION> > -
sk_X509_EXTENSION_copy_func
= Pointer<
NativeFunction< sk_X509_EXTENSION_copy_funcFunction> > -
sk_X509_EXTENSION_copy_funcFunction
= Pointer<
X509_EXTENSION> Function(Pointer<X509_EXTENSION> ex) -
sk_X509_EXTENSION_delete_if_func
= Pointer<
NativeFunction< sk_X509_EXTENSION_delete_if_funcFunction> > -
sk_X509_EXTENSION_delete_if_funcFunction
= Int Function(Pointer<
X509_EXTENSION> , Pointer<Void> ) -
sk_X509_EXTENSION_free_func
= Pointer<
NativeFunction< sk_X509_EXTENSION_free_funcFunction> > -
sk_X509_EXTENSION_free_funcFunction
= Void Function(Pointer<
X509_EXTENSION> ) -
sk_X509_free_func
= Pointer<
NativeFunction< sk_X509_free_funcFunction> > - Certificates.
-
sk_X509_free_funcFunction
= Void Function(Pointer<
X509> ) -
sk_X509_INFO_cmp_func
= Pointer<
NativeFunction< sk_X509_INFO_cmp_funcFunction> > -
sk_X509_INFO_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_INFO> >Pointer< )X509_INFO> > -
sk_X509_INFO_copy_func
= Pointer<
NativeFunction< sk_X509_INFO_copy_funcFunction> > -
sk_X509_INFO_copy_funcFunction
= Pointer<
X509_INFO> Function(Pointer<X509_INFO> ) -
sk_X509_INFO_delete_if_func
= Pointer<
NativeFunction< sk_X509_INFO_delete_if_funcFunction> > -
sk_X509_INFO_delete_if_funcFunction
= Int Function(Pointer<
X509_INFO> , Pointer<Void> ) -
sk_X509_INFO_free_func
= Pointer<
NativeFunction< sk_X509_INFO_free_funcFunction> > -
sk_X509_INFO_free_funcFunction
= Void Function(Pointer<
X509_INFO> ) -
sk_X509_NAME_cmp_func
= Pointer<
NativeFunction< sk_X509_NAME_cmp_funcFunction> > -
sk_X509_NAME_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_NAME> >Pointer< )X509_NAME> > -
sk_X509_NAME_copy_func
= Pointer<
NativeFunction< sk_X509_NAME_copy_funcFunction> > -
sk_X509_NAME_copy_funcFunction
= Pointer<
X509_NAME> Function(Pointer<X509_NAME> name) -
sk_X509_NAME_delete_if_func
= Pointer<
NativeFunction< sk_X509_NAME_delete_if_funcFunction> > -
sk_X509_NAME_delete_if_funcFunction
= Int Function(Pointer<
X509_NAME> , Pointer<Void> ) -
sk_X509_NAME_ENTRY_cmp_func
= Pointer<
NativeFunction< sk_X509_NAME_ENTRY_cmp_funcFunction> > -
sk_X509_NAME_ENTRY_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_NAME_ENTRY> >Pointer< )X509_NAME_ENTRY> > -
sk_X509_NAME_ENTRY_copy_func
= Pointer<
NativeFunction< sk_X509_NAME_ENTRY_copy_funcFunction> > -
sk_X509_NAME_ENTRY_copy_funcFunction
= Pointer<
X509_NAME_ENTRY> Function(Pointer<X509_NAME_ENTRY> entry) -
sk_X509_NAME_ENTRY_delete_if_func
= Pointer<
NativeFunction< sk_X509_NAME_ENTRY_delete_if_funcFunction> > -
sk_X509_NAME_ENTRY_delete_if_funcFunction
= Int Function(Pointer<
X509_NAME_ENTRY> , Pointer<Void> ) -
sk_X509_NAME_ENTRY_free_func
= Pointer<
NativeFunction< sk_X509_NAME_ENTRY_free_funcFunction> > -
sk_X509_NAME_ENTRY_free_funcFunction
= Void Function(Pointer<
X509_NAME_ENTRY> ) -
sk_X509_NAME_free_func
= Pointer<
NativeFunction< sk_X509_NAME_free_funcFunction> > -
sk_X509_NAME_free_funcFunction
= Void Function(Pointer<
X509_NAME> ) -
sk_X509_OBJECT_cmp_func
= Pointer<
NativeFunction< sk_X509_OBJECT_cmp_funcFunction> > -
sk_X509_OBJECT_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_OBJECT> >Pointer< )X509_OBJECT> > -
sk_X509_OBJECT_copy_func
= Pointer<
NativeFunction< sk_X509_OBJECT_copy_funcFunction> > -
sk_X509_OBJECT_copy_funcFunction
= Pointer<
X509_OBJECT> Function(Pointer<X509_OBJECT> ) -
sk_X509_OBJECT_delete_if_func
= Pointer<
NativeFunction< sk_X509_OBJECT_delete_if_funcFunction> > -
sk_X509_OBJECT_delete_if_funcFunction
= Int Function(Pointer<
X509_OBJECT> , Pointer<Void> ) -
sk_X509_OBJECT_free_func
= Pointer<
NativeFunction< sk_X509_OBJECT_free_funcFunction> > -
sk_X509_OBJECT_free_funcFunction
= Void Function(Pointer<
X509_OBJECT> ) -
sk_X509_REVOKED_cmp_func
= Pointer<
NativeFunction< sk_X509_REVOKED_cmp_funcFunction> > -
sk_X509_REVOKED_cmp_funcFunction
= Int Function(Pointer<
Pointer< , Pointer<X509_REVOKED> >Pointer< )X509_REVOKED> > -
sk_X509_REVOKED_copy_func
= Pointer<
NativeFunction< sk_X509_REVOKED_copy_funcFunction> > -
sk_X509_REVOKED_copy_funcFunction
= Pointer<
X509_REVOKED> Function(Pointer<X509_REVOKED> rev) -
sk_X509_REVOKED_delete_if_func
= Pointer<
NativeFunction< sk_X509_REVOKED_delete_if_funcFunction> > -
sk_X509_REVOKED_delete_if_funcFunction
= Int Function(Pointer<
X509_REVOKED> , Pointer<Void> ) -
sk_X509_REVOKED_free_func
= Pointer<
NativeFunction< sk_X509_REVOKED_free_funcFunction> > -
sk_X509_REVOKED_free_funcFunction
= Void Function(Pointer<
X509_REVOKED> ) - SPAKE2_CTX = spake2_ctx_st
- SRTP_PROTECTION_PROFILE = srtp_protection_profile_st
- SSL = ssl_st
- SSL_CIPHER = ssl_cipher_st
- SSL_CLIENT_HELLO = ssl_early_callback_ctx
- SSL_CREDENTIAL = ssl_credential_st
- SSL_CTX = ssl_ctx_st
- SSL_ECH_KEYS = ssl_ech_keys_st
- SSL_METHOD = ssl_method_st
- SSL_PRIVATE_KEY_METHOD = ssl_private_key_method_st
- SSL_QUIC_METHOD = ssl_quic_method_st
- SSL_SESSION = ssl_session_st
- SSL_TICKET_AEAD_METHOD = ssl_ticket_aead_method_st
- time_t = Long
- TRUST_TOKEN = trust_token_st
- TRUST_TOKEN_CLIENT = trust_token_client_st
- TRUST_TOKEN_ISSUER = trust_token_issuer_st
- TRUST_TOKEN_METHOD = trust_token_method_st
- USERNOTICE = USERNOTICE_st
- X509 = x509_st
- X509_ALGOR = X509_algor_st
- X509_ATTRIBUTE = x509_attributes_st
- X509_CRL = X509_crl_st
- X509_EXTENSION = X509_extension_st
- X509_EXTENSIONS = stack_st_X509_EXTENSION
- X509_INFO = X509_info_st
- X509_LOOKUP = x509_lookup_st
- X509_LOOKUP_METHOD = x509_lookup_method_st
- X509_NAME = X509_name_st
- X509_NAME_ENTRY = X509_name_entry_st
- X509_OBJECT = x509_object_st
- X509_PKEY = private_key_st
- X509_PUBKEY = X509_pubkey_st
- X509_PURPOSE = x509_purpose_st
- X509_REQ = X509_req_st
- X509_REVOKED = x509_revoked_st
- X509_SIG = X509_sig_st
- X509_STORE = x509_store_st
- X509_STORE_CTX = x509_store_ctx_st
-
X509_STORE_CTX_verify_cb
= Pointer<
NativeFunction< Int Function(Int ok, Pointer< >X509_STORE_CTX> ctx)> -
X509_STORE_CTX_verify_cbFunction
= Int Function(Int ok, Pointer<
X509_STORE_CTX> ctx) - X509_VERIFY_PARAM = X509_VERIFY_PARAM_st
- X509V3_CTX = v3_ext_ctx
-
X509V3_EXT_D2I
= Pointer<
NativeFunction< X509V3_EXT_D2IFunction> > -
X509V3_EXT_D2IFunction
= Pointer<
Void> Function(Pointer<Void> ext, Pointer<Pointer< inp, Long len)Uint8> > -
X509V3_EXT_FREE
= Pointer<
NativeFunction< OPENSSL_sk_free_funcFunction> > -
X509V3_EXT_FREEFunction
= Void Function(Pointer<
Void> ptr) -
X509V3_EXT_I2D
= Pointer<
NativeFunction< X509V3_EXT_I2DFunction> > -
X509V3_EXT_I2DFunction
= Int Function(Pointer<
Void> ext, Pointer<Pointer< outp)Uint8> > -
X509V3_EXT_I2R
= Pointer<
NativeFunction< X509V3_EXT_I2RFunction> > -
X509V3_EXT_I2RFunction
= Int Function(Pointer<
X509V3_EXT_METHOD> method, Pointer<Void> ext, Pointer<BIO> out, Int indent) -
X509V3_EXT_I2S
= Pointer<
NativeFunction< X509V3_EXT_I2SFunction> > -
X509V3_EXT_I2SFunction
= Pointer<
Char> Function(Pointer<X509V3_EXT_METHOD> method, Pointer<Void> ext) -
X509V3_EXT_I2V
= Pointer<
NativeFunction< X509V3_EXT_I2VFunction> > -
X509V3_EXT_I2VFunction
= Pointer<
stack_st_CONF_VALUE> Function(Pointer<X509V3_EXT_METHOD> method, Pointer<Void> ext, Pointer<stack_st_CONF_VALUE> extlist) - X509V3_EXT_METHOD = v3_ext_method
-
X509V3_EXT_NEW
= Pointer<
NativeFunction< X509V3_EXT_NEWFunction> > -
The following function pointer types are used in
X509V3_EXT_METHOD. -
X509V3_EXT_NEWFunction
= Pointer<
Void> Function() -
X509V3_EXT_R2I
= Pointer<
NativeFunction< X509V3_EXT_R2IFunction> > -
X509V3_EXT_R2IFunction
= Pointer<
Void> Function(Pointer<X509V3_EXT_METHOD> method, Pointer<X509V3_CTX> ctx, Pointer<Char> str) -
X509V3_EXT_S2I
= Pointer<
NativeFunction< X509V3_EXT_R2IFunction> > -
X509V3_EXT_S2IFunction
= Pointer<
Void> Function(Pointer<X509V3_EXT_METHOD> method, Pointer<X509V3_CTX> ctx, Pointer<Char> str) -
X509V3_EXT_V2I
= Pointer<
NativeFunction< X509V3_EXT_V2IFunction> > -
X509V3_EXT_V2IFunction
= Pointer<
Void> Function(Pointer<X509V3_EXT_METHOD> method, Pointer<X509V3_CTX> ctx, Pointer<stack_st_CONF_VALUE> values)