Home
last modified time | relevance | path

Searched refs:msgByteCnt (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/algs/skein/
H A Dskein.c148 Skein_256_Update(Skein_256_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt) in Skein_256_Update() argument
156 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) { in Skein_256_Update()
163 Skein_assert(n < msgByteCnt); in Skein_256_Update()
165 msgByteCnt -= n; in Skein_256_Update()
178 if (msgByteCnt > SKEIN_256_BLOCK_BYTES) { in Skein_256_Update()
180 n = (msgByteCnt - 1) / SKEIN_256_BLOCK_BYTES; in Skein_256_Update()
183 msgByteCnt -= n * SKEIN_256_BLOCK_BYTES; in Skein_256_Update()
190 if (msgByteCnt) { in Skein_256_Update()
191 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES); in Skein_256_Update()
192 memcpy(&ctx->b[ctx->h.bCnt], msg, msgByteCnt); in Skein_256_Update()
[all …]
/freebsd/sys/crypto/skein/
H A Dskein.c141 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt) in Skein_256_Update() argument
148 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) in Skein_256_Update()
155 Skein_assert(n < msgByteCnt); /* check on our logic here */ in Skein_256_Update()
157 msgByteCnt -= n; in Skein_256_Update()
166 if (msgByteCnt > SKEIN_256_BLOCK_BYTES) in Skein_256_Update()
168 n = (msgByteCnt-1) / SKEIN_256_BLOCK_BYTES; /* number of full blocks to process */ in Skein_256_Update()
170 msgByteCnt -= n * SKEIN_256_BLOCK_BYTES; in Skein_256_Update()
177 if (msgByteCnt) in Skein_256_Update()
179 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES); in Skein_256_Update()
180 memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt); in Skein_256_Update()
[all …]
H A Dskein.h99 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt);
100 int Skein_512_Update(Skein_512_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt);
101 int Skein1024_Update(Skein1024_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt);
/freebsd/sys/contrib/openzfs/include/sys/
H A Dskein.h96 size_t msgByteCnt);
98 size_t msgByteCnt);
100 size_t msgByteCnt);