2019-07-25 18:55:00 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
provider-cipher - The cipher library E<lt>-E<gt> provider functions
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2019-09-29 23:10:59 +08:00
|
|
|
=for openssl multiple includes
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:21:19 +08:00
|
|
|
#include <openssl/core_dispatch.h>
|
2019-07-25 18:55:00 +08:00
|
|
|
#include <openssl/core_names.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* None of these are actual functions, but are displayed like this for
|
|
|
|
* the function signatures for functions that are offered as function
|
|
|
|
* pointers in OSSL_DISPATCH arrays.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Context management */
|
2020-06-21 07:19:16 +08:00
|
|
|
void *OSSL_FUNC_cipher_newctx(void *provctx);
|
|
|
|
void OSSL_FUNC_cipher_freectx(void *cctx);
|
|
|
|
void *OSSL_FUNC_cipher_dupctx(void *cctx);
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
/* Encryption/decryption */
|
2020-06-21 07:19:16 +08:00
|
|
|
int OSSL_FUNC_cipher_encrypt_init(void *cctx, const unsigned char *key,
|
|
|
|
size_t keylen, const unsigned char *iv,
|
2021-03-03 09:26:51 +08:00
|
|
|
size_t ivlen, const OSSL_PARAM params[]);
|
2020-06-21 07:19:16 +08:00
|
|
|
int OSSL_FUNC_cipher_decrypt_init(void *cctx, const unsigned char *key,
|
|
|
|
size_t keylen, const unsigned char *iv,
|
2021-03-03 09:26:51 +08:00
|
|
|
size_t ivlen, const OSSL_PARAM params[]);
|
2020-06-21 07:19:16 +08:00
|
|
|
int OSSL_FUNC_cipher_update(void *cctx, unsigned char *out, size_t *outl,
|
|
|
|
size_t outsize, const unsigned char *in, size_t inl);
|
|
|
|
int OSSL_FUNC_cipher_final(void *cctx, unsigned char *out, size_t *outl,
|
|
|
|
size_t outsize);
|
|
|
|
int OSSL_FUNC_cipher_cipher(void *cctx, unsigned char *out, size_t *outl,
|
|
|
|
size_t outsize, const unsigned char *in, size_t inl);
|
2019-07-25 18:55:00 +08:00
|
|
|
|
Add missing EVP param utility functions
These functions were missing for a completes API:
EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(),
and EVP_CIPHER_CTX_get_params
Additionally, we also add all the corresponding parameter descriptor
returning functions, along the correspoding provider dispatches:
EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(),
EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(),
EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9576)
2019-08-12 20:56:18 +08:00
|
|
|
/* Cipher parameter descriptors */
|
2020-08-05 11:24:04 +08:00
|
|
|
const OSSL_PARAM *OSSL_FUNC_cipher_gettable_params(void *provctx);
|
Add missing EVP param utility functions
These functions were missing for a completes API:
EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(),
and EVP_CIPHER_CTX_get_params
Additionally, we also add all the corresponding parameter descriptor
returning functions, along the correspoding provider dispatches:
EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(),
EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(),
EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9576)
2019-08-12 20:56:18 +08:00
|
|
|
|
2019-09-05 09:23:57 +08:00
|
|
|
/* Cipher operation parameter descriptors */
|
2021-02-23 09:49:20 +08:00
|
|
|
const OSSL_PARAM *OSSL_FUNC_cipher_gettable_ctx_params(void *cctx,
|
|
|
|
void *provctx);
|
|
|
|
const OSSL_PARAM *OSSL_FUNC_cipher_settable_ctx_params(void *cctx,
|
|
|
|
void *provctx);
|
Add missing EVP param utility functions
These functions were missing for a completes API:
EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(),
and EVP_CIPHER_CTX_get_params
Additionally, we also add all the corresponding parameter descriptor
returning functions, along the correspoding provider dispatches:
EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(),
EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(),
EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9576)
2019-08-12 20:56:18 +08:00
|
|
|
|
2019-07-25 18:55:00 +08:00
|
|
|
/* Cipher parameters */
|
2020-06-21 07:19:16 +08:00
|
|
|
int OSSL_FUNC_cipher_get_params(OSSL_PARAM params[]);
|
Add missing EVP param utility functions
These functions were missing for a completes API:
EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(),
and EVP_CIPHER_CTX_get_params
Additionally, we also add all the corresponding parameter descriptor
returning functions, along the correspoding provider dispatches:
EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(),
EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(),
EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9576)
2019-08-12 20:56:18 +08:00
|
|
|
|
|
|
|
/* Cipher operation parameters */
|
2020-06-21 07:19:16 +08:00
|
|
|
int OSSL_FUNC_cipher_get_ctx_params(void *cctx, OSSL_PARAM params[]);
|
|
|
|
int OSSL_FUNC_cipher_set_ctx_params(void *cctx, const OSSL_PARAM params[]);
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
This documentation is primarily aimed at provider authors. See L<provider(7)>
|
|
|
|
for further information.
|
|
|
|
|
|
|
|
The CIPHER operation enables providers to implement cipher algorithms and make
|
|
|
|
them available to applications via the API functions L<EVP_EncryptInit_ex(3)>,
|
|
|
|
L<EVP_EncryptUpdate(3)> and L<EVP_EncryptFinal(3)> (as well as the decrypt
|
|
|
|
equivalents and other related functions).
|
|
|
|
|
|
|
|
All "functions" mentioned here are passed as function pointers between
|
2022-12-05 23:59:06 +08:00
|
|
|
F<libcrypto> and the provider in L<OSSL_DISPATCH(3)> arrays via
|
|
|
|
L<OSSL_ALGORITHM(3)> arrays that are returned by the provider's
|
2019-07-25 18:55:00 +08:00
|
|
|
provider_query_operation() function
|
|
|
|
(see L<provider-base(7)/Provider Functions>).
|
|
|
|
|
|
|
|
All these "functions" have a corresponding function type definition
|
2021-03-31 19:22:25 +08:00
|
|
|
named B<OSSL_FUNC_{name}_fn>, and a helper function to retrieve the
|
2022-12-05 23:59:06 +08:00
|
|
|
function pointer from an L<OSSL_DISPATCH(3)> element named
|
2020-06-21 07:19:16 +08:00
|
|
|
B<OSSL_FUNC_{name}>.
|
|
|
|
For example, the "function" OSSL_FUNC_cipher_newctx() has these:
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2022-04-06 22:20:47 +08:00
|
|
|
typedef void *(OSSL_FUNC_cipher_newctx_fn)(void *provctx);
|
|
|
|
static ossl_inline OSSL_FUNC_cipher_newctx_fn
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_newctx(const OSSL_DISPATCH *opf);
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2022-12-05 23:59:06 +08:00
|
|
|
L<OSSL_DISPATCH(3)> arrays are indexed by numbers that are provided as
|
2020-06-21 07:21:19 +08:00
|
|
|
macros in L<openssl-core_dispatch.h(7)>, as follows:
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_newctx OSSL_FUNC_CIPHER_NEWCTX
|
|
|
|
OSSL_FUNC_cipher_freectx OSSL_FUNC_CIPHER_FREECTX
|
|
|
|
OSSL_FUNC_cipher_dupctx OSSL_FUNC_CIPHER_DUPCTX
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_encrypt_init OSSL_FUNC_CIPHER_ENCRYPT_INIT
|
|
|
|
OSSL_FUNC_cipher_decrypt_init OSSL_FUNC_CIPHER_DECRYPT_INIT
|
|
|
|
OSSL_FUNC_cipher_update OSSL_FUNC_CIPHER_UPDATE
|
|
|
|
OSSL_FUNC_cipher_final OSSL_FUNC_CIPHER_FINAL
|
|
|
|
OSSL_FUNC_cipher_cipher OSSL_FUNC_CIPHER_CIPHER
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_get_params OSSL_FUNC_CIPHER_GET_PARAMS
|
|
|
|
OSSL_FUNC_cipher_get_ctx_params OSSL_FUNC_CIPHER_GET_CTX_PARAMS
|
|
|
|
OSSL_FUNC_cipher_set_ctx_params OSSL_FUNC_CIPHER_SET_CTX_PARAMS
|
Add missing EVP param utility functions
These functions were missing for a completes API:
EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(),
and EVP_CIPHER_CTX_get_params
Additionally, we also add all the corresponding parameter descriptor
returning functions, along the correspoding provider dispatches:
EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(),
EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(),
EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9576)
2019-08-12 20:56:18 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_gettable_params OSSL_FUNC_CIPHER_GETTABLE_PARAMS
|
|
|
|
OSSL_FUNC_cipher_gettable_ctx_params OSSL_FUNC_CIPHER_GETTABLE_CTX_PARAMS
|
|
|
|
OSSL_FUNC_cipher_settable_ctx_params OSSL_FUNC_CIPHER_SETTABLE_CTX_PARAMS
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
A cipher algorithm implementation may not implement all of these functions.
|
|
|
|
In order to be a consistent set of functions there must at least be a complete
|
|
|
|
set of "encrypt" functions, or a complete set of "decrypt" functions, or a
|
|
|
|
single "cipher" function.
|
2020-06-21 07:19:16 +08:00
|
|
|
In all cases both the OSSL_FUNC_cipher_newctx and OSSL_FUNC_cipher_freectx functions must be
|
2019-07-25 18:55:00 +08:00
|
|
|
present.
|
|
|
|
All other functions are optional.
|
|
|
|
|
|
|
|
=head2 Context Management Functions
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_newctx() should create and return a pointer to a provider side
|
2019-07-25 18:55:00 +08:00
|
|
|
structure for holding context information during a cipher operation.
|
|
|
|
A pointer to this context will be passed back in a number of the other cipher
|
|
|
|
operation function calls.
|
2019-09-27 19:26:22 +08:00
|
|
|
The parameter I<provctx> is the provider context generated during provider
|
2019-08-22 13:21:25 +08:00
|
|
|
initialisation (see L<provider(7)>).
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_freectx() is passed a pointer to the provider side cipher context in
|
2019-09-27 19:26:22 +08:00
|
|
|
the I<cctx> parameter.
|
2019-07-25 18:55:00 +08:00
|
|
|
This function should free any resources associated with that context.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_dupctx() should duplicate the provider side cipher context in the
|
2019-09-27 19:26:22 +08:00
|
|
|
I<cctx> parameter and return the duplicate copy.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
=head2 Encryption/Decryption Functions
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_encrypt_init() initialises a cipher operation for encryption given a
|
2019-09-27 19:26:22 +08:00
|
|
|
newly created provider side cipher context in the I<cctx> parameter.
|
|
|
|
The key to be used is given in I<key> which is I<keylen> bytes long.
|
|
|
|
The IV to be used is given in I<iv> which is I<ivlen> bytes long.
|
2021-03-03 09:26:51 +08:00
|
|
|
The I<params>, if not NULL, should be set on the context in a manner similar to
|
|
|
|
using OSSL_FUNC_cipher_set_ctx_params().
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_decrypt_init() is the same as OSSL_FUNC_cipher_encrypt_init() except that it
|
2019-07-25 18:55:00 +08:00
|
|
|
initialises the context for a decryption operation.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_update() is called to supply data to be encrypted/decrypted as part of
|
2019-07-25 18:55:00 +08:00
|
|
|
a previously initialised cipher operation.
|
2019-09-27 19:26:22 +08:00
|
|
|
The I<cctx> parameter contains a pointer to a previously initialised provider
|
2019-07-25 18:55:00 +08:00
|
|
|
side context.
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_update() should encrypt/decrypt I<inl> bytes of data at the location
|
2019-09-27 19:26:22 +08:00
|
|
|
pointed to by I<in>.
|
|
|
|
The encrypted data should be stored in I<out> and the amount of data written to
|
|
|
|
I<*outl> which should not exceed I<outsize> bytes.
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_update() may be called multiple times for a single cipher operation.
|
2019-07-25 18:55:00 +08:00
|
|
|
It is the responsibility of the cipher implementation to handle input lengths
|
|
|
|
that are not multiples of the block length.
|
|
|
|
In such cases a cipher implementation will typically cache partial blocks of
|
|
|
|
input data until a complete block is obtained.
|
2019-09-27 19:26:22 +08:00
|
|
|
I<out> may be the same location as I<in> but it should not partially overlap.
|
|
|
|
The same expectations apply to I<outsize> as documented for
|
2019-07-25 18:55:00 +08:00
|
|
|
L<EVP_EncryptUpdate(3)> and L<EVP_DecryptUpdate(3)>.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_final() completes an encryption or decryption started through previous
|
|
|
|
OSSL_FUNC_cipher_encrypt_init() or OSSL_FUNC_cipher_decrypt_init(), and OSSL_FUNC_cipher_update()
|
2019-07-25 18:55:00 +08:00
|
|
|
calls.
|
2019-09-27 19:26:22 +08:00
|
|
|
The I<cctx> parameter contains a pointer to the provider side context.
|
|
|
|
Any final encryption/decryption output should be written to I<out> and the
|
|
|
|
amount of data written to I<*outl> which should not exceed I<outsize> bytes.
|
|
|
|
The same expectations apply to I<outsize> as documented for
|
2019-07-25 18:55:00 +08:00
|
|
|
L<EVP_EncryptFinal(3)> and L<EVP_DecryptFinal(3)>.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_cipher() performs encryption/decryption using the provider side cipher
|
2019-09-27 19:26:22 +08:00
|
|
|
context in the I<cctx> parameter that should have been previously initialised via
|
2020-06-21 07:19:16 +08:00
|
|
|
a call to OSSL_FUNC_cipher_encrypt_init() or OSSL_FUNC_cipher_decrypt_init().
|
2019-07-25 18:55:00 +08:00
|
|
|
This should call the raw underlying cipher function without any padding.
|
|
|
|
This will be invoked in the provider as a result of the application calling
|
|
|
|
L<EVP_Cipher(3)>.
|
|
|
|
The application is responsible for ensuring that the input is a multiple of the
|
|
|
|
block length.
|
2019-09-27 19:26:22 +08:00
|
|
|
The data to be encrypted/decrypted will be in I<in>, and it will be I<inl> bytes
|
2019-07-25 18:55:00 +08:00
|
|
|
in length.
|
2019-09-27 19:26:22 +08:00
|
|
|
The output from the encryption/decryption should be stored in I<out> and the
|
|
|
|
amount of data stored should be put in I<*outl> which should be no more than
|
|
|
|
I<outsize> bytes.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
=head2 Cipher Parameters
|
|
|
|
|
|
|
|
See L<OSSL_PARAM(3)> for further details on the parameters structure used by
|
|
|
|
these functions.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_get_params() gets details of the algorithm implementation
|
2019-09-27 19:26:22 +08:00
|
|
|
and stores them in I<params>.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_set_ctx_params() sets cipher operation parameters for the
|
2019-09-27 19:26:22 +08:00
|
|
|
provider side cipher context I<cctx> to I<params>.
|
2019-07-25 18:55:00 +08:00
|
|
|
Any parameter settings are additional to any that were previously set.
|
2021-03-03 09:32:39 +08:00
|
|
|
Passing NULL for I<params> should return true.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_get_ctx_params() gets cipher operation details details from
|
2019-09-27 19:26:22 +08:00
|
|
|
the given provider side cipher context I<cctx> and stores them in I<params>.
|
2021-03-03 09:32:39 +08:00
|
|
|
Passing NULL for I<params> should return true.
|
Add missing EVP param utility functions
These functions were missing for a completes API:
EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(),
and EVP_CIPHER_CTX_get_params
Additionally, we also add all the corresponding parameter descriptor
returning functions, along the correspoding provider dispatches:
EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(),
EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(),
EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9576)
2019-08-12 20:56:18 +08:00
|
|
|
|
2021-02-23 09:49:20 +08:00
|
|
|
OSSL_FUNC_cipher_gettable_params(), OSSL_FUNC_cipher_gettable_ctx_params(),
|
2022-12-05 23:59:06 +08:00
|
|
|
and OSSL_FUNC_cipher_settable_ctx_params() all return constant L<OSSL_PARAM(3)>
|
2021-02-23 09:49:20 +08:00
|
|
|
arrays as descriptors of the parameters that OSSL_FUNC_cipher_get_params(),
|
|
|
|
OSSL_FUNC_cipher_get_ctx_params(), and OSSL_FUNC_cipher_set_ctx_params()
|
|
|
|
can handle, respectively. OSSL_FUNC_cipher_gettable_ctx_params() and
|
|
|
|
OSSL_FUNC_cipher_settable_ctx_params() will return the parameters associated
|
|
|
|
with the provider side context I<cctx> in its current state if it is
|
|
|
|
not NULL. Otherwise, they return the parameters associated with the
|
|
|
|
provider side algorithm I<provctx>.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
2021-05-22 10:29:18 +08:00
|
|
|
Parameters currently recognised by built-in ciphers are listed in
|
|
|
|
L<EVP_EncryptInit(3)/PARAMETERS>.
|
2021-05-22 10:37:11 +08:00
|
|
|
Not all parameters are relevant to, or are understood by all ciphers.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_newctx() and OSSL_FUNC_cipher_dupctx() should return the newly created
|
2019-07-25 18:55:00 +08:00
|
|
|
provider side cipher context, or NULL on failure.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_encrypt_init(), OSSL_FUNC_cipher_decrypt_init(), OSSL_FUNC_cipher_update(),
|
|
|
|
OSSL_FUNC_cipher_final(), OSSL_FUNC_cipher_cipher(), OSSL_FUNC_cipher_get_params(),
|
|
|
|
OSSL_FUNC_cipher_get_ctx_params() and OSSL_FUNC_cipher_set_ctx_params() should return 1 for
|
2019-07-25 18:55:00 +08:00
|
|
|
success or 0 on error.
|
|
|
|
|
2020-06-21 07:19:16 +08:00
|
|
|
OSSL_FUNC_cipher_gettable_params(), OSSL_FUNC_cipher_gettable_ctx_params() and
|
2022-12-05 23:59:06 +08:00
|
|
|
OSSL_FUNC_cipher_settable_ctx_params() should return a constant L<OSSL_PARAM(3)>
|
2019-08-19 07:30:59 +08:00
|
|
|
array, or NULL if none is offered.
|
|
|
|
|
2019-07-25 18:55:00 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2021-05-22 10:29:18 +08:00
|
|
|
L<provider(7)>, L<OSSL_PROVIDER-FIPS(7)>, L<OSSL_PROVIDER-default(7)>,
|
2021-06-07 13:14:25 +08:00
|
|
|
L<OSSL_PROVIDER-legacy(7)>,
|
|
|
|
L<EVP_CIPHER-AES(7)>, L<EVP_CIPHER-ARIA(7)>, L<EVP_CIPHER-BLOWFISH(7)>,
|
|
|
|
L<EVP_CIPHER-CAMELLIA(7)>, L<EVP_CIPHER-CAST(7)>, L<EVP_CIPHER-CHACHA(7)>,
|
|
|
|
L<EVP_CIPHER-DES(7)>, L<EVP_CIPHER-IDEA(7)>, L<EVP_CIPHER-RC2(7)>,
|
|
|
|
L<EVP_CIPHER-RC4(7)>, L<EVP_CIPHER-RC5(7)>, L<EVP_CIPHER-SEED(7)>,
|
2023-02-22 10:15:47 +08:00
|
|
|
L<EVP_CIPHER-SM4(7)>, L<EVP_CIPHER-NULL(7)>,
|
2021-06-07 13:14:25 +08:00
|
|
|
L<life_cycle-cipher(7)>, L<EVP_EncryptInit(3)>
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
=head1 HISTORY
|
|
|
|
|
|
|
|
The provider CIPHER interface was introduced in OpenSSL 3.0.
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2021-01-28 20:54:57 +08:00
|
|
|
Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2019-07-25 18:55:00 +08:00
|
|
|
|
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|