nrfxlib API 0.1.0
|
int ocrypto_srp_server_premaster_secret | ( | uint8_t | s[(384)], |
const uint8_t | pub_a[(384)], | ||
const uint8_t | priv_b[(32)], | ||
const uint8_t * | u, | ||
size_t | u_len, | ||
const uint8_t | v[(384)] | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_srp.h>
SRP-6 server premaster secret.
The premaster secret between the client and the server is computed using the client public key pub_a
, the server private key priv_b
, the scrambling parameter u
and the password verifier v
. If the client public key pub_a
is valid, the premaster secret is then put into s
. The premaster secret can be used to generate encryption keys.
[out] | s | Generated premaster secret. |
pub_a | Client public key. | |
priv_b | Server private key. | |
u | Scrambling parameter; generated with ocrypto_srp_scrambling_parameter . | |
u_len | Length of u . | |
v | Password verifier. |
0 | If pub_a is a valid public key. |
1 | Otherwise. |