nrfxlib API 2.8.99
|
void ocrypto_srp_proof_m1_ctx | ( | ocrypto_srp_ctx * | ctx, |
uint8_t | m1[(64)], | ||
const uint8_t * | user, | ||
size_t | user_len, | ||
const uint8_t | salt[(16)], | ||
const uint8_t | pub_a[(384)], | ||
const uint8_t | pub_b[(384)], | ||
const uint8_t | k[(64)] ) |
#include <crypto/nrf_oberon/include/ocrypto_srp.h>
SRP-6 proof M1 (client to server) with context.
A proof is generated by the client and sent to the server to assert that the client is in possession of the shared session key k
. The server also generates the proof. Only if the proofs match, the process can continue. The proof is based on the salt salt
, the client public key pub_a
, the server public key pub_b
and the shared session key k
.
ctx | Context. | |
[out] | m1 | Generated proof. |
user | User name. | |
user_len | Length of user . | |
salt | Salt. | |
pub_a | Client public key. | |
pub_b | Server public key. | |
k | Session key. |