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

◆ ocrypto_srp_proof_m1_ctx()

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.

Parameters
ctxContext.
[out]m1Generated proof.
userUser name.
user_lenLength of user.
saltSalt.
pub_aClient public key.
pub_bServer public key.
kSession key.