SRP_CREATE_VERIFIER - Online Linux Manual PageSection : 3ossl
Updated : 2022-03-15
Source : 3.0.2
Note : OpenSSL

NAMESRP_create_verifier_ex, SRP_create_verifier, SRP_create_verifier_BN_ex, SRP_create_verifier_BN, SRP_check_known_gN_param, SRP_get_default_gN ​− SRP authentication primitives

SYNOPSIS​ #include <openssl/srp.h> The following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7): ​ int SRP_create_verifier_BN_ex(const char *user, const char *pass, BIGNUM **salt, ​ BIGNUM **verifier, const BIGNUM *N, ​ const BIGNUM *g, OSSL_LIB_CTX *libctx, ​ const char *propq); ​ char *SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, ​ BIGNUM **verifier, const BIGNUM *N, const BIGNUM *g); ​ char *SRP_create_verifier_ex(const char *user, const char *pass, char **salt, ​ char **verifier, const char *N, const char *g, ​ OSSL_LIB_CTX *libctx, const char *propq); ​ char *SRP_create_verifier(const char *user, const char *pass, char **salt, ​ char **verifier, const char *N, const char *g); ​ ​ char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N); ​ SRP_gN *SRP_get_default_gN(const char *id);

DESCRIPTIONAll of the functions described on this page are deprecated. There are no available replacement functions at this time. The SRP_create_verifier_BN_ex() function creates an SRP password verifier from the supplied parameters as defined in section 2.4 of RFC 5054 using the library context libctx and property query string propq. Any cryptographic algorithms that need to be fetched will use the libctx and propq. See ​ALGORITHM FETCHING in crypto(7). SRP_create_verifier_BN() is the same as SRP_create_verifier_BN_ex() except the default library context and property query string is used. On successful exit *verifier will point to a newly allocated BIGNUM containing the verifier and (if a salt was not provided) *salt will be populated with a newly allocated BIGNUM containing a random salt. If *salt is not NULL then the provided salt is used instead. The caller is responsible for freeing the allocated *salt and *verifierBIGNUMS (use BN_free(3)). The SRP_create_verifier() function is similar to SRP_create_verifier_BN() but all numeric parameters are in a non-standard base64 encoding originally designed for compatibility with libsrp. This is mainly present for historical compatibility and its use is discouraged. It is possible to pass NULL as N and an SRP group id as g instead to load the appropriate gN values (see SRP_get_default_gN()). If both N and g are NULL the 8192−bit SRP group parameters are used. The caller is responsible for freeing the allocated *salt and *verifier (use OPENSSL_free(3)). The SRP_check_known_gN_param() function checks that g and N are valid ​SRP group parameters from RFC 5054 appendix A. The SRP_get_default_gN() function returns the gN parameters for the RFC 5054 idSRP group size. The known ids are 1024, 1536, 2048, 3072, 4096, 6144 and 8192.

RETURN VALUESSRP_create_verifier_BN_ex() and SRP_create_verifier_BN() return 1 on success and 0 on failure. SRP_create_verifier_ex() and SRP_create_verifier() return NULL on failure and a non-NULL value on success: ​* if N is not NULL, the selected group id otherwise. This value should not be freed. SRP_check_known_gN_param() returns the text representation of the group id (i.e. the prime bit size) or NULL if the arguments are not valid SRP group parameters. This value should not be freed. SRP_get_default_gN() returns NULL if id is not a valid group size, or the 8192−bit group parameters if id is NULL.

EXAMPLESGenerate and store a 8192 bit password verifier (error handling omitted for clarity): ​ #include <openssl/bn.h> ​ #include <openssl/srp.h> ​ ​ const char *username = "username"; ​ const char *password = "password"; ​ ​ SRP_VBASE *srpData = SRP_VBASE_new(NULL); ​ ​ SRP_gN *gN = SRP_get_default_gN("8192"); ​ ​ BIGNUM *salt = NULL, *verifier = NULL; ​ SRP_create_verifier_BN_ex(username, password, &salt, &verifier, gN−>N, gN−>g, ​ NULL, NULL); ​ ​ SRP_user_pwd *pwd = SRP_user_pwd_new(); ​ SRP_user_pwd_set1_ids(pwd, username, NULL); ​ SRP_user_pwd_set0_sv(pwd, salt, verifier); ​ SRP_user_pwd_set_gN(pwd, gN−>g, gN−>N); ​ ​ SRP_VBASE_add0_user(srpData, pwd);

SEE ALSOopenssl−srp(1), ​SRP_VBASE_new(3), ​SRP_user_pwd_new(3)

HISTORYSRP_create_verifier_BN_ex() and SRP_create_verifier_ex() were introduced in OpenSSL 3.0. All other functions were added in OpenSSL 1.0.1. All of these functions were deprecated in OpenSSL 3.0.

COPYRIGHTCopyright 2018−2021 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   17,748 byte
man-SRP_create_verifier_BN_ex.3osslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 174,117
Visitor ID   :     :  
Visitor IP   :   3.21.46.129   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|S___RP_check_known_gN_param.3ossl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|S___RP_check_known_gN_param.3ossl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|S___RP_check_known_gN_param.3ossl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|S___RP_check_known_gN_param.3ossl|43|'br══─}─══ |'br══─}─══ )