Function nrfxlib_sys::ocrypto_poly1305_final
source · pub unsafe extern "C" fn ocrypto_poly1305_final(
ctx: *mut ocrypto_poly1305_ctx,
r: *mut u8
)
Expand description
Poly1305 generator output.
The generator state * ctx
- is updated to finalize the authenticator for the
previously processed message chunks. The authentication tag is put into * r
- .
ctx
- Generator state.r
- Generated authentication tag.
@remark Initialization of the generator state * ctx
- through
* ocrypto_poly1305_init
- is required before this function can be called.
@remark After return, the generator state * ctx
- must no longer be used with
* ocrypto_poly1305_update
- and * ocrypto_poly1305_final
- unless it is
reinitialized using * ocrypto_poly1305_init
- .