Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\blake2s.c Create Date:2022-07-28 06:44:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blake2s_update

Proto:void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen)

Type:void

Parameter:

TypeParameterName
struct blake2s_state *state
const u8 *in
size_tinlen
24  fill = BLAKE2S_BLOCK_SIZE - buflen
26  If Value for the false possibility is greater at compile time(!inlen) Then Return
28  If inlen > fill Then
29  No 3D Now!(buf + buflen, in, fill)
30  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S) Then blake2s_compress_arch(state, buf, 1, BLAKE2S_BLOCK_SIZE)
33  Else blake2s_compress_generic(state, buf, 1, BLAKE2S_BLOCK_SIZE)
36  buflen = 0
37  in += fill
38  inlen -= fill
40  If inlen > BLAKE2S_BLOCK_SIZE Then
41  nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE)
43  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S) Then blake2s_compress_arch(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE)
46  Else blake2s_compress_generic(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE)
49  in += BLAKE2S_BLOCK_SIZE * (nblocks - 1)
50  inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1)
52  No 3D Now!(buf + buflen, in, inlen)
53  buflen += inlen
Caller
NameDescribe
blake2s256_hmac
blake2s_selftest