EVP_CIPHER_meth_set_do_cipher

Set the encrypt/decrypt update callback on a custom EVP_CIPHER (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
int
EVP_CIPHER_meth_set_do_cipher(
    EVP_CIPHER* cipher,
    int(* do_cipher)(EVP_CIPHER_CTX*, unsigned char*, unsigned char const*, size_t));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cipherCustom cipher method to update.
do_cipherCallback that transforms inl bytes from in to out, or NULL to clear.