Set the key/IV initialization callback on a custom EVP_CIPHER (deprecated).
Declared in <openssl/evp.h>
[[deprecated]]
int
EVP_CIPHER_meth_set_init(
EVP_CIPHER* cipher,
int(* init)(EVP_CIPHER_CTX*, unsigned char const*, unsigned char const*, int));
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| cipher | Custom cipher method to update. |
| init | Callback that prepares ctx for encrypt or decrypt, or NULL to clear. |