|
|
@ -4,8 +4,8 @@ |
|
|
|
|
|
|
|
EVP_KDF, EVP_KDF_fetch, EVP_KDF_free, EVP_KDF_up_ref, |
|
|
|
EVP_KDF_CTX, EVP_KDF_CTX_new, EVP_KDF_CTX_free, EVP_KDF_CTX_dup, |
|
|
|
EVP_KDF_reset, EVP_KDF_derive, |
|
|
|
EVP_KDF_size, EVP_KDF_provider, EVP_KDF_CTX_kdf, EVP_KDF_is_a, |
|
|
|
EVP_KDF_CTX_reset, EVP_KDF_derive, |
|
|
|
EVP_KDF_CTX_get_kdf_size, EVP_KDF_provider, EVP_KDF_CTX_kdf, EVP_KDF_is_a, |
|
|
|
EVP_KDF_number, EVP_KDF_name, EVP_KDF_names_do_all, |
|
|
|
EVP_KDF_CTX_get_params, EVP_KDF_CTX_set_params, EVP_KDF_do_all_provided, |
|
|
|
EVP_KDF_get_params, EVP_KDF_gettable_ctx_params, EVP_KDF_settable_ctx_params, |
|
|
@ -22,8 +22,8 @@ EVP_KDF_gettable_params - EVP KDF routines |
|
|
|
const EVP_KDF *EVP_KDF_CTX_kdf(EVP_KDF_CTX *ctx); |
|
|
|
void EVP_KDF_CTX_free(EVP_KDF_CTX *ctx); |
|
|
|
EVP_KDF_CTX *EVP_KDF_CTX_dup(const EVP_KDF_CTX *src); |
|
|
|
void EVP_KDF_reset(EVP_KDF_CTX *ctx); |
|
|
|
size_t EVP_KDF_size(EVP_KDF_CTX *ctx); |
|
|
|
void EVP_KDF_CTX_reset(EVP_KDF_CTX *ctx); |
|
|
|
size_t EVP_KDF_CTX_get_kdf_size(EVP_KDF_CTX *ctx); |
|
|
|
int EVP_KDF_derive(EVP_KDF_CTX *ctx, unsigned char *key, size_t keylen); |
|
|
|
int EVP_KDF_up_ref(EVP_KDF *kdf); |
|
|
|
void EVP_KDF_free(EVP_KDF *kdf); |
|
|
@ -99,7 +99,7 @@ had just been created. |
|
|
|
EVP_KDF_derive() derives I<keylen> bytes of key material and places it in the |
|
|
|
I<key> buffer. If the algorithm produces a fixed amount of output then an |
|
|
|
error will occur unless the I<keylen> parameter is equal to that output size, |
|
|
|
as returned by EVP_KDF_size(). |
|
|
|
as returned by EVP_KDF_CTX_get_kdf_size(). |
|
|
|
|
|
|
|
EVP_KDF_get_params() retrieves details about the implementation |
|
|
|
I<kdf>. |
|
|
@ -133,7 +133,7 @@ See L<OSSL_PARAM(3)> for the use of B<OSSL_PARAM> as parameter descriptor. |
|
|
|
|
|
|
|
=head2 Information functions |
|
|
|
|
|
|
|
EVP_KDF_size() returns the output size if the algorithm produces a fixed amount |
|
|
|
EVP_KDF_CTX_get_kdf_size() returns the output size if the algorithm produces a fixed amount |
|
|
|
of output and B<SIZE_MAX> otherwise. If an error occurs then 0 is returned. |
|
|
|
For some algorithms an error may result if input parameters necessary to |
|
|
|
calculate a fixed output size have not yet been supplied. |
|
|
@ -247,7 +247,7 @@ B<EVP_KDF_CTX> structure or NULL if an error occurred. |
|
|
|
|
|
|
|
EVP_KDF_CTX_free() and EVP_KDF_reset() do not return a value. |
|
|
|
|
|
|
|
EVP_KDF_size() returns the output size. B<SIZE_MAX> is returned to indicate |
|
|
|
EVP_KDF_CTX_get_kdf_size() returns the output size. B<SIZE_MAX> is returned to indicate |
|
|
|
that the algorithm produces a variable amount of output; 0 to indicate failure. |
|
|
|
|
|
|
|
EVP_KDF_name() returns the name of the KDF, or NULL on error. |
|
|
|