Searched refs:bytes (Results 1 – 2 of 2) sorted by relevance
201 uint32_t bytes = ctx->buflen; in __sha256_finish_ctx() local205 ctx->total[0] += bytes; in __sha256_finish_ctx()206 if (ctx->total[0] < bytes) in __sha256_finish_ctx()209 pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes; in __sha256_finish_ctx()210 memcpy (&ctx->buffer[bytes], fillbuf, pad); in __sha256_finish_ctx()213 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in __sha256_finish_ctx()214 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in __sha256_finish_ctx()218 sha256_process_block (ctx->buffer, bytes + pad + 8, ctx); in __sha256_finish_ctx()
232 uint64_t bytes = ctx->buflen; in __sha512_finish_ctx() local236 ctx->total[0] += bytes; in __sha512_finish_ctx()237 if (ctx->total[0] < bytes) in __sha512_finish_ctx()240 pad = bytes >= 112 ? 128 + 112 - bytes : 112 - bytes; in __sha512_finish_ctx()241 memcpy (&ctx->buffer[bytes], fillbuf, pad); in __sha512_finish_ctx()244 *(uint64_t *) &ctx->buffer[bytes + pad + 8] = SWAP (ctx->total[0] << 3); in __sha512_finish_ctx()245 *(uint64_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in __sha512_finish_ctx()249 sha512_process_block (ctx->buffer, bytes + pad + 16, ctx); in __sha512_finish_ctx()
Completed in 7 milliseconds