pub unsafe extern "C" fn s2n_async_pkey_op_get_input(
op: *mut s2n_async_pkey_op,
data: *mut u8,
data_len: u32,
) -> i32
Expand description
Returns the input to the private key operation.
When signing, the input is the digest to sign. When decrypting, the input is the data to decrypt.
§Safety
data
must be sufficiently large to contain the input.s2n_async_pkey_op_get_input_size
can be called to determine how much memory is required.- s2n-tls does not take ownership of
data
. The application still owns the memory and must free it if necessary.
@param op An opaque object representing the private key operation
@param data A pointer to a buffer to copy the input into
@param data_len The maximum size of the data
buffer