summaryrefslogtreecommitdiff
path: root/lib/gnutls_srp.h
blob: 5f13abd7c1552ddfbd00db2fba90586c97e47774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifdef ENABLE_SRP

int _gnutls_srp_gx(opaque *text, int textsize, opaque** result, MPI g, MPI prime);
MPI _gnutls_calc_srp_B(MPI * ret_b, MPI g, MPI n, MPI v);
MPI _gnutls_calc_srp_u( MPI B);
MPI _gnutls_calc_srp_S1(MPI A, MPI b, MPI u, MPI v, MPI n);
MPI _gnutls_calc_srp_A(MPI *a, MPI g, MPI n);
MPI _gnutls_calc_srp_S2(MPI B, MPI g, MPI x, MPI a, MPI u, MPI n);
int _gnutls_calc_srp_x( char* username, char* password, opaque* salt, int salt_size, uint8 crypt_algo, int* size, void* digest);
int _gnutls_srp_gn( opaque** ret_g, opaque** ret_n, int bits);

/* our prime */
extern const uint8 diffie_hellman_group1_prime[130];

/* g is defined to be 2 */
#define SRP_MAX_HASH_SIZE 24

#endif