Searched refs:msgByteCnt (Results 1 – 4 of 4) sorted by relevance
| /freebsd/sys/contrib/openzfs/module/icp/algs/skein/ |
| H A D | skein.c | 149 Skein_256_Update(Skein_256_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt) in Skein_256_Update() argument 157 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) { in Skein_256_Update() 164 Skein_assert(n < msgByteCnt); in Skein_256_Update() 166 msgByteCnt -= n; in Skein_256_Update() 179 if (msgByteCnt > SKEIN_256_BLOCK_BYTES) { in Skein_256_Update() 181 n = (msgByteCnt - 1) / SKEIN_256_BLOCK_BYTES; in Skein_256_Update() 184 msgByteCnt -= n * SKEIN_256_BLOCK_BYTES; in Skein_256_Update() 191 if (msgByteCnt) { in Skein_256_Update() 192 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES); in Skein_256_Update() 193 memcpy(&ctx->b[ctx->h.bCnt], msg, msgByteCnt); in Skein_256_Update() [all …]
|
| /freebsd/sys/crypto/skein/ |
| H A D | skein.c | 141 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt) in Skein_256_Update() argument 148 if (msgByteCnt + ctx->h.bCnt > SKEIN_256_BLOCK_BYTES) in Skein_256_Update() 155 Skein_assert(n < msgByteCnt); /* check on our logic here */ in Skein_256_Update() 157 msgByteCnt -= n; in Skein_256_Update() 166 if (msgByteCnt > SKEIN_256_BLOCK_BYTES) in Skein_256_Update() 168 n = (msgByteCnt-1) / SKEIN_256_BLOCK_BYTES; /* number of full blocks to process */ in Skein_256_Update() 170 msgByteCnt -= n * SKEIN_256_BLOCK_BYTES; in Skein_256_Update() 177 if (msgByteCnt) in Skein_256_Update() 179 Skein_assert(msgByteCnt + ctx->h.bCnt <= SKEIN_256_BLOCK_BYTES); in Skein_256_Update() 180 memcpy(&ctx->b[ctx->h.bCnt],msg,msgByteCnt); in Skein_256_Update() [all …]
|
| H A D | skein.h | 99 int Skein_256_Update(Skein_256_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt); 100 int Skein_512_Update(Skein_512_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt); 101 int Skein1024_Update(Skein1024_Ctxt_t *ctx, const u08b_t *msg, size_t msgByteCnt);
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | skein.h | 97 size_t msgByteCnt); 99 size_t msgByteCnt); 101 size_t msgByteCnt);
|