Lines Matching refs:inlen
73 static void ctr_XOR(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) in ctr_XOR() argument
77 if (in == NULL || inlen == 0) in ctr_XOR()
84 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR()
87 if (inlen <= ctr->keylen) in ctr_XOR()
90 n = inlen - ctr->keylen; in ctr_XOR()
154 const unsigned char *in, size_t inlen) in ctr_BCC_update() argument
156 if (in == NULL || inlen == 0) in ctr_BCC_update()
164 if (inlen >= left) { in ctr_BCC_update()
169 inlen -= left; in ctr_BCC_update()
175 for (; inlen >= 16; in += 16, inlen -= 16) { in ctr_BCC_update()
181 if (inlen > 0) { in ctr_BCC_update()
182 memcpy(ctr->bltmp + ctr->bltmp_pos, in, inlen); in ctr_BCC_update()
183 ctr->bltmp_pos += inlen; in ctr_BCC_update()
204 size_t inlen; in ctr_df() local
216 inlen = in1len + in2len + in3len; in ctr_df()
218 *p++ = (inlen >> 24) & 0xff; in ctr_df()
219 *p++ = (inlen >> 16) & 0xff; in ctr_df()
220 *p++ = (inlen >> 8) & 0xff; in ctr_df()
221 *p++ = inlen & 0xff; in ctr_df()