pub unsafe extern "C" fn ocrypto_srp_proof_m1(
    m1: *mut u8,
    user: *const u8,
    user_len: usize,
    salt: *const u8,
    pub_a: *const u8,
    pub_b: *const u8,
    k: *const u8
)
Expand description

SRP-6 proof exchange.

Proofs are exchanged from client to server and vice versa to ensure that both parties computed the same shared session key. The proofs only match if the correct password is used by the client. / /@{*/ / SRP-6 proof M1 (client to server).

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 - .

  • 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.