Searched refs:BLAKE2S_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/wg/ |
H A D | wg_crypto.c | 97 uint8_t block[BLAKE2S_BLOCK_SIZE] = { 0 }; in blake2s_init_key() 102 blake2s_update(state, block, BLAKE2S_BLOCK_SIZE); in blake2s_init_key() 103 explicit_bzero(block, BLAKE2S_BLOCK_SIZE); in blake2s_init_key() 116 memcpy(m, block, BLAKE2S_BLOCK_SIZE); in blake2s_compress() 166 block += BLAKE2S_BLOCK_SIZE; in blake2s_compress() 173 const size_t fill = BLAKE2S_BLOCK_SIZE - state->buflen; in blake2s_update() 179 blake2s_compress(state, state->buf, 1, BLAKE2S_BLOCK_SIZE); in blake2s_update() 184 if (inlen > BLAKE2S_BLOCK_SIZE) { in blake2s_update() 185 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() 187 blake2s_compress(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in blake2s_update() [all …]
|
H A D | crypto.h | 82 BLAKE2S_BLOCK_SIZE = 64, enumerator 92 uint8_t buf[BLAKE2S_BLOCK_SIZE];
|
H A D | wg_noise.c | 1199 uint8_t x_key[BLAKE2S_BLOCK_SIZE] __aligned(sizeof(uint32_t)) = { 0 }; in hmac() 1203 if (keylen > BLAKE2S_BLOCK_SIZE) { in hmac() 1210 for (i = 0; i < BLAKE2S_BLOCK_SIZE; ++i) in hmac() 1214 blake2s_update(&state, x_key, BLAKE2S_BLOCK_SIZE); in hmac() 1218 for (i = 0; i < BLAKE2S_BLOCK_SIZE; ++i) in hmac() 1222 blake2s_update(&state, x_key, BLAKE2S_BLOCK_SIZE); in hmac() 1227 explicit_bzero(x_key, BLAKE2S_BLOCK_SIZE); in hmac()
|