pub unsafe extern "C" fn ocrypto_poly1305_init(
ctx: *mut ocrypto_poly1305_ctx,
key: *const u8,
)Expand description
§Incremental Poly1305 generator.
This group of functions can be used to incrementally compute the Poly1305 authenticator on a message.
Use pattern:
@code ocrypto_poly1305_init(ctx, key); ocrypto_poly1305_update(ctx, m, m_len); … ocrypto_chacha20_update(ctx, m, m_len); ocrypto_poly1305_final(ctx, tag); @endcode / /@{*/ / Poly1305 generator initialization.
The generator state * ctx - is initialized by this function.
ctx- Generator state.key- Authentication key.