1EVP_CIPHER_CTX_GET_CIPHER_DATA(3ossl)OpenSSELVP_CIPHER_CTX_GET_CIPHER_DATA(3ossl)
2
3
4
6 EVP_CIPHER_CTX_get_cipher_data, EVP_CIPHER_CTX_set_cipher_data -
7 Routines to inspect and modify EVP_CIPHER_CTX objects
8
10 #include <openssl/evp.h>
11
12 void *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx);
13 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
14
16 The EVP_CIPHER_CTX_get_cipher_data() function returns a pointer to the
17 cipher data relevant to EVP_CIPHER_CTX. The contents of this data is
18 specific to the particular implementation of the cipher. For example
19 this data can be used by engines to store engine specific information.
20 The data is automatically allocated and freed by OpenSSL, so
21 applications and engines should not normally free this directly (but
22 see below).
23
24 The EVP_CIPHER_CTX_set_cipher_data() function allows an application or
25 engine to replace the cipher data with new data. A pointer to any
26 existing cipher data is returned from this function. If the old data is
27 no longer required then it should be freed through a call to
28 OPENSSL_free().
29
31 The EVP_CIPHER_CTX_get_cipher_data() function returns a pointer to the
32 current cipher data for the EVP_CIPHER_CTX.
33
34 The EVP_CIPHER_CTX_set_cipher_data() function returns a pointer to the
35 old cipher data for the EVP_CIPHER_CTX.
36
38 The EVP_CIPHER_CTX_get_cipher_data() and
39 EVP_CIPHER_CTX_set_cipher_data() functions were added in OpenSSL 1.1.0.
40
42 Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
43
44 Licensed under the Apache License 2.0 (the "License"). You may not use
45 this file except in compliance with the License. You can obtain a copy
46 in the file LICENSE in the source distribution or at
47 <https://www.openssl.org/source/license.html>.
48
49
50
513.0.5 2022-11-E0V1P_CIPHER_CTX_GET_CIPHER_DATA(3ossl)