Searched refs:curlen (Results 1 – 5 of 5) sorted by relevance
129 md->curlen = 0; in sha256_init()153 if (md->curlen >= sizeof(md->buf)) in sha256_process()157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()165 os_memcpy(md->buf + md->curlen, in, n); in sha256_process()166 md->curlen += n; in sha256_process()169 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process()173 md->curlen = 0; in sha256_process()192 if (md->curlen >= sizeof(md->buf)) in sha256_done()196 md->length += md->curlen * 8; in sha256_done()[all …]
166 md->curlen = 0; in sha512_init()191 if (md->curlen >= sizeof(md->buf)) in sha512_process()195 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process()202 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process()203 os_memcpy(md->buf + md->curlen, in, n); in sha512_process()204 md->curlen += n; in sha512_process()207 if (md->curlen == SHA512_BLOCK_SIZE) { in sha512_process()211 md->curlen = 0; in sha512_process()230 if (md->curlen >= sizeof(md->buf)) in sha512_done()234 md->length += md->curlen * CONST64(8); in sha512_done()[all …]
54 md->curlen = 0; in sha384_init()82 if (md->curlen >= sizeof(md->buf)) in sha384_done()
16 u32 state[8], curlen; member
16 u32 curlen; member