Searched refs:bCnt (Results 1 - 7 of 7) sorted by relevance

/freebsd-current/sys/contrib/openzfs/module/icp/algs/skein/
H A Dskein.c140 ctx->h.bCnt = 0; /* buffer b[] starts out empty */
153 Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES, SKEIN_FAIL);
156 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) {
158 if (ctx->h.bCnt) {
160 n = SKEIN_256_BLOCK_BYTES - ctx->h.bCnt;
164 memcpy(&ctx->b[ctx->h.bCnt], msg, n);
167 ctx->h.bCnt += n;
169 Skein_assert(ctx->h.bCnt == SKEIN_256_BLOCK_BYTES);
172 ctx->h.bCnt = 0;
186 Skein_assert(ctx->h.bCnt
[all...]
H A Dskein_port.h53 #define Skein_Put64_LSB_First(dst08, src64, bCnt) memcpy(dst08, src64, bCnt)
81 Skein_Put64_LSB_First(uint8_t *dst, const uint64_t *src, size_t bCnt) argument
89 for (n = 0; n < bCnt; n++)
H A Dskein_impl.h159 * set up for starting with a new type: h.T[0]=0; h.T[1] = NEW_TYPE; h.bCnt=0;
165 (ctxPtr)->h.bCnt = 0; \
/freebsd-current/sys/crypto/skein/
H A Dskein.c133 ctx->h.bCnt = 0; /* buffer b[] starts out empty */
145 Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */
148 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES)
150 if (ctx->h.bCnt) /* finish up any buffered message data */
152 n = SKEIN_256_BLOCK_BYTES - ctx->h.bCnt; /* # bytes free in buffer b[] */
156 memcpy(&ctx->b[ctx->h.bCnt],msg,n);
159 ctx->h.bCnt += n;
161 Skein_assert(ctx->h.bCnt == SKEIN_256_BLOCK_BYTES);
163 ctx->h.bCnt = 0;
173 Skein_assert(ctx->h.bCnt
[all...]
H A Dskein_port.h59 void Skein_Put64_LSB_First(u08b_t *dst,const u64b_t *src,size_t bCnt);
65 #define Skein_Put64_LSB_First(dst08,src64,bCnt) memcpy(dst08,src64,bCnt)
88 void Skein_Put64_LSB_First(u08b_t *dst,const u64b_t *src,size_t bCnt) argument
93 for (n = 0; n < bCnt / 8; n++)
H A Dskein.h69 size_t bCnt; /* current byte count in buffer b[] */ member in struct:__anon1518
244 /* set up for starting with a new type: h.T[0]=0; h.T[1] = NEW_TYPE; h.bCnt=0; */
246 { Skein_Set_T0_T1(ctxPtr,0,SKEIN_T1_FLAG_FIRST | SKEIN_T1_BLK_TYPE_##BLK_TYPE); (ctxPtr)->h.bCnt=0; }
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dskein.h64 size_t bCnt; /* current byte count in buffer b[] */ member in struct:__anon10447

Completed in 128 milliseconds