Lines Matching refs:hashBitLen

26 Skein_256_Init(Skein_256_Ctxt_t *ctx, size_t hashBitLen)
33 Skein_Assert(hashBitLen > 0, SKEIN_BAD_HASHLEN);
34 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
36 switch (hashBitLen) { /* use pre-computed values, where available */
63 cfg.w[1] = Skein_Swap64(hashBitLen);
76 * hashBitLen.
90 Skein_256_InitExt(Skein_256_Ctxt_t *ctx, size_t hashBitLen, uint64_t treeInfo,
98 Skein_Assert(hashBitLen > 0, SKEIN_BAD_HASHLEN);
110 ctx->h.hashBitLen = 8 * sizeof (ctx->X);
134 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
139 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
230 byteCnt = (ctx->h.hashBitLen + 7) >> 3;
262 Skein_512_Init(Skein_512_Ctxt_t *ctx, size_t hashBitLen)
269 Skein_Assert(hashBitLen > 0, SKEIN_BAD_HASHLEN);
270 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
272 switch (hashBitLen) { /* use pre-computed values, where available */
299 cfg.w[1] = Skein_Swap64(hashBitLen);
313 * hashBitLen. Set up to process the data message portion of the
327 Skein_512_InitExt(Skein_512_Ctxt_t *ctx, size_t hashBitLen, uint64_t treeInfo,
335 Skein_Assert(hashBitLen > 0, SKEIN_BAD_HASHLEN);
347 ctx->h.hashBitLen = 8 * sizeof (ctx->X);
370 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
375 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
466 byteCnt = (ctx->h.hashBitLen + 7) >> 3;
498 Skein1024_Init(Skein1024_Ctxt_t *ctx, size_t hashBitLen)
505 Skein_Assert(hashBitLen > 0, SKEIN_BAD_HASHLEN);
506 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
508 switch (hashBitLen) { /* use pre-computed values, where available */
532 cfg.w[1] = Skein_Swap64(hashBitLen);
546 * hashBitLen. Set up to process the data message portion of the hash
560 Skein1024_InitExt(Skein1024_Ctxt_t *ctx, size_t hashBitLen, uint64_t treeInfo,
568 Skein_Assert(hashBitLen > 0, SKEIN_BAD_HASHLEN);
579 ctx->h.hashBitLen = 8 * sizeof (ctx->X);
602 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
608 cfg.w[1] = Skein_Swap64(hashBitLen);
699 byteCnt = (ctx->h.hashBitLen + 7) >> 3;
807 byteCnt = (ctx->h.hashBitLen + 7) >> 3;
847 byteCnt = (ctx->h.hashBitLen + 7) >> 3;
887 byteCnt = (ctx->h.hashBitLen + 7) >> 3;