Home
last modified time | relevance | path

Searched refs:POLY1305_BLOCK_LEN (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/crypto/
H A Dchacha20_poly1305.c35 static const uint8_t zeroes[POLY1305_BLOCK_LEN];
53 if (aad_len % POLY1305_BLOCK_LEN != 0) in chacha20_poly1305_encrypt()
55 POLY1305_BLOCK_LEN - aad_len % POLY1305_BLOCK_LEN); in chacha20_poly1305_encrypt()
70 if (resid % POLY1305_BLOCK_LEN != 0) in chacha20_poly1305_encrypt()
72 POLY1305_BLOCK_LEN - resid % POLY1305_BLOCK_LEN); in chacha20_poly1305_encrypt()
108 if (aad_len % POLY1305_BLOCK_LEN != 0) in chacha20_poly1305_decrypt()
110 POLY1305_BLOCK_LEN - aad_len % POLY1305_BLOCK_LEN); in chacha20_poly1305_decrypt()
112 if (resid % POLY1305_BLOCK_LEN != 0) in chacha20_poly1305_decrypt()
114 POLY1305_BLOCK_LEN - resid % POLY1305_BLOCK_LEN); in chacha20_poly1305_decrypt()
156 if (aad_len % POLY1305_BLOCK_LEN != 0) in xchacha20_poly1305_encrypt()
[all …]
/freebsd/sys/opencrypto/
H A Dxform_poly1305.c15 CTASSERT(POLY1305_BLOCK_LEN == crypto_onetimeauth_poly1305_BYTES);
66 .blocksize = POLY1305_BLOCK_LEN,
H A Dcryptosoft.c1002 if (crp->crp_aad_length % POLY1305_BLOCK_LEN != 0) { in swcr_chacha20_poly1305()
1004 memset(blk, 0, POLY1305_BLOCK_LEN); in swcr_chacha20_poly1305()
1005 exf->update(ctx, blk, POLY1305_BLOCK_LEN - in swcr_chacha20_poly1305()
1006 crp->crp_aad_length % POLY1305_BLOCK_LEN); in swcr_chacha20_poly1305()
1071 if (crp->crp_payload_length % POLY1305_BLOCK_LEN != 0) { in swcr_chacha20_poly1305()
1073 memset(blk, 0, POLY1305_BLOCK_LEN); in swcr_chacha20_poly1305()
1074 exf->update(ctx, blk, POLY1305_BLOCK_LEN - in swcr_chacha20_poly1305()
1075 crp->crp_payload_length % POLY1305_BLOCK_LEN); in swcr_chacha20_poly1305()
H A Dcryptodev.h99 #define POLY1305_BLOCK_LEN 16 macro