nrfxlib API 2.8.99
|
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.
[out] | s | Generated premaster secret. |
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 . |
0 | If pub_a is a valid public key. |
1 | Otherwise. |