Lines Matching refs:curlen
129 md->curlen = 0;
153 if (md->curlen >= sizeof(md->buf))
157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
165 os_memcpy(md->buf + md->curlen, in, n);
166 md->curlen += n;
169 if (md->curlen == SHA256_BLOCK_SIZE) {
173 md->curlen = 0;
192 if (md->curlen >= sizeof(md->buf))
196 md->length += md->curlen * 8;
199 md->buf[md->curlen++] = (unsigned char) 0x80;
205 if (md->curlen > 56) {
206 while (md->curlen < SHA256_BLOCK_SIZE) {
207 md->buf[md->curlen++] = (unsigned char) 0;
210 md->curlen = 0;
214 while (md->curlen < 56) {
215 md->buf[md->curlen++] = (unsigned char) 0;