pub unsafe extern "C" fn ocrypto_curve_p256_from32bytes(
    r: *mut ocrypto_cp_p256,
    p: *const u8
) -> c_int
Expand description

Load r.x from bytes, keep r.y.

  • r - Point with r.x loaded, r.y kept.
  • p - x as as array of bytes.

Returns 0 If * r - is a valid curve point. Returns -1 Otherwise.