]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/opencrypto/xform_poly1305.h
ident(1): Normalizing date format
[FreeBSD/FreeBSD.git] / sys / opencrypto / xform_poly1305.h
1 /* This file is in the public domain. */
2 /* $FreeBSD$ */
3 #pragma once
4
5 #include <sys/types.h>
6
7 struct poly1305_xform_ctx;
8
9 void Poly1305_Init(void *);
10
11 void Poly1305_Setkey(struct poly1305_xform_ctx *,
12     const uint8_t [__min_size(32)], size_t);
13
14 int Poly1305_Update(struct poly1305_xform_ctx *, const void *, size_t);
15
16 void Poly1305_Final(uint8_t [__min_size(16)], struct poly1305_xform_ctx *);