5 EVP_CIPHER_CTX_get_cipher_data, EVP_CIPHER_CTX_set_cipher_data - Routines to
6 inspect and modify EVP_CIPHER_CTX objects
10 #include <openssl/evp.h>
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);
17 The EVP_CIPHER_CTX_get_cipher_data() function returns a pointer to the cipher
18 data relevant to EVP_CIPHER_CTX. The contents of this data is specific to the
19 particular implementation of the cipher. For example this data can be used by
20 engines to store engine specific information. The data is automatically
21 allocated and freed by OpenSSL, so applications and engines should not normally
22 free this directly (but see below).
24 The EVP_CIPHER_CTX_set_cipher_data() function allows an application or engine to
25 replace the cipher data with new data. A pointer to any existing cipher data is
26 returned from this function. If the old data is no longer required then it
27 should be freed through a call to OPENSSL_free().
31 The EVP_CIPHER_CTX_get_cipher_data() function returns a pointer to the current
32 cipher data for the EVP_CIPHER_CTX.
34 The EVP_CIPHER_CTX_set_cipher_data() function returns a pointer to the old
35 cipher data for the EVP_CIPHER_CTX.
39 The EVP_CIPHER_CTX_get_cipher_data() and EVP_CIPHER_CTX_set_cipher_data()
40 functions were added in OpenSSL 1.1.0.
44 Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
46 Licensed under the OpenSSL license (the "License"). You may not use
47 this file except in compliance with the License. You can obtain a copy
48 in the file LICENSE in the source distribution or at
49 L<https://www.openssl.org/source/license.html>.