nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ ocrypto_srp_proof_m2()

void ocrypto_srp_proof_m2 ( uint8_t  m2[(64)],
const uint8_t  pub_a[(384)],
const uint8_t  m1[(64)],
const uint8_t  k[(64)] 
)

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

SRP-6 proof M2 (server to client).

A second proof is generated by the server and sent back to the client to assert that the server is in possession of the shared session key k. The client also generates the proof. If the proofs match, both parties can assume that they share the same session key k. The second proof is based on the client public key pub_a, the first proof m1 and the session key k.

Parameters
[out]m2Generated proof.
pub_aClient public key.
m1First proof; generated with ocrypto_srp_proof_m1.
kSession key.