Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sha256_update

Proto:int sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len)

Type:int

Parameter:

TypeParameterName
struct sha256_state *sctx
const u8 *data
unsigned intlen
214  partial = count & 0x3f
215  count += len
216  done = 0
217  src = data
219  If partial + len > 63 Then
220  If partial Then
221  done = -partial
222  No 3D Now!(buf + partial, data, done + 64)
223  src = buf
226  Do
228  done += 64
229  src = data + done
230  When done + 63 < len cycle
232  partial = 0
234  No 3D Now!(buf + partial, src, len - done)
236  Return 0
Caller
NameDescribe
sha224_update
__sha256_final