Lines Matching +refs:fill +refs:buffer

45    UINT32               fill;  in RsaPrivateExponent()  local
63 if( BN_bin2bn(key->publicKey->buffer, key->publicKey->size, bnN) == NULL in RsaPrivateExponent()
64 || BN_bin2bn(key->privateKey->buffer, key->privateKey->size, bnP) == NULL) in RsaPrivateExponent()
104 fill = key->publicKey->size - BN_num_bytes(bnD); in RsaPrivateExponent()
105 BN_bn2bin(bnD, &key->privateKey->buffer[fill]); in RsaPrivateExponent()
106 memset(key->privateKey->buffer, 0, fill); in RsaPrivateExponent()
150 UINT32 fill; in _cpri__TestKeyRSA() local
172 if(BN_bin2bn(prime1->buffer, prime1->size, bnP) == NULL) in _cpri__TestKeyRSA()
178 if(BN_bin2bn(prime2->buffer, prime2->size, bnQ) == NULL) in _cpri__TestKeyRSA()
196 BN_bn2bin(bnN, publicKey->buffer); in _cpri__TestKeyRSA()
201 BN_bin2bn(publicKey->buffer, publicKey->size, bnN); in _cpri__TestKeyRSA()
233 fill = d->size - BN_num_bytes(bnD); in _cpri__TestKeyRSA()
234 BN_bn2bin(bnD, &d->buffer[fill]); in _cpri__TestKeyRSA()
235 memset(d->buffer, 0, fill); in _cpri__TestKeyRSA()
269 key->publicKey->size, key->publicKey->buffer); in RSAEP()
306 if(_math__uComp(key->publicKey->size, key->publicKey->buffer, in RSADP()
312 key->privateKey->size, key->privateKey->buffer, in RSADP()
313 key->publicKey->size, key->publicKey->buffer); in RSADP()
1174 int i, fill; in _cpri__GenerateKeyRSA() local
1227 _cpri__StartHMAC(hashAlg, FALSE, &h1, seed->size, seed->buffer, &oPadKey.b); in _cpri__GenerateKeyRSA()
1229 _cpri__UpdateHash(&h2, oPadKey.b.size, oPadKey.b.buffer); in _cpri__GenerateKeyRSA()
1245 fill = digestSize; in _cpri__GenerateKeyRSA()
1246 pb = p->buffer; in _cpri__GenerateKeyRSA()
1260 _cpri__UpdateHash(&h, extra->size, extra->buffer); in _cpri__GenerateKeyRSA()
1266 if(i < fill) in _cpri__GenerateKeyRSA()
1267 fill = i; in _cpri__GenerateKeyRSA()
1268 _cpri__CompleteHash(&h, fill, pb); in _cpri__GenerateKeyRSA()
1272 _cpri__UpdateHash(&h, fill, pb); in _cpri__GenerateKeyRSA()
1274 _cpri__CompleteHash(&h, fill, pb); in _cpri__GenerateKeyRSA()
1275 pb += fill; in _cpri__GenerateKeyRSA()
1278 p->buffer[0] |= 0xC0; in _cpri__GenerateKeyRSA()
1279 p->buffer[p->size - 1] |= 1; in _cpri__GenerateKeyRSA()
1281 BN_bin2bn(p->buffer, p->size, bnP); in _cpri__GenerateKeyRSA()
1323 pAssert((n->buffer[0] & 0x80) != 0); in _cpri__GenerateKeyRSA()
1326 pAssert((p->buffer[0] & 0x80) != 0); in _cpri__GenerateKeyRSA()
1348 _cpri__GenerateRandom(n->size, r.t.buffer); in _cpri__GenerateKeyRSA()
1358 r.t.buffer[i] = n->buffer[i] ^ seed->buffer[0]; in _cpri__GenerateKeyRSA()
1361 r.t.buffer[0] &= 0x7F; in _cpri__GenerateKeyRSA()
1363 if( BN_bin2bn(r.t.buffer, r.t.size, bnP) == NULL in _cpri__GenerateKeyRSA()