Lines Matching refs:hashBitLen

39 int Skein_256_Init(Skein_256_Ctxt_t *ctx, size_t hashBitLen)
47 Skein_Assert(hashBitLen > 0,SKEIN_BAD_HASHLEN);
48 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
50 switch (hashBitLen)
64 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
73 /* The chaining vars ctx->X are now initialized for the given hashBitLen. */
83 int Skein_256_InitExt(Skein_256_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes)
91 Skein_Assert(hashBitLen > 0,SKEIN_BAD_HASHLEN);
103 ctx->h.hashBitLen=8*sizeof(ctx->X); /* set output hash bit count = state size */
118 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
123 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
202 byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
236 int Skein_512_Init(Skein_512_Ctxt_t *ctx, size_t hashBitLen)
244 Skein_Assert(hashBitLen > 0,SKEIN_BAD_HASHLEN);
245 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
247 switch (hashBitLen)
261 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
271 /* The chaining vars ctx->X are now initialized for the given hashBitLen. */
281 int Skein_512_InitExt(Skein_512_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes)
289 Skein_Assert(hashBitLen > 0,SKEIN_BAD_HASHLEN);
301 ctx->h.hashBitLen=8*sizeof(ctx->X); /* set output hash bit count = state size */
316 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
321 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
400 byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
434 int Skein1024_Init(Skein1024_Ctxt_t *ctx, size_t hashBitLen)
442 Skein_Assert(hashBitLen > 0,SKEIN_BAD_HASHLEN);
443 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
445 switch (hashBitLen)
458 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
468 /* The chaining vars ctx->X are now initialized for the given hashBitLen. */
478 int Skein1024_InitExt(Skein1024_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes)
486 Skein_Assert(hashBitLen > 0,SKEIN_BAD_HASHLEN);
498 ctx->h.hashBitLen=8*sizeof(ctx->X); /* set output hash bit count = state size */
513 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */
518 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
597 byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
686 byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
715 byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */
744 byteCnt = (ctx->h.hashBitLen + 7) >> 3; /* total number of output bytes */