pub unsafe extern "C" fn ocrypto_ecjpake_get_premaster_secret(
    secret: *mut u8,
    Xr: *const u8,
    X2: *const u8,
    xs: *const u8,
    x2: *const u8
) -> c_int
Expand description

EC-JPAKE-P256 premaster secret generation.

  • secret - Resulting premaster secret.
  • Xr - Remote client/server public key.
  • X2 - Remote public key 2.
  • xs - Client/server secret key.
  • x2 - Secret key 2.

Returns 0 If the secret is valid. Returns -1 Otherwise.