Browse Subversion Repository
Contents of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/poly1305.h
Parent Directory
| Revision Log
Revision 9249 -
( show annotations)
( download)
( as text)
Sun May 16 14:24:03 2021 UTC
(2 years, 9 months ago)
by nmaya
File MIME type: text/x-chdr
File size: 661 byte(s)
size_t を typedef しないようにした
cf. ttssh2-devel 4897
| 1 |
/* Imported from OpenSSH-8.5p1, TeraTerm Project */ |
| 2 |
|
| 3 |
/* $OpenBSD: poly1305.h,v 1.4 2014/05/02 03:27:54 djm Exp $ */ |
| 4 |
|
| 5 |
/* |
| 6 |
* Public Domain poly1305 from Andrew Moon |
| 7 |
* poly1305-donna-unrolled.c from https://github.com/floodyberry/poly1305-donna |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef POLY1305_H |
| 11 |
#define POLY1305_H |
| 12 |
|
| 13 |
#include <stdio.h> |
| 14 |
#include <sys/types.h> |
| 15 |
typedef unsigned char u_char; |
| 16 |
typedef unsigned char uint8_t; |
| 17 |
typedef unsigned int uint32_t; |
| 18 |
typedef unsigned long long uint64_t; |
| 19 |
|
| 20 |
#define POLY1305_KEYLEN 32 |
| 21 |
#define POLY1305_TAGLEN 16 |
| 22 |
|
| 23 |
void poly1305_auth(u_char out[POLY1305_TAGLEN], const u_char *m, size_t inlen, |
| 24 |
const u_char key[POLY1305_KEYLEN]); |
| 25 |
|
| 26 |
#endif /* POLY1305_H */ |
|