Home
last modified time | relevance | path

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

/arch/mips/crypto/
Dpoly1305-glue.c48 src += POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
49 len -= POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
52 if (len >= POLY1305_BLOCK_SIZE) { in mips_poly1305_blocks()
57 src += POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
58 len -= POLY1305_BLOCK_SIZE; in mips_poly1305_blocks()
61 if (len < POLY1305_BLOCK_SIZE) in mips_poly1305_blocks()
65 len &= ~(POLY1305_BLOCK_SIZE - 1); in mips_poly1305_blocks()
76 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in mips_poly1305_update()
83 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in mips_poly1305_update()
84 mips_poly1305_blocks(dctx, dctx->buf, POLY1305_BLOCK_SIZE, 1); in mips_poly1305_update()
[all …]
/arch/arm64/crypto/
Dpoly1305-glue.c56 src += POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
57 len -= POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
60 if (len >= POLY1305_BLOCK_SIZE) { in neon_poly1305_blocks()
65 src += POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
66 len -= POLY1305_BLOCK_SIZE; in neon_poly1305_blocks()
69 if (len < POLY1305_BLOCK_SIZE) in neon_poly1305_blocks()
73 len &= ~(POLY1305_BLOCK_SIZE - 1); in neon_poly1305_blocks()
85 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in neon_poly1305_do_update()
92 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in neon_poly1305_do_update()
94 POLY1305_BLOCK_SIZE, 1, false); in neon_poly1305_do_update()
[all …]
/arch/arm/crypto/
Dpoly1305-glue.c60 src += POLY1305_BLOCK_SIZE; in arm_poly1305_blocks()
61 len -= POLY1305_BLOCK_SIZE; in arm_poly1305_blocks()
64 if (len >= POLY1305_BLOCK_SIZE) { in arm_poly1305_blocks()
69 src += POLY1305_BLOCK_SIZE; in arm_poly1305_blocks()
70 len -= POLY1305_BLOCK_SIZE; in arm_poly1305_blocks()
73 if (len < POLY1305_BLOCK_SIZE) in arm_poly1305_blocks()
77 len &= ~(POLY1305_BLOCK_SIZE - 1); in arm_poly1305_blocks()
89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); in arm_poly1305_do_update()
96 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in arm_poly1305_do_update()
98 POLY1305_BLOCK_SIZE, 1, false); in arm_poly1305_do_update()
[all …]
/arch/x86/crypto/
Dpoly1305_glue.c19 const u8 key[POLY1305_BLOCK_SIZE]);
84 static void poly1305_simd_init(void *ctx, const u8 key[POLY1305_BLOCK_SIZE]) in poly1305_simd_init() argument
95 BUILD_BUG_ON(SZ_4K < POLY1305_BLOCK_SIZE || in poly1305_simd_blocks()
96 SZ_4K % POLY1305_BLOCK_SIZE); in poly1305_simd_blocks()
99 (len < (POLY1305_BLOCK_SIZE * 18) && !state->is_base2_26) || in poly1305_simd_blocks()
149 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey()
151 inp += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
152 len -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
153 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey()
156 if (len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey()
[all …]