Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/poly1305.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9212 - (hide annotations) (download) (as text)
Sat Apr 17 14:54:57 2021 UTC (2 years, 11 months ago) by nmaya
File MIME type: text/x-chdr
File size: 671 byte(s)
OpenSSH-8.5p1 から cipher-chachapoly, poly1305 のファイルを追加
1 nmaya 9212 /* 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 <sys/types.h>
14     typedef unsigned char u_char;
15     typedef unsigned int size_t;
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 */

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26