Struct bearssl::br_block_cbcenc_class_ [] [src]

#[repr(C)]
pub struct br_block_cbcenc_class_ { pub context_size: usize, pub block_size: c_uint, pub log_block_size: c_uint, pub init: Option<unsafe extern "C" fn(_: *mut *const br_block_cbcenc_class, _: *const c_void, _: usize)>, pub run: Option<unsafe extern "C" fn(_: *const *const br_block_cbcenc_class, _: *mut c_void, _: *mut c_void, _: usize)>, }

Fields

\brief Size (in bytes) of the context structure appropriate for containing subkeys.

\brief Size of individual blocks (in bytes).

\brief Base-2 logarithm of the size of individual blocks, expressed in bytes.

\brief Initialisation function.

This function sets the vtable field in the context structure. The key length MUST be one of the key lengths supported by the implementation.

\param ctx context structure to initialise. \param key secret key. \param key_len key length (in bytes).

\brief Run the CBC encryption.

The iv parameter points to the IV for this run; it is updated with a copy of the last encrypted block. The data is encrypted "in place"; its length (len) MUST be a multiple of the block size.

\param ctx context structure (already initialised). \param iv IV for CBC encryption (updated). \param data data to encrypt. \param len data length (in bytes, multiple of block size).

Trait Implementations

impl Debug for br_block_cbcenc_class_
[src]

[src]

Formats the value using the given formatter.

impl Copy for br_block_cbcenc_class_
[src]

impl Clone for br_block_cbcenc_class_
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more