Lines Matching refs:X
39 bcopy(SKEIN_256_IV_256, ctx->X, sizeof (ctx->X));
42 bcopy(SKEIN_256_IV_224, ctx->X, sizeof (ctx->X));
45 bcopy(SKEIN_256_IV_160, ctx->X, sizeof (ctx->X));
48 bcopy(SKEIN_256_IV_128, ctx->X, sizeof (ctx->X));
70 bzero(ctx->X, sizeof (ctx->X));
75 * The chaining vars ctx->X are now initialized for the given
101 /* compute the initial chaining values ctx->X[], based on key */
104 bzero(ctx->X, sizeof (ctx->X));
107 Skein_assert(sizeof (cfg.b) >= sizeof (ctx->X));
110 ctx->h.hashBitLen = 8 * sizeof (ctx->X);
114 bzero(ctx->X, sizeof (ctx->X));
119 /* copy over into ctx->X[] */
120 bcopy(cfg.b, ctx->X, sizeof (cfg.b));
126 ctx->X[i] = Skein_Swap64(ctx->X[i]);
148 /* The chaining vars ctx->X are now initialized */
214 uint64_t X[SKEIN_256_STATE_WORDS];
236 bcopy(ctx->X, X, sizeof (X));
249 ctx->X, n); /* "output" the ctr mode bytes */
253 bcopy(X, ctx->X, sizeof (X));
275 bcopy(SKEIN_512_IV_512, ctx->X, sizeof (ctx->X));
278 bcopy(SKEIN_512_IV_384, ctx->X, sizeof (ctx->X));
281 bcopy(SKEIN_512_IV_256, ctx->X, sizeof (ctx->X));
284 bcopy(SKEIN_512_IV_224, ctx->X, sizeof (ctx->X));
306 bzero(ctx->X, sizeof (ctx->X));
312 * The chaining vars ctx->X are now initialized for the given
338 /* compute the initial chaining values ctx->X[], based on key */
341 bzero(ctx->X, sizeof (ctx->X));
344 Skein_assert(sizeof (cfg.b) >= sizeof (ctx->X));
347 ctx->h.hashBitLen = 8 * sizeof (ctx->X);
351 bzero(ctx->X, sizeof (ctx->X));
355 /* copy over into ctx->X[] */
356 bcopy(cfg.b, ctx->X, sizeof (cfg.b));
362 ctx->X[i] = Skein_Swap64(ctx->X[i]);
384 /* The chaining vars ctx->X are now initialized */
450 uint64_t X[SKEIN_512_STATE_WORDS];
472 bcopy(ctx->X, X, sizeof (X));
485 ctx->X, n); /* "output" the ctr mode bytes */
489 bcopy(X, ctx->X, sizeof (X));
511 bcopy(SKEIN1024_IV_512, ctx->X, sizeof (ctx->X));
514 bcopy(SKEIN1024_IV_384, ctx->X, sizeof (ctx->X));
517 bcopy(SKEIN1024_IV_1024, ctx->X, sizeof (ctx->X));
539 bzero(ctx->X, sizeof (ctx->X));
545 * The chaining vars ctx->X are now initialized for the given
571 /* compute the initial chaining values ctx->X[], based on key */
574 bzero(ctx->X, sizeof (ctx->X));
576 Skein_assert(sizeof (cfg.b) >= sizeof (ctx->X));
579 ctx->h.hashBitLen = 8 * sizeof (ctx->X);
583 bzero(ctx->X, sizeof (ctx->X));
587 /* copy over into ctx->X[] */
588 bcopy(cfg.b, ctx->X, sizeof (cfg.b));
594 ctx->X[i] = Skein_Swap64(ctx->X[i]);
617 /* The chaining vars ctx->X are now initialized */
683 uint64_t X[SKEIN1024_STATE_WORDS];
705 bcopy(ctx->X, X, sizeof (X));
718 ctx->X, n); /* "output" the ctr mode bytes */
722 bcopy(X, ctx->X, sizeof (X));
746 Skein_Put64_LSB_First(hashVal, ctx->X, SKEIN_256_BLOCK_BYTES);
767 Skein_Put64_LSB_First(hashVal, ctx->X, SKEIN_512_BLOCK_BYTES);
789 Skein_Put64_LSB_First(hashVal, ctx->X, SKEIN1024_BLOCK_BYTES);
800 uint64_t X[SKEIN_256_STATE_WORDS];
813 bcopy(ctx->X, X, sizeof (X));
826 ctx->X, n); /* "output" the ctr mode bytes */
830 bcopy(X, ctx->X, sizeof (X));
840 uint64_t X[SKEIN_512_STATE_WORDS];
853 bcopy(ctx->X, X, sizeof (X));
866 ctx->X, n); /* "output" the ctr mode bytes */
870 bcopy(X, ctx->X, sizeof (X));
880 uint64_t X[SKEIN1024_STATE_WORDS];
893 bcopy(ctx->X, X, sizeof (X));
906 ctx->X, n); /* "output" the ctr mode bytes */
910 bcopy(X, ctx->X, sizeof (X));