Lines Matching defs:msgByteCnt

141 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt)
148 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES)
155 Skein_assert(n < msgByteCnt); /* check on our logic here */
157 msgByteCnt -= n;
166 if (msgByteCnt > SKEIN_256_BLOCK_BYTES)
168 n = (msgByteCnt-1) / SKEIN_256_BLOCK_BYTES; /* number of full blocks to process */
170 msgByteCnt -= n * SKEIN_256_BLOCK_BYTES;
177 if (msgByteCnt)
179 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES);
180 memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
181 ctx->h.bCnt += msgByteCnt;
339 int Skein_512_Update(Skein_512_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt)
346 if (msgByteCnt + ctx->h.bCnt > SKEIN_512_BLOCK_BYTES)
353 Skein_assert(n < msgByteCnt); /* check on our logic here */
355 msgByteCnt -= n;
364 if (msgByteCnt > SKEIN_512_BLOCK_BYTES)
366 n = (msgByteCnt-1) / SKEIN_512_BLOCK_BYTES; /* number of full blocks to process */
368 msgByteCnt -= n * SKEIN_512_BLOCK_BYTES;
375 if (msgByteCnt)
377 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES);
378 memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
379 ctx->h.bCnt += msgByteCnt;
536 int Skein1024_Update(Skein1024_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt)
543 if (msgByteCnt + ctx->h.bCnt > SKEIN1024_BLOCK_BYTES)
550 Skein_assert(n < msgByteCnt); /* check on our logic here */
552 msgByteCnt -= n;
561 if (msgByteCnt > SKEIN1024_BLOCK_BYTES)
563 n = (msgByteCnt-1) / SKEIN1024_BLOCK_BYTES; /* number of full blocks to process */
565 msgByteCnt -= n * SKEIN1024_BLOCK_BYTES;
572 if (msgByteCnt)
574 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES);
575 memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt);
576 ctx->h.bCnt += msgByteCnt;