1SRP_CALC_B(3ossl)                   OpenSSL                  SRP_CALC_B(3ossl)
2
3
4

NAME

6       SRP_Calc_server_key, SRP_Calc_A, SRP_Calc_B_ex, SRP_Calc_B,
7       SRP_Calc_u_ex, SRP_Calc_u, SRP_Calc_x_ex, SRP_Calc_x,
8       SRP_Calc_client_key_ex, SRP_Calc_client_key - SRP authentication
9       primitives
10

SYNOPSIS

12        #include <openssl/srp.h>
13
14       The following functions have been deprecated since OpenSSL 3.0, and can
15       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
16       version value, see openssl_user_macros(7):
17
18        /* server side .... */
19        BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,
20                                    const BIGNUM *b, const BIGNUM *N);
21        BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
22                              const BIGNUM *v, OSSL_LIB_CTX *libctx, const char *propq);
23        BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
24                          const BIGNUM *v);
25
26        BIGNUM *SRP_Calc_u_ex(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N,
27                              OSSL_LIB_CTX *libctx, const char *propq);
28        BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);
29
30        /* client side .... */
31        BIGNUM *SRP_Calc_client_key_ex(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
32                                    const BIGNUM *x, const BIGNUM *a, const BIGNUM *u,
33                                    OSSL_LIB_CTX *libctx, const char *propq);
34        BIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
35                                    const BIGNUM *x, const BIGNUM *a, const BIGNUM *u);
36        BIGNUM *SRP_Calc_x_ex(const BIGNUM *s, const char *user, const char *pass,
37                              OSSL_LIB_CTX *libctx, const char *propq);
38        BIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass);
39        BIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g);
40

DESCRIPTION

42       All of the functions described on this page are deprecated. There are
43       no available replacement functions at this time.
44
45       The SRP functions described on this page are used to calculate various
46       parameters and keys used by SRP as defined in RFC2945. The server key
47       and B and u parameters are used on the server side and are calculated
48       via SRP_Calc_server_key(), SRP_Calc_B_ex(), SRP_Calc_B(),
49       SRP_Calc_u_ex() and SRP_Calc_u(). The client key and x and A parameters
50       are used on the client side and are calculated via the functions
51       SRP_Calc_client_key_ex(), SRP_Calc_client_key(), SRP_Calc_x_ex(),
52       SRP_Calc_x() and SRP_Calc_A(). See RFC2945 for a detailed description
53       of their usage and the meaning of the various BIGNUM parameters to
54       these functions.
55
56       Most of these functions come in two forms. Those that take a libctx and
57       propq parameter, and those that don't. Any cryptogrpahic functions that
58       are fetched and used during the calculation use the provided libctx and
59       propq. See "ALGORITHM FETCHING" in crypto(7) for more details. The
60       variants that do not take a libctx and propq parameter use the default
61       library context and property query string. The SRP_Calc_server_key()
62       and SRP_Calc_A() functions do not have a form that takes libctx or
63       propq parameters because they do not need to fetch any cryptographic
64       algorithms.
65

RETURN VALUES

67       All these functions return the calculated key or parameter, or NULL on
68       error.
69

SEE ALSO

71       openssl-srp(1), SRP_VBASE_new(3), SRP_user_pwd_new(3)
72

HISTORY

74       SRP_Calc_B_ex, SRP_Calc_u_ex, SRP_Calc_client_key_ex and SRP_Calc_x_ex
75       were introduced in OpenSSL 3.0.
76
77       All of the other functions were added in OpenSSL 1.0.1.
78
79       All of these functions were deprecated in OpenSSL 3.0.
80
82       Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
83
84       Licensed under the Apache License 2.0 (the "License").  You may not use
85       this file except in compliance with the License.  You can obtain a copy
86       in the file LICENSE in the source distribution or at
87       <https://www.openssl.org/source/license.html>.
88
89
90
913.0.5                             2022-11-01                 SRP_CALC_B(3ossl)
Impressum