pub unsafe extern "C" fn ocrypto_srp_scrambling_parameter_ctx(
    ctx: *mut ocrypto_srp_ctx,
    u: *mut u8,
    pub_a: *const u8,
    pub_b: *const u8
)
Expand description

SRP-6 session key generation with context.

A premaster secret can be derived from both the client’s and server’s public keys, the server’s private key and the password verifier. A shared session key can be generated from this premaster secret. / /@{*/ / SRP-6 scrambling parameter.

The scrambling parameter is computed from both the client’s public key

  • pub_a - and the server’s public key * pub_b - . The scrambling parameter is required to compute the premaster secret.

  • ctx - Context.

  • u - Generated scrambling parameter.

  • pub_a - Client public key.

  • pub_b - Server public key.