Lines Matching defs:msgByteCnt

158 Skein_256_Update(Skein_256_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt)
166 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) {
173 Skein_assert(n < msgByteCnt);
175 msgByteCnt -= n;
188 if (msgByteCnt > SKEIN_256_BLOCK_BYTES) {
190 n = (msgByteCnt - 1) / SKEIN_256_BLOCK_BYTES;
193 msgByteCnt -= n * SKEIN_256_BLOCK_BYTES;
200 if (msgByteCnt) {
201 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES);
202 bcopy(msg, &ctx->b[ctx->h.bCnt], msgByteCnt);
203 ctx->h.bCnt += msgByteCnt;
394 Skein_512_Update(Skein_512_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt)
402 if (msgByteCnt + ctx->h.bCnt > SKEIN_512_BLOCK_BYTES) {
409 Skein_assert(n < msgByteCnt);
411 msgByteCnt -= n;
424 if (msgByteCnt > SKEIN_512_BLOCK_BYTES) {
426 n = (msgByteCnt - 1) / SKEIN_512_BLOCK_BYTES;
429 msgByteCnt -= n * SKEIN_512_BLOCK_BYTES;
436 if (msgByteCnt) {
437 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_512_BLOCK_BYTES);
438 bcopy(msg, &ctx->b[ctx->h.bCnt], msgByteCnt);
439 ctx->h.bCnt += msgByteCnt;
627 Skein1024_Update(Skein1024_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt)
635 if (msgByteCnt + ctx->h.bCnt > SKEIN1024_BLOCK_BYTES) {
642 Skein_assert(n < msgByteCnt);
644 msgByteCnt -= n;
657 if (msgByteCnt > SKEIN1024_BLOCK_BYTES) {
659 n = (msgByteCnt - 1) / SKEIN1024_BLOCK_BYTES;
662 msgByteCnt -= n * SKEIN1024_BLOCK_BYTES;
669 if (msgByteCnt) {
670 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN1024_BLOCK_BYTES);
671 bcopy(msg, &ctx->b[ctx->h.bCnt], msgByteCnt);
672 ctx->h.bCnt += msgByteCnt;