Home
last modified time | relevance | path

Searched refs:pad (Results 1 – 3 of 3) sorted by relevance

/crypt/
A Dsha256.c114 size_t pad; in __sha256_finish_ctx() local
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 Dmd5.c107 size_t pad; in md5_finish_ctx() local
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()
A Dsha512.c135 size_t pad; in __sha512_finish_ctx() local
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()

Completed in 7 milliseconds