Searched refs:pad (Results 1 – 2 of 2) sorted by relevance
202 size_t pad; in __sha256_finish_ctx() local209 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()
233 size_t pad; in __sha512_finish_ctx() local240 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 6 milliseconds