Function bearssl::br_gcm_init
[−]
[src]
pub unsafe extern "C" fn br_gcm_init(
ctx: *mut br_gcm_context,
bctx: *mut *const br_block_ctr_class,
gh: br_ghash
)
\brief Initialize a GCM context.
A block cipher implementation, with its initialised context structure, is provided. The block cipher MUST use 16-byte blocks in CTR mode, and its secret key MUST have been already set in the provided context. A GHASH implementation must also be provided. The parameters are linked in the GCM context.
After this function has been called, the br_gcm_reset()
function must
be called, to provide the IV for GCM computation.
\param ctx GCM context structure. \param bctx block cipher context (already initialised with secret key). \param gh GHASH implementation.