Function s2n_tls_sys::s2n_async_pkey_op_perform
source · pub unsafe extern "C" fn s2n_async_pkey_op_perform(
op: *mut s2n_async_pkey_op,
key: *mut s2n_cert_private_key
) -> c_int
Expand description
Performs a private key operation using the given private key.
§Safety
- Can only be called once. Any subsequent calls will produce a
S2N_ERR_T_USAGE
error. - Safe to call from inside s2n_async_pkey_fn
- Safe to call from a different thread, as long as no other thread is operating on
op
.
@param op An opaque object representing the private key operation
@param key The private key used for the operation. It can be extracted from
conn
through the s2n_connection_get_selected_cert
and s2n_cert_chain_and_key_get_private_key
calls