]>
Commit | Line | Data |
---|---|---|
ccd82ef4 MC |
1 | =pod |
2 | ||
3 | =head1 NAME | |
4 | ||
44ab2dfd MC |
5 | EVP_CIPHER_CTX_get_cipher_data, EVP_CIPHER_CTX_set_cipher_data - Routines to |
6 | inspect and modify EVP_CIPHER_CTX objects | |
ccd82ef4 MC |
7 | |
8 | =head1 SYNOPSIS | |
9 | ||
10 | #include <openssl/evp.h> | |
11 | ||
44ab2dfd | 12 | void *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx); |
ccd82ef4 MC |
13 | void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data); |
14 | ||
15 | =head1 DESCRIPTION | |
16 | ||
44ab2dfd MC |
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 | |
ccd82ef4 MC |
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). | |
23 | ||
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(). | |
28 | ||
29 | =head1 RETURN VALUES | |
30 | ||
44ab2dfd | 31 | The EVP_CIPHER_CTX_get_cipher_data() function returns a pointer to the current |
ccd82ef4 MC |
32 | cipher data for the EVP_CIPHER_CTX. |
33 | ||
34 | The EVP_CIPHER_CTX_set_cipher_data() function returns a pointer to the old | |
35 | cipher data for the EVP_CIPHER_CTX. | |
36 | ||
37 | =head1 HISTORY | |
38 | ||
44ab2dfd MC |
39 | The EVP_CIPHER_CTX_get_cipher_data() and EVP_CIPHER_CTX_set_cipher_data() |
40 | functions were added in OpenSSL 1.1.0. | |
ccd82ef4 | 41 | |
e2f92610 RS |
42 | =head1 COPYRIGHT |
43 | ||
44 | Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. | |
45 | ||
4746f25a | 46 | Licensed under the Apache License 2.0 (the "License"). You may not use |
e2f92610 RS |
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>. | |
50 | ||
51 | =cut |