xref: /freebsd/crypto/openssl/doc/man3/SRP_Calc_B.pod (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1=pod
2
3=head1 NAME
4
5SRP_Calc_server_key,
6SRP_Calc_A,
7SRP_Calc_B_ex,
8SRP_Calc_B,
9SRP_Calc_u_ex,
10SRP_Calc_u,
11SRP_Calc_x_ex,
12SRP_Calc_x,
13SRP_Calc_client_key_ex,
14SRP_Calc_client_key
15- SRP authentication primitives
16
17=head1 SYNOPSIS
18
19 #include <openssl/srp.h>
20
21The following functions have been deprecated since OpenSSL 3.0, and can be
22hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
23see L<openssl_user_macros(7)>:
24
25 /* server side .... */
26 BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,
27                             const BIGNUM *b, const BIGNUM *N);
28 BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
29                       const BIGNUM *v, OSSL_LIB_CTX *libctx, const char *propq);
30 BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
31                   const BIGNUM *v);
32
33 BIGNUM *SRP_Calc_u_ex(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N,
34                       OSSL_LIB_CTX *libctx, const char *propq);
35 BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);
36
37 /* client side .... */
38 BIGNUM *SRP_Calc_client_key_ex(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
39                             const BIGNUM *x, const BIGNUM *a, const BIGNUM *u,
40                             OSSL_LIB_CTX *libctx, const char *propq);
41 BIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
42                             const BIGNUM *x, const BIGNUM *a, const BIGNUM *u);
43 BIGNUM *SRP_Calc_x_ex(const BIGNUM *s, const char *user, const char *pass,
44                       OSSL_LIB_CTX *libctx, const char *propq);
45 BIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass);
46 BIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g);
47
48=head1 DESCRIPTION
49
50All of the functions described on this page are deprecated. There are no
51available replacement functions at this time.
52
53The SRP functions described on this page are used to calculate various
54parameters and keys used by SRP as defined in RFC2945. The server key and I<B>
55and I<u> parameters are used on the server side and are calculated via
56SRP_Calc_server_key(), SRP_Calc_B_ex(), SRP_Calc_B(), SRP_Calc_u_ex() and
57SRP_Calc_u(). The client key and B<x> and B<A> parameters are used on the
58client side and are calculated via the functions SRP_Calc_client_key_ex(),
59SRP_Calc_client_key(), SRP_Calc_x_ex(), SRP_Calc_x() and SRP_Calc_A(). See
60RFC2945 for a detailed description of their usage and the meaning of the various
61BIGNUM parameters to these functions.
62
63Most of these functions come in two forms. Those that take a I<libctx> and
64I<propq> parameter, and those that don't. Any cryptogrpahic functions that
65are fetched and used during the calculation use the provided I<libctx> and
66I<propq>. See L<crypto(7)/ALGORITHM FETCHING> for more details. The variants
67that do not take a I<libctx> and I<propq> parameter use the default library
68context and property query string. The SRP_Calc_server_key() and SRP_Calc_A()
69functions do not have a form that takes I<libctx> or I<propq> parameters because
70they do not need to fetch any cryptographic algorithms.
71
72=head1 RETURN VALUES
73
74All these functions return the calculated key or parameter, or NULL on error.
75
76=head1 SEE ALSO
77
78L<openssl-srp(1)>,
79L<SRP_VBASE_new(3)>,
80L<SRP_user_pwd_new(3)>
81
82=head1 HISTORY
83
84SRP_Calc_B_ex, SRP_Calc_u_ex, SRP_Calc_client_key_ex and SRP_Calc_x_ex were
85introduced in OpenSSL 3.0.
86
87All of the other functions were added in OpenSSL 1.0.1.
88
89All of these functions were deprecated in OpenSSL 3.0.
90
91=head1 COPYRIGHT
92
93Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
94
95Licensed under the Apache License 2.0 (the "License").  You may not use
96this file except in compliance with the License.  You can obtain a copy
97in the file LICENSE in the source distribution or at
98L<https://www.openssl.org/source/license.html>.
99
100=cut
101