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