Searched refs:POLY1305_BLOCK_SIZE (Results 1 – 7 of 7) sorted by relevance
54 u8 m[POLY1305_BLOCK_SIZE]; in poly1305_simd_mult()79 if (poly1305_use_avx2 && srclen >= POLY1305_BLOCK_SIZE * 4) { in poly1305_simd_blocks()92 blocks = srclen / (POLY1305_BLOCK_SIZE * 4); in poly1305_simd_blocks()95 src += POLY1305_BLOCK_SIZE * 4 * blocks; in poly1305_simd_blocks()96 srclen -= POLY1305_BLOCK_SIZE * 4 * blocks; in poly1305_simd_blocks()99 if (likely(srclen >= POLY1305_BLOCK_SIZE * 2)) { in poly1305_simd_blocks()105 blocks = srclen / (POLY1305_BLOCK_SIZE * 2); in poly1305_simd_blocks()108 src += POLY1305_BLOCK_SIZE * 2 * blocks; in poly1305_simd_blocks()109 srclen -= POLY1305_BLOCK_SIZE * 2 * blocks; in poly1305_simd_blocks()111 if (srclen >= POLY1305_BLOCK_SIZE) { in poly1305_simd_blocks()[all …]
70 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()72 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()73 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()76 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey()81 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()82 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey()148 src += POLY1305_BLOCK_SIZE; in poly1305_blocks_internal()178 src, srclen / POLY1305_BLOCK_SIZE, hibit); in poly1305_blocks()188 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()194 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update()[all …]
53 #define HASH_KEY_SIZE (POLY1305_BLOCK_SIZE + NHPOLY1305_KEY_SIZE)178 keyp += POLY1305_BLOCK_SIZE; in adiantum_setkey()243 BUILD_BUG_ON(sizeof(header) % POLY1305_BLOCK_SIZE != 0); in adiantum_hash_header()245 &header, sizeof(header) / POLY1305_BLOCK_SIZE); in adiantum_hash_header()247 BUILD_BUG_ON(TWEAK_SIZE % POLY1305_BLOCK_SIZE != 0); in adiantum_hash_header()249 TWEAK_SIZE / POLY1305_BLOCK_SIZE); in adiantum_hash_header()
78 BUILD_BUG_ON(NH_HASH_BYTES % POLY1305_BLOCK_SIZE != 0); in process_nh_hash_value()81 NH_HASH_BYTES / POLY1305_BLOCK_SIZE); in process_nh_hash_value()134 key += POLY1305_BLOCK_SIZE; in crypto_nhpoly1305_setkey()
37 u8 pad[POLY1305_BLOCK_SIZE];209 padlen = -rctx->cryptlen % POLY1305_BLOCK_SIZE; in poly_cipherpad()268 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE; in poly_adpad()
12 #define POLY1305_BLOCK_SIZE 16 macro32 u8 buf[POLY1305_BLOCK_SIZE];
33 #define NHPOLY1305_KEY_SIZE (POLY1305_BLOCK_SIZE + NH_KEY_BYTES)