]> git.ipfire.org Git - thirdparty/openssl.git/blob - doc/man3/EVP_PKEY_settable_params.pod
Update copyright year
[thirdparty/openssl.git] / doc / man3 / EVP_PKEY_settable_params.pod
1 =pod
2
3 =head1 NAME
4
5 EVP_PKEY_settable_params, EVP_PKEY_set_params,
6 EVP_PKEY_set_int_param, EVP_PKEY_set_size_t_param, EVP_PKEY_set_bn_param,
7 EVP_PKEY_set_utf8_string_param, EVP_PKEY_set_octet_string_param
8 - set key parameters into a key
9
10 =head1 SYNOPSIS
11
12 #include <openssl/evp.h>
13
14 const OSSL_PARAM *EVP_PKEY_settable_params(EVP_PKEY *pkey);
15 int EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]);
16 int EVP_PKEY_set_int_param(EVP_PKEY *pkey, const char *key_name, int in);
17 int EVP_PKEY_set_size_t_param(EVP_PKEY *pkey, const char *key_name, size_t in);
18 int EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name, BIGNUM *bn);
19 int EVP_PKEY_set_utf8_string_param(EVP_PKEY *pkey, const char *key_name,
20 char *str);
21 int EVP_PKEY_set_octet_string_param(EVP_PKEY *pkey, const char *key_name,
22 unsigned char *buf, size_t bsize);
23
24 =head1 DESCRIPTION
25
26 These functions can be used to set additional parameters into an existing
27 B<EVP_PKEY>.
28
29 EVP_PKEY_set_params() sets one or more I<params> into a I<pkey>.
30 See L<OSSL_PARAM(3)> for information about parameters.
31
32 EVP_PKEY_settable_params() returns a constant list of I<params> indicating
33 the names and types of key parameters that can be set.
34 See L<OSSL_PARAM(3)> for information about parameters.
35
36 EVP_PKEY_set_int_param() sets an integer value I<in> into a key I<pkey> for the
37 associated field I<key_name>.
38
39 EVP_PKEY_set_size_t_param() sets an size_t value I<in> into a key I<pkey> for
40 the associated field I<key_name>.
41
42 EVP_PKEY_set_bn_param() sets the BIGNUM value I<bn> into a key I<pkey> for the
43 associated field I<key_name>.
44
45 EVP_PKEY_set_utf8_string_param() sets the UTF8 string I<str> into a key I<pkey>
46 for the associated field I<key_name>.
47
48 EVP_PKEY_set_octet_string_param() sets the octet string value I<buf> with a
49 size I<bsize> into a key I<pkey> for the associated field I<key_name>.
50
51 =head1 NOTES
52
53 These functions only work for B<EVP_PKEY>s that contain a provider side key.
54
55 =head1 RETURN VALUES
56
57 EVP_PKEY_settable_params() returns NULL on error or if it is not supported,
58
59 All other methods return 1 if a value was successfully set, or 0 if
60 there was an error.
61
62 =head1 SEE ALSO
63
64 L<EVP_PKEY_gettable_params(3)>,
65 L<EVP_PKEY_CTX_new(3)>, L<provider-keymgmt(7)>, L<OSSL_PARAM(3)>,
66
67
68 =head1 HISTORY
69
70 These functions were added in OpenSSL 3.0.
71
72 =head1 COPYRIGHT
73
74 Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
75
76 Licensed under the Apache License 2.0 (the "License"). You may not use
77 this file except in compliance with the License. You can obtain a copy
78 in the file LICENSE in the source distribution or at
79 L<https://www.openssl.org/source/license.html>.
80
81 =cut
82