Lines Matching +refs:fill +refs:buffer

156     UINT16                          fill;  in RandomForRsa()  local
163 fill = digestSize; in RandomForRsa()
164 pb = p->buffer; in RandomForRsa()
179 _cpri__UpdateHash(&h, ktx->extra->size, ktx->extra->buffer); in RandomForRsa()
185 if(i < fill) in RandomForRsa()
186 fill = i; in RandomForRsa()
187 _cpri__CompleteHash(&h, fill, pb); in RandomForRsa()
191 _cpri__UpdateHash(&h, fill, pb); in RandomForRsa()
193 _cpri__CompleteHash(&h, fill, pb); in RandomForRsa()
194 pb += fill; in RandomForRsa()
277 _cpri__GenerateRandom(b.t.size, b.t.buffer); in MillerRabin()
278 if(BN_bin2bn(b.t.buffer, b.t.size, bnB) == NULL) in MillerRabin()
699 _cpri__GenerateRandom(p->size, p->buffer); in GenerateRandomPrime()
700 p->buffer[p->size-1] |= 1; in GenerateRandomPrime()
701 p->buffer[0] |= 0x80; in GenerateRandomPrime()
702 BN_bin2bn(p->buffer, p->size, bnP); in GenerateRandomPrime()
732 _cpri__StartHMAC(hashAlg, FALSE, &(ktx->iPadCtx), seed->size, seed->buffer, in KDFaContextStart()
735 _cpri__UpdateHash(&(ktx->oPadCtx), oPadKey.b.size, oPadKey.b.buffer); in KDFaContextStart()
851 _cpri__GenerateRandom(p->size, p->buffer); in _cpri__GenerateKeyRSA()
854 AdjustPrimeCandidate(p->buffer, p->size); in _cpri__GenerateKeyRSA()
856 if(BN_bin2bn(p->buffer, p->size, bnP) == NULL) in _cpri__GenerateKeyRSA()
914 r.t.size = sizeof(r.t.buffer); in _cpri__GenerateKeyRSA()
918 _cpri__GenerateRandom(keySizeInBits/8, r.t.buffer); in _cpri__GenerateKeyRSA()
922 r.t.buffer[0] &= 0x7F; in _cpri__GenerateKeyRSA()
924 if( BN_bin2bn(r.t.buffer, r.t.size, bnP) == NULL in _cpri__GenerateKeyRSA()