Searched refs:bytes (Results 1 – 3 of 3) sorted by relevance
/crypt/ |
A D | sha256.c | 113 uint32_t bytes = ctx->buflen; in __sha256_finish_ctx() local 117 ctx->total64 += bytes; in __sha256_finish_ctx() 119 pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes; in __sha256_finish_ctx() 120 memcpy (&ctx->buffer[bytes], fillbuf, pad); in __sha256_finish_ctx() 124 ctx->buffer64[(bytes + pad) / 8] = SWAP64 (ctx->total64 << 3); in __sha256_finish_ctx() 126 ctx->buffer32[(bytes + pad + 4) / 4] = SWAP (ctx->total[TOTAL64_low] << 3); in __sha256_finish_ctx() 127 ctx->buffer32[(bytes + pad) / 4] = SWAP ((ctx->total[TOTAL64_high] << 3) in __sha256_finish_ctx() 132 __sha256_process_block (ctx->buffer, bytes + pad + 8, ctx); in __sha256_finish_ctx()
|
A D | sha512.c | 134 uint64_t bytes = ctx->buflen; in __sha512_finish_ctx() local 139 ctx->total128 += bytes; in __sha512_finish_ctx() 141 ctx->total[TOTAL128_low] += bytes; in __sha512_finish_ctx() 142 if (ctx->total[TOTAL128_low] < bytes) in __sha512_finish_ctx() 146 pad = bytes >= 112 ? 128 + 112 - bytes : 112 - bytes; in __sha512_finish_ctx() 147 memcpy (&ctx->buffer[bytes], fillbuf, pad); in __sha512_finish_ctx() 150 ctx->buffer64[(bytes + pad + 8) / 8] = SWAP (ctx->total[TOTAL128_low] << 3); in __sha512_finish_ctx() 151 ctx->buffer64[(bytes + pad) / 8] = SWAP ((ctx->total[TOTAL128_high] << 3) in __sha512_finish_ctx() 155 __sha512_process_block (ctx->buffer, bytes + pad + 16, ctx); in __sha512_finish_ctx()
|
A D | md5.c | 106 md5_uint32 bytes = ctx->buflen; in md5_finish_ctx() local 110 ctx->total[0] += bytes; in md5_finish_ctx() 111 if (ctx->total[0] < bytes) in md5_finish_ctx() 114 pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes; in md5_finish_ctx() 115 memcpy (&ctx->buffer[bytes], fillbuf, pad); in md5_finish_ctx() 118 ctx->buffer32[(bytes + pad) / 4] = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 119 ctx->buffer32[(bytes + pad + 4) / 4] = SWAP ((ctx->total[1] << 3) in md5_finish_ctx() 123 __md5_process_block (ctx->buffer, bytes + pad + 8, ctx); in md5_finish_ctx()
|
Completed in 8 milliseconds