Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/ttssh2/ttxssh/poly1305.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9255 - (hide annotations) (download) (as text)
Wed May 19 14:11:26 2021 UTC (2 years, 10 months ago) by nmaya
File MIME type: text/x-chdr
File size: 661 byte(s)
SSH2 暗号化方式 chacha20-poly1305@openssh.com をサポート

merge from branches/ssh_chacha20poly1305
r9209, r9210, r9211, r9212, r9217, r9229, r9248, r9249, r9250, r9251, r9252, r9253
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 nmaya 9255 #include <stdio.h>
14 nmaya 9212 #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 */

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