Function nrfxlib_sys::ocrypto_aes_ccm_final_dec
source · pub unsafe extern "C" fn ocrypto_aes_ccm_final_dec(
ctx: *mut ocrypto_aes_ccm_ctx,
tag: *const u8,
tag_len: usize
) -> c_int
Expand description
AES-CCM final decoder step.
The generator state * ctx
- is used to finalize the decryption and check the tag.
ctx
- Generator state.tag
- Received authentication tag.tag_len
- Length of *tag
- .
Returns 0 If * tag
- is valid.
Returns -1 Otherwise.