Home
last modified time | relevance | path

Searched refs:POLYVAL_BLOCK_SIZE (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/crypto/
Dpolyval-generic.c63 u8 buffer[POLYVAL_BLOCK_SIZE];
69 static void copy_and_reverse(u8 dst[POLYVAL_BLOCK_SIZE], in copy_and_reverse() argument
70 const u8 src[POLYVAL_BLOCK_SIZE]) in copy_and_reverse() argument
112 crypto_xor(accumulator, in, POLYVAL_BLOCK_SIZE); in polyval_update_non4k()
114 in += POLYVAL_BLOCK_SIZE; in polyval_update_non4k()
125 if (keylen != POLYVAL_BLOCK_SIZE) in polyval_setkey()
130 BUILD_BUG_ON(sizeof(k) != POLYVAL_BLOCK_SIZE); in polyval_setkey()
135 memzero_explicit(&k, POLYVAL_BLOCK_SIZE); in polyval_setkey()
158 u8 tmp[POLYVAL_BLOCK_SIZE]; in polyval_update()
175 while (srclen >= POLYVAL_BLOCK_SIZE) { in polyval_update()
[all …]
Dhctr2.c123 POLYVAL_BLOCK_SIZE); in hctr2_hash_tweaklen()
177 bool has_remainder = req->cryptlen % POLYVAL_BLOCK_SIZE; in hctr2_hash_tweak()
/linux-6.12.1/arch/arm64/crypto/
Dpolyval-ce-glue.c36 u8 key_powers[NUM_KEY_POWERS][POLYVAL_BLOCK_SIZE];
40 u8 buffer[POLYVAL_BLOCK_SIZE];
78 if (keylen != POLYVAL_BLOCK_SIZE) in polyval_arm64_setkey()
81 memcpy(tctx->key_powers[NUM_KEY_POWERS-1], key, POLYVAL_BLOCK_SIZE); in polyval_arm64_setkey()
84 memcpy(tctx->key_powers[i], key, POLYVAL_BLOCK_SIZE); in polyval_arm64_setkey()
112 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_arm64_update()
125 while (srclen >= POLYVAL_BLOCK_SIZE) { in polyval_arm64_update()
127 nblocks = min(srclen, 4096U) / POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
129 srclen -= nblocks * POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
130 src += nblocks * POLYVAL_BLOCK_SIZE; in polyval_arm64_update()
[all …]
/linux-6.12.1/arch/x86/crypto/
Dpolyval-clmulni_glue.c40 u8 key_powers[NUM_KEY_POWERS][POLYVAL_BLOCK_SIZE] POLYVAL_ALIGN_ATTR;
44 u8 buffer[POLYVAL_BLOCK_SIZE];
87 if (keylen != POLYVAL_BLOCK_SIZE) in polyval_x86_setkey()
90 memcpy(tctx->key_powers[NUM_KEY_POWERS-1], key, POLYVAL_BLOCK_SIZE); in polyval_x86_setkey()
93 memcpy(tctx->key_powers[i], key, POLYVAL_BLOCK_SIZE); in polyval_x86_setkey()
121 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_x86_update()
134 while (srclen >= POLYVAL_BLOCK_SIZE) { in polyval_x86_update()
136 nblocks = min(srclen, 4096U) / POLYVAL_BLOCK_SIZE; in polyval_x86_update()
138 srclen -= nblocks * POLYVAL_BLOCK_SIZE; in polyval_x86_update()
139 src += nblocks * POLYVAL_BLOCK_SIZE; in polyval_x86_update()
[all …]
/linux-6.12.1/include/crypto/
Dpolyval.h14 #define POLYVAL_BLOCK_SIZE 16 macro