Lines Matching refs:curlen
126 md->curlen = 0;
150 if (md->curlen >= sizeof(md->buf))
154 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) {
161 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen));
162 os_memcpy(md->buf + md->curlen, in, n);
163 md->curlen += n;
166 if (md->curlen == SHA256_BLOCK_SIZE) {
170 md->curlen = 0;
189 if (md->curlen >= sizeof(md->buf))
193 md->length += md->curlen * 8;
196 md->buf[md->curlen++] = (unsigned char) 0x80;
202 if (md->curlen > 56) {
203 while (md->curlen < SHA256_BLOCK_SIZE) {
204 md->buf[md->curlen++] = (unsigned char) 0;
207 md->curlen = 0;
211 while (md->curlen < 56) {
212 md->buf[md->curlen++] = (unsigned char) 0;