Home
last modified time | relevance | path

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

/crypto/
Dansi_cprng.c192 unsigned int byte_count = (unsigned int)nbytes; in get_prng_bytes() local
210 byte_count = DEFAULT_BLK_SZ; in get_prng_bytes()
213 err = byte_count; in get_prng_bytes()
216 byte_count, ctx); in get_prng_bytes()
231 if (byte_count < DEFAULT_BLK_SZ) { in get_prng_bytes()
236 byte_count--; in get_prng_bytes()
238 if (byte_count == 0) in get_prng_bytes()
246 for (; byte_count >= DEFAULT_BLK_SZ; byte_count -= DEFAULT_BLK_SZ) { in get_prng_bytes()
264 if (byte_count) in get_prng_bytes()
Dmd5.c58 mctx->byte_count = 0; in md5_init()
66 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()
68 mctx->byte_count += len; in md5_update()
98 const unsigned int offset = mctx->byte_count & 0x3f; in md5_final()
111 mctx->block[14] = mctx->byte_count << 3; in md5_final()
112 mctx->block[15] = mctx->byte_count >> 29; in md5_final()
Dmd4.c39 u64 byte_count; member
164 mctx->byte_count = 0; in md4_init()
172 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
174 mctx->byte_count += len; in md4_update()
204 const unsigned int offset = mctx->byte_count & 0x3f; in md4_final()
217 mctx->block[14] = mctx->byte_count << 3; in md4_final()
218 mctx->block[15] = mctx->byte_count >> 29; in md4_final()
Drmd256.c26 u64 byte_count; member
239 rctx->byte_count = 0; in rmd256_init()
259 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd256_update()
261 rctx->byte_count += len; in rmd256_update()
299 bits = cpu_to_le64(rctx->byte_count << 3); in rmd256_final()
302 index = rctx->byte_count & 0x3f; in rmd256_final()
Drmd128.c26 u64 byte_count; member
224 rctx->byte_count = 0; in rmd128_init()
240 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd128_update()
242 rctx->byte_count += len; in rmd128_update()
280 bits = cpu_to_le64(rctx->byte_count << 3); in rmd128_final()
283 index = rctx->byte_count & 0x3f; in rmd128_final()
Drmd160.c26 u64 byte_count; member
267 rctx->byte_count = 0; in rmd160_init()
284 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd160_update()
286 rctx->byte_count += len; in rmd160_update()
324 bits = cpu_to_le64(rctx->byte_count << 3); in rmd160_final()
327 index = rctx->byte_count & 0x3f; in rmd160_final()
Drmd320.c26 u64 byte_count; member
286 rctx->byte_count = 0; in rmd320_init()
308 const u32 avail = sizeof(rctx->buffer) - (rctx->byte_count & 0x3f); in rmd320_update()
310 rctx->byte_count += len; in rmd320_update()
348 bits = cpu_to_le64(rctx->byte_count << 3); in rmd320_final()
351 index = rctx->byte_count & 0x3f; in rmd320_final()