Searched refs:POLY1305_BLOCK_SIZE (Results 1 – 15 of 15) sorted by relevance
/linux/arch/powerpc/crypto/ |
H A D | poly1305-p10-glue.c | 55 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey() 60 inp += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey() 61 len -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey() 62 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey() 65 if (len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey() 70 acc += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdctxkey() 84 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_p10_update() 90 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_p10_update() 92 POLY1305_BLOCK_SIZE))) { in crypto_poly1305_p10_update() 95 POLY1305_BLOCK_SIZE, 1); in crypto_poly1305_p10_update() [all …]
|
/linux/arch/mips/crypto/ |
H A D | poly1305-glue.c | 48 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 …]
|
/linux/arch/arm64/crypto/ |
H A D | poly1305-glue.c | 56 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 …]
|
/linux/arch/arm/crypto/ |
H A D | poly1305-glue.c | 60 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 …]
|
/linux/crypto/ |
H A D | poly1305_generic.c | 38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey() 40 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey() 41 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey() 44 if (srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey() 49 src += POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey() 50 srclen -= POLY1305_BLOCK_SIZE; in crypto_poly1305_setdesckey() 69 srclen / POLY1305_BLOCK_SIZE, 1); in poly1305_blocks() 79 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update() 85 if (dctx->buflen == POLY1305_BLOCK_SIZE) { in crypto_poly1305_update() 87 POLY1305_BLOCK_SIZE); in crypto_poly1305_update() [all …]
|
H A D | adiantum.c | 53 #define HASH_KEY_SIZE (POLY1305_BLOCK_SIZE + NHPOLY1305_KEY_SIZE) 172 keyp += POLY1305_BLOCK_SIZE; in adiantum_setkey() 235 BUILD_BUG_ON(sizeof(header) % POLY1305_BLOCK_SIZE != 0); in adiantum_hash_header() 237 &header, sizeof(header) / POLY1305_BLOCK_SIZE, 1); in adiantum_hash_header() 239 BUILD_BUG_ON(TWEAK_SIZE % POLY1305_BLOCK_SIZE != 0); in adiantum_hash_header() 241 TWEAK_SIZE / POLY1305_BLOCK_SIZE, 1); in adiantum_hash_header()
|
H A D | nhpoly1305.c | 79 BUILD_BUG_ON(NH_HASH_BYTES % POLY1305_BLOCK_SIZE != 0); in process_nh_hash_value() 82 NH_HASH_BYTES / POLY1305_BLOCK_SIZE, 1); in process_nh_hash_value() 135 key += POLY1305_BLOCK_SIZE; in crypto_nhpoly1305_setkey()
|
H A D | chacha20poly1305.c | 35 u8 pad[POLY1305_BLOCK_SIZE]; 207 padlen = -rctx->cryptlen % POLY1305_BLOCK_SIZE; in poly_cipherpad() 266 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE; in poly_adpad()
|
/linux/arch/x86/crypto/ |
H A D | poly1305_glue.c | 19 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 …]
|
/linux/lib/crypto/ |
H A D | poly1305.c | 36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_update_generic() 42 if (desc->buflen == POLY1305_BLOCK_SIZE) { in poly1305_update_generic() 49 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) { in poly1305_update_generic() 51 nbytes / POLY1305_BLOCK_SIZE, 1); in poly1305_update_generic() 52 src += nbytes - (nbytes % POLY1305_BLOCK_SIZE); in poly1305_update_generic() 53 nbytes %= POLY1305_BLOCK_SIZE; in poly1305_update_generic() 68 POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_final_generic()
|
H A D | poly1305-donna64.c | 14 const u8 raw_key[POLY1305_BLOCK_SIZE]) in poly1305_core_setkey() argument 102 input += POLY1305_BLOCK_SIZE; in poly1305_core_blocks()
|
H A D | poly1305-donna32.c | 14 const u8 raw_key[POLY1305_BLOCK_SIZE]) in poly1305_core_setkey() argument 109 input += POLY1305_BLOCK_SIZE; in poly1305_core_blocks()
|
/linux/include/crypto/ |
H A D | poly1305.h | 12 #define POLY1305_BLOCK_SIZE 16 macro 43 u8 buf[POLY1305_BLOCK_SIZE];
|
H A D | nhpoly1305.h | 33 #define NHPOLY1305_KEY_SIZE (POLY1305_BLOCK_SIZE + NH_KEY_BYTES)
|
/linux/include/crypto/internal/ |
H A D | poly1305.h | 22 const u8 raw_key[POLY1305_BLOCK_SIZE]);
|