Lines Matching refs:cfg

47         } cfg;                              /* config block */
65 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); /* set the schema, version */
66 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
67 cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
68 memset(&cfg.w[3],0,sizeof(cfg) - 3*sizeof(cfg.w[0])); /* zero pad config block */
72 Skein_256_Process_Block(ctx,cfg.b,1,SKEIN_CFG_STR_LEN);
91 } cfg; /* config block */
103 Skein_assert(sizeof(cfg.b) >= sizeof(ctx->X));
109 Skein_256_Final_Pad(ctx,cfg.b); /* put result into cfg.b[] */
110 memcpy(ctx->X,cfg.b,sizeof(cfg.b)); /* copy over into ctx->X[] */
123 memset(&cfg.w,0,sizeof(cfg.w)); /* pre-pad cfg.w[] with zeroes */
124 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
125 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
126 cfg.w[2] = Skein_Swap64(treeInfo); /* tree hash config info (or SKEIN_CFG_TREE_INFO_SEQUENTIAL) */
131 Skein_256_Process_Block(ctx,cfg.b,1,SKEIN_CFG_STR_LEN);
244 } cfg; /* config block */
262 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); /* set the schema, version */
263 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
264 cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
265 memset(&cfg.w[3],0,sizeof(cfg) - 3*sizeof(cfg.w[0])); /* zero pad config block */
269 Skein_512_Process_Block(ctx,cfg.b,1,SKEIN_CFG_STR_LEN);
289 } cfg; /* config block */
301 Skein_assert(sizeof(cfg.b) >= sizeof(ctx->X));
307 Skein_512_Final_Pad(ctx,cfg.b); /* put result into cfg.b[] */
308 memcpy(ctx->X,cfg.b,sizeof(cfg.b)); /* copy over into ctx->X[] */
321 memset(&cfg.w,0,sizeof(cfg.w)); /* pre-pad cfg.w[] with zeroes */
322 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
323 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
324 cfg.w[2] = Skein_Swap64(treeInfo); /* tree hash config info (or SKEIN_CFG_TREE_INFO_SEQUENTIAL) */
329 Skein_512_Process_Block(ctx,cfg.b,1,SKEIN_CFG_STR_LEN);
442 } cfg; /* config block */
459 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); /* set the schema, version */
460 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
461 cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
462 memset(&cfg.w[3],0,sizeof(cfg) - 3*sizeof(cfg.w[0])); /* zero pad config block */
466 Skein1024_Process_Block(ctx,cfg.b,1,SKEIN_CFG_STR_LEN);
486 } cfg; /* config block */
498 Skein_assert(sizeof(cfg.b) >= sizeof(ctx->X));
504 Skein1024_Final_Pad(ctx,cfg.b); /* put result into cfg.b[] */
505 memcpy(ctx->X,cfg.b,sizeof(cfg.b)); /* copy over into ctx->X[] */
518 memset(&cfg.w,0,sizeof(cfg.w)); /* pre-pad cfg.w[] with zeroes */
519 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
520 cfg.w[1] = Skein_Swap64(hashBitLen); /* hash result length in bits */
521 cfg.w[2] = Skein_Swap64(treeInfo); /* tree hash config info (or SKEIN_CFG_TREE_INFO_SEQUENTIAL) */
526 Skein1024_Process_Block(ctx,cfg.b,1,SKEIN_CFG_STR_LEN);