Searched refs:BLAKE2S_BLOCK_SIZE (Results 1 – 7 of 7) sorted by relevance
/linux/lib/crypto/ |
A D | blake2s.c | 43 u8 x_key[BLAKE2S_BLOCK_SIZE] __aligned(__alignof__(u32)) = { 0 }; in blake2s256_hmac() 47 if (keylen > BLAKE2S_BLOCK_SIZE) { in blake2s256_hmac() 54 for (i = 0; i < BLAKE2S_BLOCK_SIZE; ++i) in blake2s256_hmac() 58 blake2s_update(&state, x_key, BLAKE2S_BLOCK_SIZE); in blake2s256_hmac() 62 for (i = 0; i < BLAKE2S_BLOCK_SIZE; ++i) in blake2s256_hmac() 66 blake2s_update(&state, x_key, BLAKE2S_BLOCK_SIZE); in blake2s256_hmac() 71 memzero_explicit(x_key, BLAKE2S_BLOCK_SIZE); in blake2s256_hmac()
|
A D | blake2s-generic.c | 48 (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE)); in blake2s_compress_generic() 52 memcpy(m, block, BLAKE2S_BLOCK_SIZE); in blake2s_compress_generic() 102 block += BLAKE2S_BLOCK_SIZE; in blake2s_compress_generic()
|
/linux/include/crypto/internal/ |
A D | blake2s.h | 36 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; in __blake2s_update() 42 (*compress)(state, state->buf, 1, BLAKE2S_BLOCK_SIZE); in __blake2s_update() 47 if (inlen > BLAKE2S_BLOCK_SIZE) { in __blake2s_update() 48 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in __blake2s_update() 50 (*compress)(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in __blake2s_update() 51 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in __blake2s_update() 52 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in __blake2s_update() 63 BLAKE2S_BLOCK_SIZE - state->buflen); /* Padding */ in __blake2s_final()
|
/linux/arch/x86/crypto/ |
A D | blake2s-glue.c | 36 BUILD_BUG_ON(SZ_4K / BLAKE2S_BLOCK_SIZE < 8); in blake2s_compress_arch() 45 SZ_4K / BLAKE2S_BLOCK_SIZE); in blake2s_compress_arch() 56 block += blocks * BLAKE2S_BLOCK_SIZE; in blake2s_compress_arch() 78 .base.cra_blocksize = BLAKE2S_BLOCK_SIZE, \
|
/linux/include/crypto/ |
A D | blake2s.h | 15 BLAKE2S_BLOCK_SIZE = 64, enumerator 30 u8 buf[BLAKE2S_BLOCK_SIZE]; 65 memset(&state->buf[keylen], 0, BLAKE2S_BLOCK_SIZE - keylen); in __blake2s_init() 66 state->buflen = BLAKE2S_BLOCK_SIZE; in __blake2s_init()
|
/linux/crypto/ |
A D | blake2s_generic.c | 32 .base.cra_blocksize = BLAKE2S_BLOCK_SIZE, \
|
/linux/arch/arm/crypto/ |
A D | blake2s-glue.c | 33 .base.cra_blocksize = BLAKE2S_BLOCK_SIZE, \
|
Completed in 7 milliseconds