Function nrfxlib_sys::ocrypto_ecjpake_zkp_verify
source · pub unsafe extern "C" fn ocrypto_ecjpake_zkp_verify(
G: *const u8,
X: *const u8,
V: *const u8,
r: *const u8,
hash: *const u8,
hash_len: usize
) -> c_int
Expand description
EC-JPAKE-P256 zero knowledge proof verification.
G
- Generator. May be NULL to use the default generator.X
- Public key.V
- ZKP ephemeral public key.r
- ZKP signature.hash
- Identity of originator.hash_len
- Identity length.
Returns 0 If the proof is valid. Returns -1 Otherwise.