Searched refs:POLY1305_TAGLEN (Results 1 - 8 of 8) sorted by relevance

/openbsd-current/usr.bin/ssh/
H A Dpoly1305.h14 #define POLY1305_TAGLEN 16 macro
16 void poly1305_auth(u_char out[POLY1305_TAGLEN], const u_char *m, size_t inlen,
18 __attribute__((__bounded__(__minbytes__, 1, POLY1305_TAGLEN)))
H A Dcipher-chachapoly.c58 * POLY1305_TAGLEN bytes at offset 'len'+'aadlen' as the authentication
67 u_char expected_tag[POLY1305_TAGLEN], poly_key[POLY1305_KEYLEN];
85 if (timingsafe_bcmp(expected_tag, tag, POLY1305_TAGLEN) != 0) {
H A Dcipher-chachapoly-libcrypto.c74 * POLY1305_TAGLEN bytes at offset 'len'+'aadlen' as the authentication
83 u_char expected_tag[POLY1305_TAGLEN], poly_key[POLY1305_KEYLEN];
104 if (timingsafe_bcmp(expected_tag, tag, POLY1305_TAGLEN) != 0) {
H A Dpoly1305.c29 poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN]) {
/openbsd-current/sys/crypto/
H A Dchachapoly.h38 #define POLY1305_TAGLEN 16 macro
61 void Chacha20_Poly1305_Final(uint8_t[POLY1305_TAGLEN], void *);
65 #define CHACHA20POLY1305_AUTHTAG_SIZE POLY1305_TAGLEN
H A Dchachapoly.c108 Chacha20_Poly1305_Final(uint8_t tag[POLY1305_TAGLEN], void *xctx)
H A Dxform.c294 CHACHA20_KEYSIZE+CHACHA20_SALT, POLY1305_BLOCK_LEN, POLY1305_TAGLEN,
/openbsd-current/regress/sys/crypto/chachapoly/
H A Dchachapoly_test.c378 u_char *p, *data[TST_NUM], tag[POLY1305_TAGLEN];
420 fail = !match(data[TST_TAG], tag, POLY1305_TAGLEN);

Completed in 143 milliseconds