Struct bearssl::br_sslrec_out_class_
[−]
[src]
#[repr(C)]pub struct br_sslrec_out_class_ { pub context_size: usize, pub max_plaintext: Option<unsafe extern "C" fn(_: *const *const br_sslrec_out_class, _: *mut usize, _: *mut usize)>, pub encrypt: Option<unsafe extern "C" fn(_: *mut *const br_sslrec_out_class, _: c_int, _: c_uint, _: *mut c_void, _: *mut usize) -> *mut c_uchar>, }
Fields
context_size: usize
\brief Context size (in bytes).
max_plaintext: Option<unsafe extern "C" fn(_: *const *const br_sslrec_out_class, _: *mut usize, _: *mut usize)>
\brief Compute maximum plaintext sizes and offsets.
When this function is called, the *start
and *end
values contain offsets designating the free area in the
outgoing buffer for plaintext data; that free area is
preceded by a 5-byte space which will receive the record
header.
The max_plaintext()
function is responsible for adjusting
both *start
and *end
to make room for any record-specific
header, MAC, padding, and possible split.
\param ctx encryption engine context. \param start pointer to start of plaintext offset (updated). \param end pointer to start of plaintext offset (updated).
encrypt: Option<unsafe extern "C" fn(_: *mut *const br_sslrec_out_class, _: c_int, _: c_uint, _: *mut c_void, _: *mut usize) -> *mut c_uchar>
\brief Perform record encryption.
This function encrypts the record. The plaintext address and
length are provided. Returned value is the start of the
encrypted record (or sequence of records, if a split was
performed), including the 5-byte header, and *len
is
adjusted to the total size of the record(s), there again
including the header(s).
\param ctx decryption engine context. \param record_type record type (23 for application data, etc). \param version record version. \param plaintext address of plaintext. \param len pointer to plaintext length (updated). \return pointer to start of built record.
Trait Implementations
impl Debug for br_sslrec_out_class_
[src]
impl Copy for br_sslrec_out_class_
[src]
impl Clone for br_sslrec_out_class_
[src]
fn clone(&self) -> br_sslrec_out_class_
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more