/external/curl/lib/ |
sha256.c | 95 unsigned long state[8], curlen; member in struct:sha256_state 165 md->curlen = 0; 189 if(md->curlen > sizeof(md->buf)) 192 if(md->curlen == 0 && inlen >= block_size) { 200 n = CURLMIN(inlen, (block_size - md->curlen)); 201 memcpy(md->buf + md->curlen, in, n); 202 md->curlen += n; 205 if(md->curlen == block_size) { 209 md->curlen = 0; 225 if(md->curlen >= sizeof(md->buf) [all...] |
/external/wpa_supplicant_8/src/crypto/ |
sha256-internal.c | 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 [all...] |
sha256_i.h | 16 u32 state[8], curlen; member in struct:sha256_state
|
sha512_i.h | 16 u32 curlen; member in struct:sha512_state
|
sha512-internal.c | 166 md->curlen = 0; 191 if (md->curlen >= sizeof(md->buf)) 195 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { 202 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); 203 os_memcpy(md->buf + md->curlen, in, n); 204 md->curlen += n; 207 if (md->curlen == SHA512_BLOCK_SIZE) { 211 md->curlen = 0; 230 if (md->curlen >= sizeof(md->buf)) 234 md->length += md->curlen * CONST64(8) [all...] |
sha384-internal.c | 54 md->curlen = 0; 82 if (md->curlen >= sizeof(md->buf))
|
/external/e2fsprogs/lib/ext2fs/ |
sha256.c | 76 __u32 state[8], curlen; member in struct:sha256_state 121 md->sha256.curlen = 0; 140 if (md->sha256.curlen == 0 && inlen >= SHA256_BLOCKSIZE) { 146 n = MIN(inlen, (SHA256_BLOCKSIZE - md->sha256.curlen)); 147 memcpy(md->sha256.buf + md->sha256.curlen, in, (size_t)n); 148 md->sha256.curlen += n; 151 if (md->sha256.curlen == SHA256_BLOCKSIZE) { 154 md->sha256.curlen = 0; 166 md->sha256.length += md->sha256.curlen * 8; 169 md->sha256.buf[md->sha256.curlen++] = (unsigned char)0x80 [all...] |
sha512.c | 106 unsigned long curlen; member in struct:sha512_state 155 md->sha512.curlen = 0; 172 md->sha512.length += md->sha512.curlen * CONST64(8); 175 md->sha512.buf[md->sha512.curlen++] = (unsigned char)0x80; 180 if (md->sha512.curlen > 112) { 181 while (md->sha512.curlen < 128) { 182 md->sha512.buf[md->sha512.curlen++] = (unsigned char)0; 185 md->sha512.curlen = 0; 190 while (md->sha512.curlen < 120) { 191 md->sha512.buf[md->sha512.curlen++] = (unsigned char)0 [all...] |
/external/python/cpython3/Modules/ |
sha1module.c | 47 SHA1_INT32 state[5], curlen; member in struct:sha1_state 199 sha1->curlen = 0; 217 assert(sha1->curlen <= sizeof(sha1->buf)); 220 if (sha1->curlen == 0 && inlen >= SHA1_BLOCKSIZE) { 226 n = Py_MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen)); 227 memcpy(sha1->buf + sha1->curlen, in, (size_t)n); 228 sha1->curlen += (SHA1_INT32)n; 231 if (sha1->curlen == SHA1_BLOCKSIZE) { 234 sha1->curlen = 0; 252 assert(sha1->curlen < sizeof(sha1->buf)) [all...] |
md5module.c | 47 MD5_INT32 state[4], curlen; member in struct:md5_state 224 md5->curlen = 0; 241 assert(md5->curlen <= sizeof(md5->buf)); 244 if (md5->curlen == 0 && inlen >= MD5_BLOCKSIZE) { 250 n = Py_MIN(inlen, (Py_ssize_t)(MD5_BLOCKSIZE - md5->curlen)); 251 memcpy(md5->buf + md5->curlen, in, (size_t)n); 252 md5->curlen += (MD5_INT32)n; 255 if (md5->curlen == MD5_BLOCKSIZE) { 258 md5->curlen = 0; 276 assert(md5->curlen < sizeof(md5->buf)) [all...] |
/external/f2fs-tools/tools/ |
sha512.c | 126 unsigned long curlen; member in struct:sha512_state 175 md->sha512.curlen = 0; 192 md->sha512.length += md->sha512.curlen * CONST64(8); 195 md->sha512.buf[md->sha512.curlen++] = (unsigned char)0x80; 200 if (md->sha512.curlen > 112) { 201 while (md->sha512.curlen < 128) { 202 md->sha512.buf[md->sha512.curlen++] = (unsigned char)0; 205 md->sha512.curlen = 0; 210 while (md->sha512.curlen < 120) { 211 md->sha512.buf[md->sha512.curlen++] = (unsigned char)0 [all...] |
/external/elfutils/src/ |
strings.c | 317 size_t curlen = *unprinted == NULL ? 0 : strlen (*unprinted); local 341 ++curlen; 345 if (curlen >= min_len) 376 curlen = 0; 385 if (curlen != 0) 386 *unprinted = xstrndup ((const char *) start, curlen); 402 size_t curlen = *unprinted == NULL ? 0 : strlen (*unprinted); local 409 ++curlen; 413 if (curlen >= min_len) 439 curlen = 0 [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
trees.c | 712 int curlen; /* length of current code */
local 722 curlen = nextlen; nextlen = tree[n+1].Len;
723 if (++count < max_count && curlen == nextlen) {
726 s->bl_tree[curlen].Freq += count;
727 } else if (curlen != 0) {
728 if (curlen != prevlen) s->bl_tree[curlen].Freq++;
735 count = 0; prevlen = curlen;
738 } else if (curlen == nextlen) {
757 int curlen; /* length of current code */ local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
trees.c | 714 int curlen; /* length of current code */
local 724 curlen = nextlen; nextlen = tree[n+1].Len;
725 if (++count < max_count && curlen == nextlen) {
728 s->bl_tree[curlen].Freq += count;
729 } else if (curlen != 0) {
730 if (curlen != prevlen) s->bl_tree[curlen].Freq++;
737 count = 0; prevlen = curlen;
740 } else if (curlen == nextlen) {
759 int curlen; /* length of current code */ local [all...] |
/external/python/cpython2/Modules/zlib/ |
trees.c | 710 int curlen; /* length of current code */ local 720 curlen = nextlen; nextlen = tree[n+1].Len; 721 if (++count < max_count && curlen == nextlen) { 724 s->bl_tree[curlen].Freq += count; 725 } else if (curlen != 0) { 726 if (curlen != prevlen) s->bl_tree[curlen].Freq++; 733 count = 0; prevlen = curlen; 736 } else if (curlen == nextlen) { 755 int curlen; /* length of current code * local [all...] |
/external/zlib/src/ |
trees.c | 710 int curlen; /* length of current code */ local 720 curlen = nextlen; nextlen = tree[n+1].Len; 721 if (++count < max_count && curlen == nextlen) { 724 s->bl_tree[curlen].Freq += count; 725 } else if (curlen != 0) { 726 if (curlen != prevlen) s->bl_tree[curlen].Freq++; 733 count = 0; prevlen = curlen; 736 } else if (curlen == nextlen) { 755 int curlen; /* length of current code * local [all...] |
/external/u-boot/lib/zlib/ |
trees.c | 718 int curlen; /* length of current code */ local 728 curlen = nextlen; nextlen = tree[n+1].Len; 729 if (++count < max_count && curlen == nextlen) { 732 s->bl_tree[curlen].Freq += count; 733 } else if (curlen != 0) { 734 if (curlen != prevlen) s->bl_tree[curlen].Freq++; 741 count = 0; prevlen = curlen; 744 } else if (curlen == nextlen) { 763 int curlen; /* length of current code * local [all...] |
/external/libxml2/ |
testlimits.c | 167 size_t curlen = 0; variable 192 curlen = 0; 205 curlen = 0; 214 curlen += len; 215 if (curlen >= maxlen) { 220 if (curlen > dotlen) { 339 curlen = 0; 351 curlen = 0; 360 curlen += len; 361 if (curlen >= maxlen) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/ |
punycode.py | 58 curlen = selective_len(str, char)
59 delta = (curlen+1) * (char - oldchar)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/ |
punycode.py | 58 curlen = selective_len(str, char)
59 delta = (curlen+1) * (char - oldchar)
|
/external/python/cpython2/Lib/encodings/ |
punycode.py | 58 curlen = selective_len(str, char) 59 delta = (curlen+1) * (char - oldchar)
|
/external/python/cpython3/Lib/encodings/ |
punycode.py | 56 curlen = selective_len(str, char) 57 delta = (curlen+1) * (char - oldchar)
|
/external/u-boot/net/ |
bootp.c | 183 static int truncate_sz(const char *name, int maxlen, int curlen) 185 if (curlen >= maxlen) { 187 " - truncated\n", name, curlen, maxlen); 188 curlen = maxlen - 1; 190 return curlen;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/ |
header.py | 459 curlen = linelen + max(0, len(this)-1) * joinlen
468 elif curlen + partlen > maxlen:
|
/external/python/cpython2/Lib/email/ |
header.py | 459 curlen = linelen + max(0, len(this)-1) * joinlen 468 elif curlen + partlen > maxlen:
|