97 SRP_NGType ng_type,
const char *username_for_verifier,
98 const unsigned char *
password,
size_t len_password,
99 unsigned char **bytes_s,
size_t *len_s,
100 unsigned char **bytes_v,
size_t *len_v,
101 const char *n_hex,
const char *g_hex);
115 const unsigned char *bytes_s,
size_t len_s,
116 const unsigned char *bytes_v,
size_t len_v,
117 const unsigned char *bytes_A,
size_t len_A,
118 const unsigned char *bytes_b,
size_t len_b,
119 unsigned char**
bytes_B,
size_t *len_B,
120 const char* n_hex,
const char* g_hex);
139 struct SRPVerifier *ver,
const unsigned char *user_M,
unsigned char **bytes_HAMK);
145 const char *
username,
const char *username_for_verifier,
146 const unsigned char *bytes_password,
size_t len_password,
const char *n_hex,
164 const unsigned char *bytes_a,
size_t len_a,
165 unsigned char **
bytes_A,
size_t* len_A);
170 const unsigned char *bytes_s,
size_t len_s,
171 const unsigned char *bytes_B,
size_t len_B,
172 unsigned char **bytes_M,
size_t *len_M);
const unsigned char * srp_user_get_session_key(struct SRPUser *usr, size_t *key_length)
Definition srp.cpp:836
SRP_HashAlgorithm
Definition srp.h:69
@ SRP_SHA256
Definition srp.h:72
struct SRPVerifier * srp_verifier_new(SRP_HashAlgorithm alg, SRP_NGType ng_type, const char *username, const unsigned char *bytes_s, size_t len_s, const unsigned char *bytes_v, size_t len_v, const unsigned char *bytes_A, size_t len_A, const unsigned char *bytes_b, size_t len_b, unsigned char **bytes_B, size_t *len_B, const char *n_hex, const char *g_hex)
Definition srp.cpp:587
int srp_user_is_authenticated(struct SRPUser *usr)
Definition srp.cpp:826
struct SRPUser * srp_user_new(SRP_HashAlgorithm alg, SRP_NGType ng_type, const char *username, const char *username_for_verifier, const unsigned char *bytes_password, size_t len_password, const char *n_hex, const char *g_hex)
Definition srp.cpp:749
SRP_NGType
Definition srp.h:61
@ SRP_NG_CUSTOM
Definition srp.h:66
@ SRP_NG_4096
Definition srp.h:64
@ SRP_NG_2048
Definition srp.h:63
@ SRP_NG_1024
Definition srp.h:62
@ SRP_NG_8192
Definition srp.h:65
SRP_Result srp_create_salted_verification_key(SRP_HashAlgorithm alg, SRP_NGType ng_type, const char *username_for_verifier, const unsigned char *password, size_t len_password, unsigned char **bytes_s, size_t *len_s, unsigned char **bytes_v, size_t *len_v, const char *n_hex, const char *g_hex)
Definition srp.cpp:531
void srp_user_delete(struct SRPUser *usr)
Definition srp.cpp:804
void srp_verifier_delete(struct SRPVerifier *ver)
Definition srp.cpp:703
SRP_Result srp_user_start_authentication(struct SRPUser *usr, char **username, const unsigned char *bytes_a, size_t len_a, unsigned char **bytes_A, size_t *len_A)
Definition srp.cpp:848
const char * srp_user_get_username(struct SRPUser *usr)
Definition srp.cpp:831
size_t srp_verifier_get_session_key_length(struct SRPVerifier *ver)
Definition srp.cpp:731
void srp_user_verify_session(struct SRPUser *usr, const unsigned char *bytes_HAMK)
Definition srp.cpp:952
SRP_Result
Definition srp.h:77
@ SRP_ERR
Definition srp.h:78
@ SRP_OK
Definition srp.h:79
const unsigned char * srp_verifier_get_session_key(struct SRPVerifier *ver, size_t *key_length)
Definition srp.cpp:724
const char * srp_verifier_get_username(struct SRPVerifier *ver)
Definition srp.cpp:719
void srp_user_process_challenge(struct SRPUser *usr, const unsigned char *bytes_s, size_t len_s, const unsigned char *bytes_B, size_t len_B, unsigned char **bytes_M, size_t *len_M)
Definition srp.cpp:880
void srp_verifier_verify_session(struct SRPVerifier *ver, const unsigned char *user_M, unsigned char **bytes_HAMK)
Definition srp.cpp:737
size_t srp_user_get_session_key_length(struct SRPUser *usr)
Definition srp.cpp:842
int srp_verifier_is_authenticated(struct SRPVerifier *ver)
Definition srp.cpp:714
char * username
Definition srp.cpp:233
unsigned char * password
Definition srp.cpp:235
unsigned char * bytes_A
Definition srp.cpp:230
char * username
Definition srp.cpp:213
unsigned char * bytes_B
Definition srp.cpp:214