blob: 713f848d2a599ba389cf3c09aa95a45ca4a5497c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef __POLY1305_DONNA_H__
#define __POLY1305_DONNA_H__
#include <stddef.h>
#include "crypto_onetimeauth_poly1305.h"
typedef crypto_onetimeauth_poly1305_state poly1305_context;
extern struct crypto_onetimeauth_poly1305_implementation
crypto_onetimeauth_poly1305_donna_implementation;
const char *crypto_onetimeauth_poly1305_donna_implementation_name(void);
int crypto_onetimeauth_poly1305_donna(unsigned char *out,
const unsigned char *in,
unsigned long long inlen,
const unsigned char *k);
int crypto_onetimeauth_poly1305_donna_verify(const unsigned char *h,
const unsigned char *in,
unsigned long long inlen,
const unsigned char *k);
int crypto_onetimeauth_poly1305_donna_init(crypto_onetimeauth_poly1305_state *state,
const unsigned char *key);
int crypto_onetimeauth_poly1305_donna_update(crypto_onetimeauth_poly1305_state *state,
const unsigned char *in,
unsigned long long inlen);
int crypto_onetimeauth_poly1305_donna_final(crypto_onetimeauth_poly1305_state *state,
unsigned char *out);
#endif /* __POLY1305_DONNA_H__ */
|