Blame doc/man3/EVP_PKEY_CTX_set1_pbe_pass.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
EVP_PKEY_CTX_set1_pbe_pass
Packit c4476c
- generic KDF support functions
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/kdf.h>
Packit c4476c
Packit c4476c
 int EVP_PKEY_CTX_set1_pbe_pass(EVP_PKEY_CTX *pctx, unsigned char *pass,
Packit c4476c
                                int passlen);
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
These functions are generic support functions for all KDF algorithms.
Packit c4476c
Packit c4476c
EVP_PKEY_CTX_set1_pbe_pass() sets the password to the B<passlen> first
Packit c4476c
bytes from B<pass>.
Packit c4476c
Packit c4476c
=begin comment
Packit c4476c
Packit c4476c
We really should have a few more, such as EVP_PKEY_CTX_set1_kdf_salt,
Packit c4476c
EVP_PKEY_CTX_set1_kdf_key (to be used by the algorithms that use a
Packit c4476c
key, such as hkdf), EVP_PKEY_CTX_set1_kdf_md (same thing here).
Packit c4476c
Packit c4476c
=end comment
Packit c4476c
Packit c4476c
=head1 STRING CTRLS
Packit c4476c
Packit c4476c
There is also support for string based control operations via
Packit c4476c
L<EVP_PKEY_CTX_ctrl_str(3)>.
Packit c4476c
The B<password> can be directly specified using the B<type> parameter
Packit c4476c
"pass" or given in hex encoding using the "hexpass" parameter.
Packit c4476c
Packit c4476c
=begin comment
Packit c4476c
Packit c4476c
Just as for the function description, the strings "salt", "hexsalt",
Packit c4476c
"key", "hexkey" and "md" should be generically specified, and
Packit c4476c
supported by the algorithms that use them.
Packit c4476c
Packit c4476c
=end comment
Packit c4476c
Packit c4476c
=head1 NOTES
Packit c4476c
Packit c4476c
All these functions are implemented as macros.
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
All these functions return 1 for success and 0 or a negative value for failure.
Packit c4476c
In particular a return value of -2 indicates the operation is not supported by
Packit c4476c
the public key algorithm.
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<EVP_PKEY_CTX_new(3)>,
Packit c4476c
L<EVP_PKEY_CTX_ctrl_str(3)>,
Packit c4476c
L<EVP_PKEY_derive(3)>
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut