nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_srp_client_premaster_secret()

int ocrypto_srp_client_premaster_secret ( uint8_t  s[(384)],
const uint8_t  priv_a[(32)],
const uint8_t  pub_b[(384)],
const uint8_t  k[(384)],
const uint8_t *  u,
const uint8_t *  h,
size_t  h_len 
)

#include <crypto/nrf_oberon/include/ocrypto_srp.h>

SRP-6 client premaster secret.

Parameters
[out]sGenerated premaster secret.
priv_aClient private key.
pub_bServer public key.
kMultiplier.
uScrambling parameter; generated with srp_scrambling_parameter.
hPassword hash.
h_lenLength of h and u.
Return values
0If pub_a is a valid public key.
1Otherwise.