Searched refs:bCnt (Results 1 - 7 of 7) sorted by relevance
/freebsd-13-stable/sys/contrib/openzfs/module/icp/algs/skein/ |
H A D | skein.c | 140 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 bcopy(msg, &ctx->b[ctx->h.bCnt], 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 D | skein_port.h | 53 #define Skein_Put64_LSB_First(dst08, src64, bCnt) bcopy(src64, dst08, 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 D | skein_impl.h | 162 * set up for starting with a new type: h.T[0]=0; h.T[1] = NEW_TYPE; h.bCnt=0; 168 (ctxPtr)->h.bCnt = 0; \
|
/freebsd-13-stable/sys/crypto/skein/ |
H A D | skein.c | 135 ctx->h.bCnt = 0; /* buffer b[] starts out empty */ 147 Skein_Assert(ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES,SKEIN_FAIL); /* catch uninitialized context */ 150 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) 152 if (ctx->h.bCnt) /* finish up any buffered message data */ 154 n = SKEIN_256_BLOCK_BYTES - ctx->h.bCnt; /* # bytes free in buffer b[] */ 158 memcpy(&ctx->b[ctx->h.bCnt],msg,n); 161 ctx->h.bCnt += n; 163 Skein_assert(ctx->h.bCnt == SKEIN_256_BLOCK_BYTES); 165 ctx->h.bCnt = 0; 175 Skein_assert(ctx->h.bCnt [all...] |
H A D | skein_port.h | 60 void Skein_Put64_LSB_First(u08b_t *dst,const u64b_t *src,size_t bCnt); 66 #define Skein_Put64_LSB_First(dst08,src64,bCnt) memcpy(dst08,src64,bCnt) 89 void Skein_Put64_LSB_First(u08b_t *dst,const u64b_t *src,size_t bCnt) argument 94 for (n = 0; n < bCnt / 8; n++)
|
H A D | skein.h | 70 size_t bCnt; /* current byte count in buffer b[] */ member in struct:__anon11217 245 /* set up for starting with a new type: h.T[0]=0; h.T[1] = NEW_TYPE; h.bCnt=0; */ 247 { Skein_Set_T0_T1(ctxPtr,0,SKEIN_T1_FLAG_FIRST | SKEIN_T1_BLK_TYPE_##BLK_TYPE); (ctxPtr)->h.bCnt=0; }
|
/freebsd-13-stable/sys/contrib/openzfs/include/sys/ |
H A D | skein.h | 64 size_t bCnt; /* current byte count in buffer b[] */ member in struct:__anon10533
|
Completed in 178 milliseconds