diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-07-11 21:17:08 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-07-11 21:17:08 +0000 |
commit | e40ec0ae464ee54051db8c4548e31ea4ebe0ad6d (patch) | |
tree | 8ce6fa10f4130615b5159d797dc0c9393a75b48a /lib/gnutls_srp.h | |
parent | 08da70ca4eb0b9432da130f8e1b42992fc8fb7d5 (diff) | |
download | gnutls-e40ec0ae464ee54051db8c4548e31ea4ebe0ad6d.tar.gz |
optimizations in hash functions (removed a lot of mallocs)
Diffstat (limited to 'lib/gnutls_srp.h')
-rw-r--r-- | lib/gnutls_srp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_srp.h b/lib/gnutls_srp.h index 2e9ee311bc..31bc66d2bc 100644 --- a/lib/gnutls_srp.h +++ b/lib/gnutls_srp.h @@ -4,7 +4,7 @@ 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); -void* _gnutls_calc_srp_x( char* username, char* password, opaque* salt, int salt_size, uint8 crypt_algo, int* size); +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 */ @@ -12,3 +12,4 @@ extern const uint8 diffie_hellman_group1_prime[130]; /* g is defined to be 2 */ #define SRP_G 2 +#define SRP_MAX_HASH_SIZE 24 |