pub unsafe extern "C" fn ocrypto_ecdh_p256_common_secret_final(
ctx: *mut ocrypto_ecdh_p256_ctx,
r: *mut u8
) -> c_int
Expand description
Incremental ECDH P-256 common secret generation final step.
Common secret calculation is finalized and the context * ctx
- is used to generate the secret.
ctx
- Context.r
- Generated common secret.
Returns 0 If * sk
- is a valid secret key and * pk
- is a valid public key.
Returns -1 Otherwise.