• Home
  • Raw
  • Download

Lines Matching refs:ktx

30769 …This function will test that ktx.outer will not wrap to zero if incremented. If so, the function r…
30770 Otherwise, the ktx.outer is incremented before each number is generated.
30774 81 KDFa_CONTEXT *ktx, // IN: a context for the KDF
30785 92 UINT16 digestSize = _cpri__GetDigestSize(ktx->hashAlg);
30793 100 *(ktx->outer) += 1;
30799 106 _cpri__CopyHashState(&h, &(ktx->iPadCtx));
30808 115 if(ktx->extra != NULL)
30809 116 _cpri__UpdateHash(&h, ktx->extra->size, ktx->extra->buffer);
30818 120 UINT32_TO_BYTE_ARRAY(*(ktx->outer), swapped);
30820 122 _cpri__UpdateHash(&h, 2, (BYTE *)&ktx->keySizeInBits);
30826 128 _cpri__CopyHashState(&h, &(ktx->oPadCtx));
30859 …If a KDFa(), PRNG context is provide (ktx), then it is used to provide the random values. Otherwis…
30871 152 KDFa_CONTEXT *ktx,
30926 202 if(ktx != NULL)
30927 203 RandomForRsa(ktx, "Miller-Rabin witness", &b.b);
31267 456 KDFa_CONTEXT *ktx, // IN: KDFa iterator structure
31342 525 if(MillerRabin(bnP, rounds, ktx, context))
31444 599 KDFa_CONTEXT *ktx, // IN/OUT: the context structure to initial…
31458 613 pAssert(ktx != NULL && outer != NULL && digestSize != 0);
31461 616 _cpri__StartHMAC(hashAlg, FALSE, &(ktx->iPadCtx), seed->size, seed->buffer,
31463 618 _cpri__StartHash(hashAlg, FALSE, &(ktx->oPadCtx));
31464 619 _cpri__UpdateHash(&(ktx->oPadCtx), oPadKey.b.size, oPadKey.b.buffer);
31465 620 ktx->extra = extra;
31466 621 ktx->hashAlg = hashAlg;
31467 622 ktx->outer = outer;
31468 623 ktx->keySizeInBits = keySizeInBits;
31469 624 return ktx;
31473 628 KDFa_CONTEXT *ktx // IN/OUT: the context structure to close
31476 631 if(ktx != NULL)
31479 634 _cpri__CompleteHash(&(ktx->iPadCtx), 0, NULL);
31480 635 _cpri__CompleteHash(&(ktx->oPadCtx), 0, NULL);
31533 663 KDFa_CONTEXT ktx;
31548 678 ktxPtr = KDFaContextStart(&ktx, seed, hashAlg, extra, pCtr, keySizeInBits);
31586 711 // Each call to generate a random value will increment ktx.outer
31587 712 // it doesn't matter if ktx.outer wraps. This lets the caller
31600 725 RandomForRsa(&ktx, label, p);
31677 797 RandomForRsa(&ktx, label, &r.b);
31702 822 KDFaContextEnd(&ktx);