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