nrfxlib API 2.8.99
|
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
.
[out] | m2 | Generated proof. |
pub_a | Client public key. | |
m1 | First proof; generated with ocrypto_srp_proof_m1 . | |
k | Session key. |