Home
last modified time | relevance | path

Searched refs:byte_count (Results 1 – 7 of 7) sorted by relevance

/crypto/
Dansi_cprng.c184 unsigned int byte_count = (unsigned int)nbytes; in get_prng_bytes() local
202 byte_count = DEFAULT_BLK_SZ; in get_prng_bytes()
212 byte_count, ctx); in get_prng_bytes()
227 if (byte_count < DEFAULT_BLK_SZ) { in get_prng_bytes()
232 byte_count--; in get_prng_bytes()
234 if (byte_count == 0) in get_prng_bytes()
242 for (; byte_count >= DEFAULT_BLK_SZ; byte_count -= DEFAULT_BLK_SZ) { in get_prng_bytes()
260 if (byte_count) in get_prng_bytes()
Dmd4.c39 u64 byte_count; member
147 mctx->byte_count = 0; in md4_init()
155 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
157 mctx->byte_count += len; in md4_update()
187 const unsigned int offset = mctx->byte_count & 0x3f; in md4_final()
200 mctx->block[14] = mctx->byte_count << 3; in md4_final()
201 mctx->block[15] = mctx->byte_count >> 29; in md4_final()
Dmd5.c140 mctx->byte_count = 0; in md5_init()
148 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()
150 mctx->byte_count += len; in md5_update()
180 const unsigned int offset = mctx->byte_count & 0x3f; in md5_final()
193 mctx->block[14] = mctx->byte_count << 3; in md5_final()
194 mctx->block[15] = mctx->byte_count >> 29; in md5_final()
Drmd256.c21 u64 byte_count; member
232 rctx->byte_count = 0; in rmd256_init()
252 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd256_update()
254 rctx->byte_count += len; in rmd256_update()
292 bits = cpu_to_le64(rctx->byte_count << 3); in rmd256_final()
295 index = rctx->byte_count & 0x3f; in rmd256_final()
Drmd128.c21 u64 byte_count; member
217 rctx->byte_count = 0; in rmd128_init()
233 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd128_update()
235 rctx->byte_count += len; in rmd128_update()
273 bits = cpu_to_le64(rctx->byte_count << 3); in rmd128_final()
276 index = rctx->byte_count & 0x3f; in rmd128_final()
Drmd160.c21 u64 byte_count; member
260 rctx->byte_count = 0; in rmd160_init()
277 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd160_update()
279 rctx->byte_count += len; in rmd160_update()
317 bits = cpu_to_le64(rctx->byte_count << 3); in rmd160_final()
320 index = rctx->byte_count & 0x3f; in rmd160_final()
Drmd320.c21 u64 byte_count; member
279 rctx->byte_count = 0; in rmd320_init()
301 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd320_update()
303 rctx->byte_count += len; in rmd320_update()
341 bits = cpu_to_le64(rctx->byte_count << 3); in rmd320_final()
344 index = rctx->byte_count & 0x3f; in rmd320_final()