Home
last modified time | relevance | path

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

/lib/crypto/
Dblake2s.c38 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() local
39 blake2s_compress(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in blake2s_update()
40 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
41 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
Dblake2s-generic.c40 size_t nblocks, const u32 inc)
44 size_t nblocks, const u32 inc) in blake2s_compress_generic() argument
51 (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE)); in blake2s_compress_generic()
53 while (nblocks > 0) { in blake2s_compress_generic()
106 --nblocks; in blake2s_compress_generic()
Dpoly1305-donna64.c34 unsigned int nblocks, u32 hibit) in poly1305_core_blocks() argument
44 if (!nblocks) in poly1305_core_blocks()
103 } while (--nblocks); in poly1305_core_blocks()
Dpoly1305-donna32.c33 unsigned int nblocks, u32 hibit) in poly1305_core_blocks() argument
42 if (!nblocks) in poly1305_core_blocks()
110 } while (--nblocks); in poly1305_core_blocks()
/lib/vdso/
Dgetrandom.c73 size_t batch_len, nblocks, orig_len = len; in __cvdso_getrandom_data() local
235 nblocks = len / CHACHA_BLOCK_SIZE; in __cvdso_getrandom_data()
236 if (nblocks) { in __cvdso_getrandom_data()
237 __arch_chacha20_blocks_nostack(buffer, state->key, counter, nblocks); in __cvdso_getrandom_data()
238 buffer += nblocks * CHACHA_BLOCK_SIZE; in __cvdso_getrandom_data()
239 len -= nblocks * CHACHA_BLOCK_SIZE; in __cvdso_getrandom_data()