/usr/include/openssl
NameSizeModeActions
aes.h33490644editdlrm
asn1.h336270644editdlrm
asn1err.h146870644editdlrm
asn1t.h329400644editdlrm
asn1_mac.h3950644editdlrm
async.h23980644editdlrm
asyncerr.h13260644editdlrm
bio.h349070644editdlrm
bioerr.h64000644editdlrm
blowfish.h18470644editdlrm
bn.h221350644editdlrm
bnerr.h49690644editdlrm
buffer.h16000644editdlrm
buffererr.h8200644editdlrm
camellia.h31790644editdlrm
cast.h16740644editdlrm
cmac.h10640644editdlrm
cms.h163790644editdlrm
cmserr.h111600644editdlrm
comp.h13280644editdlrm
comperr.h12120644editdlrm
conf.h56010644editdlrm
conferr.h34290644editdlrm
conf_api.h13000644editdlrm
crypto.h173350644editdlrm
cryptoerr.h22610644editdlrm
ct.h158720644editdlrm
cterr.h34700644editdlrm
des.h76270644editdlrm
dh.h137380644editdlrm
dherr.h44150644editdlrm
dsa.h101030644editdlrm
dsaerr.h33500644editdlrm
dtls1.h15780644editdlrm
ebcdic.h9240644editdlrm
ec.h636570644editdlrm
ecdh.h3580644editdlrm
ecdsa.h3580644editdlrm
ecerr.h166400644editdlrm
engine.h346610644editdlrm
engineerr.h54470644editdlrm
err.h112690644editdlrm
evp.h769380644editdlrm
evperr.h120730644editdlrm
e_os2.h88870644editdlrm
fips.h99750644editdlrm
fips_rand.h71690644editdlrm
hmac.h15910644editdlrm
idea.h20990644editdlrm
kdf.h75650644editdlrm
kdferr.h47880644editdlrm
lhash.h92710644editdlrm
md2.h10540644editdlrm
md4.h13220644editdlrm
md5.h13200644editdlrm
mdc2.h10530644editdlrm
modes.h104780644editdlrm
objects.h66330644editdlrm
objectserr.h13160644editdlrm
obj_mac.h2184860644editdlrm
ocsp.h153050644editdlrm
ocsperr.h33560644editdlrm
opensslconf-x86_64.h48980644editdlrm
opensslconf.h15810644editdlrm
opensslv.h41070644editdlrm
ossl_typ.h63100644editdlrm
pem.h154680644editdlrm
pem2.h4150644editdlrm
pemerr.h52220644editdlrm
pkcs7.h115900644editdlrm
pkcs7err.h51100644editdlrm
pkcs12.h98710644editdlrm
pkcs12err.h37490644editdlrm
rand.h23580644editdlrm
randerr.h46950644editdlrm
rand_drbg.h47630644editdlrm
rc2.h15340644editdlrm
rc4.h8250644editdlrm
rc5.h19880644editdlrm
ripemd.h12430644editdlrm
rsa.h223480644editdlrm
rsaerr.h98190644editdlrm
safestack.h81390644editdlrm
seed.h34790644editdlrm
sha.h38310644editdlrm
srp.h38270644editdlrm
srtp.h13160644editdlrm
ssl.h1111600644editdlrm
ssl2.h5420644editdlrm
ssl3.h147050644editdlrm
sslerr.h466760644editdlrm
stack.h30950644editdlrm
store.h111990644editdlrm
storeerr.h43990644editdlrm
symhacks.h13110644editdlrm
tls1.h724900644editdlrm
ts.h224290644editdlrm
tserr.h67460644editdlrm
txt_db.h16660644editdlrm
ui.h160520644editdlrm
uierr.h27370644editdlrm
whrlpool.h13770644editdlrm
x509.h433260644editdlrm
x509err.h68030644editdlrm
x509v3.h334410644editdlrm
x509v3err.h87770644editdlrm
x509_vfy.h324510644editdlrm
Edit: /usr/include/openssl/srp.h (3827B)
/* * Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2004, EdelKey Project. All Rights Reserved. * * Licensed under the OpenSSL license (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 * * Originally written by Christophe Renou and Peter Sylvester, * for the EdelKey project. */ #ifndef HEADER_SRP_H # define HEADER_SRP_H #include #ifndef OPENSSL_NO_SRP # include # include # include # include # include # ifdef __cplusplus extern "C" { # endif typedef struct SRP_gN_cache_st { char *b64_bn; BIGNUM *bn; } SRP_gN_cache; DEFINE_STACK_OF(SRP_gN_cache) typedef struct SRP_user_pwd_st { /* Owned by us. */ char *id; BIGNUM *s; BIGNUM *v; /* Not owned by us. */ const BIGNUM *g; const BIGNUM *N; /* Owned by us. */ char *info; } SRP_user_pwd; void SRP_user_pwd_free(SRP_user_pwd *user_pwd); DEFINE_STACK_OF(SRP_user_pwd) typedef struct SRP_VBASE_st { STACK_OF(SRP_user_pwd) *users_pwd; STACK_OF(SRP_gN_cache) *gN_cache; /* to simulate a user */ char *seed_key; const BIGNUM *default_g; const BIGNUM *default_N; } SRP_VBASE; /* * Internal structure storing N and g pair */ typedef struct SRP_gN_st { char *id; const BIGNUM *g; const BIGNUM *N; } SRP_gN; DEFINE_STACK_OF(SRP_gN) SRP_VBASE *SRP_VBASE_new(char *seed_key); void SRP_VBASE_free(SRP_VBASE *vb); int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file); /* This method ignores the configured seed and fails for an unknown user. */ DEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username)) /* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/ SRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username); char *SRP_create_verifier(const char *user, const char *pass, char **salt, char **verifier, const char *N, const char *g); int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, BIGNUM **verifier, const BIGNUM *N, const BIGNUM *g); # define SRP_NO_ERROR 0 # define SRP_ERR_VBASE_INCOMPLETE_FILE 1 # define SRP_ERR_VBASE_BN_LIB 2 # define SRP_ERR_OPEN_FILE 3 # define SRP_ERR_MEMORY 4 # define DB_srptype 0 # define DB_srpverifier 1 # define DB_srpsalt 2 # define DB_srpid 3 # define DB_srpgN 4 # define DB_srpinfo 5 # undef DB_NUMBER # define DB_NUMBER 6 # define DB_SRP_INDEX 'I' # define DB_SRP_VALID 'V' # define DB_SRP_REVOKED 'R' # define DB_SRP_MODIF 'v' /* see srp.c */ char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N); SRP_gN *SRP_get_default_gN(const char *id); /* server side .... */ BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u, const BIGNUM *b, const BIGNUM *N); BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g, const BIGNUM *v); int SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N); BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N); /* client side .... */ BIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass); BIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g); BIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g, const BIGNUM *x, const BIGNUM *a, const BIGNUM *u); int SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N); # define SRP_MINIMAL_N 1024 # ifdef __cplusplus } # endif # endif #endif