Lines Matching refs:byteoff
121 unsigned int byteoff = bitoff / 8; in WHIRLPOOL_BitUpdate() local
127 memcpy(c->data + byteoff, inp, bitrem); in WHIRLPOOL_BitUpdate()
132 memcpy(c->data + byteoff, inp, bits / 8); in WHIRLPOOL_BitUpdate()
155 unsigned int byteoff = bitoff / 8; in WHIRLPOOL_BitUpdate() local
160 c->data[byteoff++] |= inp[0] & (0xff >> inpgap); in WHIRLPOOL_BitUpdate()
179 c->data[byteoff++] |= b >> bitrem; in WHIRLPOOL_BitUpdate()
181 c->data[byteoff++] = b; in WHIRLPOOL_BitUpdate()
187 byteoff = 0; in WHIRLPOOL_BitUpdate()
191 c->data[byteoff] = b << (8 - bitrem); in WHIRLPOOL_BitUpdate()
196 c->data[byteoff++] |= b >> bitrem; in WHIRLPOOL_BitUpdate()
198 c->data[byteoff++] = b; in WHIRLPOOL_BitUpdate()
202 byteoff = 0; in WHIRLPOOL_BitUpdate()
206 c->data[byteoff] = b << (8 - bitrem); in WHIRLPOOL_BitUpdate()
216 unsigned int bitoff = c->bitoff, byteoff = bitoff / 8; in WHIRLPOOL_Final() local
222 c->data[byteoff] |= 0x80 >> bitoff; in WHIRLPOOL_Final()
224 c->data[byteoff] = 0x80; in WHIRLPOOL_Final()
225 byteoff++; in WHIRLPOOL_Final()
228 if (byteoff > (WHIRLPOOL_BBLOCK / 8 - WHIRLPOOL_COUNTER)) { in WHIRLPOOL_Final()
229 if (byteoff < WHIRLPOOL_BBLOCK / 8) in WHIRLPOOL_Final()
230 memset(&c->data[byteoff], 0, WHIRLPOOL_BBLOCK / 8 - byteoff); in WHIRLPOOL_Final()
232 byteoff = 0; in WHIRLPOOL_Final()
234 if (byteoff < (WHIRLPOOL_BBLOCK / 8 - WHIRLPOOL_COUNTER)) in WHIRLPOOL_Final()
235 memset(&c->data[byteoff], 0, in WHIRLPOOL_Final()
236 (WHIRLPOOL_BBLOCK / 8 - WHIRLPOOL_COUNTER) - byteoff); in WHIRLPOOL_Final()