EVP_CIPHER_meth_set_set_asn1_params

Set the ASN.1 parameter-encoding callback on a custom EVP_CIPHER method (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
int
EVP_CIPHER_meth_set_set_asn1_params(
    EVP_CIPHER* cipher,
    int(* set_asn1_parameters)(EVP_CIPHER_CTX*, ASN1_TYPE*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cipherCipher method under construction.
set_asn1_parametersCallback that writes algorithm parameters from ctx into an ASN1_TYPE.