Searched refs:curlen (Results 1 – 5 of 5) sorted by relevance
126 md->curlen = 0; in sha256_init()150 if (md->curlen >= sizeof(md->buf)) in sha256_process()154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()162 os_memcpy(md->buf + md->curlen, in, n); in sha256_process()163 md->curlen += n; in sha256_process()166 if (md->curlen == SHA256_BLOCK_SIZE) { in sha256_process()170 md->curlen = 0; in sha256_process()189 if (md->curlen >= sizeof(md->buf)) in sha256_done()193 md->length += md->curlen * 8; in sha256_done()[all …]
163 md->curlen = 0; in sha512_init()188 if (md->curlen >= sizeof(md->buf)) in sha512_process()192 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process()199 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process()200 os_memcpy(md->buf + md->curlen, in, n); in sha512_process()201 md->curlen += n; in sha512_process()204 if (md->curlen == SHA512_BLOCK_SIZE) { in sha512_process()208 md->curlen = 0; in sha512_process()227 if (md->curlen >= sizeof(md->buf)) in sha512_done()231 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