pub unsafe extern "C" fn ocrypto_ecjpake_get_key(
    X: *mut u8,
    V: *mut u8,
    r: *mut u8,
    G: *const u8,
    x: *const u8,
    v: *const u8,
    id: *const c_char,
    id_len: usize
) -> c_int
Expand description

EC-JPAKE-P256 public key and zero knowledge proof generation.

  • X - Public key.
  • V - ZKP ephemeral public key.
  • r - ZKP signature.
  • G - Generator. May be NULL to use the default generator.
  • x - Secret key. 0 < x < group order
  • v - ZKP ephemeral secret key. 0 < v < group order
  • id - Identity of originator.
  • id_len - Identity length.

Returns 0 If inputs are valid. Returns -1 Otherwise.