Function nrfxlib_sys::ocrypto_srp_client_premaster_secret
source · pub unsafe extern "C" fn ocrypto_srp_client_premaster_secret(
s: *mut u8,
priv_a: *const u8,
pub_b: *const u8,
k: *const u8,
u: *const u8,
h: *const u8,
h_len: usize
) -> c_int
Expand description
SRP-6 client premaster secret.
s
- Generated premaster secret, must be 32 bit aligned.priv_a
- Client private key.pub_b
- Server public key.k
- Multiplier.u
- Scrambling parameter; generated with *srp_scrambling_parameter
- .h
- Password hash.h_len
- Length of *h
- and *u
- .
Returns 0 If * pub_a
- is a valid public key.
Returns 1 Otherwise.