Searched refs:bCnt (Results 1 - 3 of 3) sorted by relevance
/freebsd-12-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:__anon11893 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; }
|
Completed in 103 milliseconds