Lines Matching refs:len
580 #define HOST_p_c2l_p(c,l,sc,len) { \
583 if (--len == 0) break; \
585 if (--len == 0) break; \
616 #define HOST_p_c2l_p(c,l,sc,len) { \
619 if (--len == 0) break; \
621 if (--len == 0) break; \
644 int HASH_UPDATE (HASH_CTX *c, const void *data_, unsigned long len)
651 if (len==0) return 1;
653 l=(c->Nl+(len<<3))&0xffffffffL;
658 c->Nh+=(len>>29);
667 if ((c->num+len) >= HASH_CBLOCK)
675 len-=(HASH_CBLOCK-c->num);
681 c->num+=len;
682 if ((sc+len) < 4) /* ugly, add char's to a word */
684 l=p[sw]; HOST_p_c2l_p(data,l,sc,len); p[sw]=l;
707 sw=(int)(len/HASH_CBLOCK);
721 len-=sw;
730 len-=HASH_CBLOCK;
739 len-=sw;
744 if (len!=0)
747 c->num = (int)len;
748 ew=(int)(len>>2); /* words to copy */
749 ec=(int)(len&0x03);
1281 mDNSlocal void DNSDigest_ConstructHMACKey(DomainAuthInfo *info, const mDNSu8 *key, mDNSu32 len)
1288 if (len > HMAC_LEN)
1291 MD5_Update(&k, key, len);
1294 len = MD5_LEN;
1300 mDNSPlatformMemCopy(info->keydata_ipad, key, len);
1301 mDNSPlatformMemCopy(info->keydata_opad, key, len);
1329 mDNSu32 len;
1357 len = DomainNameLength(&HMAC_MD5_AlgName);
1358 rdata = tsig.resrec.rdata->u.data + len;
1359 MD5_Update(&c, HMAC_MD5_AlgName.c, len);
1382 // digest error (tcode) and other data len (zero) - we'll add them to the rdata later
1387 MD5_Update(&c, buf.b, sizeof(mDNSOpaque16)); // other data len
1408 rdata[4] = 0; // other data len
1529 // Digest error and other data len (both zero) - we'll add them to the rdata later
1533 MD5_Update(&c, buf.b, sizeof(mDNSOpaque16)); // other data len