Home
last modified time | relevance | path

Searched refs:keyBytes (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/algs/skein/
H A Dskein.c81 const uint8_t *key, size_t keyBytes) in Skein_256_InitExt() argument
89 Skein_Assert(keyBytes == 0 || key != NULL, SKEIN_FAIL); in Skein_256_InitExt()
92 if (keyBytes == 0) { /* is there a key? */ in Skein_256_InitExt()
106 (void) Skein_256_Update(ctx, key, keyBytes); in Skein_256_InitExt()
133 Skein_Show_Key(256, &ctx->h, key, keyBytes); in Skein_256_InitExt()
317 const uint8_t *key, size_t keyBytes) in Skein_512_InitExt() argument
325 Skein_Assert(keyBytes == 0 || key != NULL, SKEIN_FAIL); in Skein_512_InitExt()
328 if (keyBytes == 0) { /* is there a key? */ in Skein_512_InitExt()
341 (void) Skein_512_Update(ctx, key, keyBytes); /* hash the key */ in Skein_512_InitExt()
368 Skein_Show_Key(512, &ctx->h, key, keyBytes); in Skein_512_InitExt()
[all …]
H A Dskein_impl.h190 #define Skein_Show_Key(bits, ctx, key, keyBytes) argument
/freebsd/sys/crypto/skein/
H A Dskein.c83 …nitExt(Skein_256_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes) in Skein_256_InitExt() argument
92 Skein_Assert(keyBytes == 0 || key != NULL,SKEIN_FAIL); in Skein_256_InitExt()
95 if (keyBytes == 0) /* is there a key? */ in Skein_256_InitExt()
106 Skein_256_Update(ctx,key,keyBytes); /* hash the key */ in Skein_256_InitExt()
126 Skein_Show_Key(256,&ctx->h,key,keyBytes); in Skein_256_InitExt()
281 …nitExt(Skein_512_Ctxt_t *ctx,size_t hashBitLen,u64b_t treeInfo, const u08b_t *key, size_t keyBytes) in Skein_512_InitExt() argument
290 Skein_Assert(keyBytes == 0 || key != NULL,SKEIN_FAIL); in Skein_512_InitExt()
293 if (keyBytes == 0) /* is there a key? */ in Skein_512_InitExt()
304 Skein_512_Update(ctx,key,keyBytes); /* hash the key */ in Skein_512_InitExt()
324 Skein_Show_Key(512,&ctx->h,key,keyBytes); in Skein_512_InitExt()
[all …]
H A Dskein_debug.c237 void Skein_Show_Key(uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes) in Skein_Show_Key() argument
239 if (keyBytes) in Skein_Show_Key()
243 printf("\n%s MAC key = %4u bytes\n",AlgoHeader(bits),(unsigned) keyBytes); in Skein_Show_Key()
244 Show08(keyBytes,key); in Skein_Show_Key()
H A Dskein.h121 …Ext(Skein_256_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key, size_t keyBytes);
122 …Ext(Skein_512_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key, size_t keyBytes);
123 …Ext(Skein1024_Ctxt_t *ctx, size_t hashBitLen, u64b_t treeInfo, const u08b_t *key, size_t keyBytes);
263 #define Skein_Show_Key(bits,ctx,key,keyBytes) argument
H A Dskein_debug.h20 void Skein_Show_Key (uint_t bits,const Skein_Ctxt_Hdr_t *h,const u08b_t *key,size_t keyBytes);
/freebsd/sys/contrib/openzfs/include/sys/
H A Dskein.h121 uint64_t treeInfo, const uint8_t *key, size_t keyBytes);
123 uint64_t treeInfo, const uint8_t *key, size_t keyBytes);
125 uint64_t treeInfo, const uint8_t *key, size_t keyBytes);