Home
last modified time | relevance | path

Searched refs:bnT (Results 1 – 3 of 3) sorted by relevance

/external/tpm2/
DCpriECC.c958 BIGNUM *bnN, *bnK, *bnT, *bnD; in EcDaa() local
984 bnT = BN_CTX_get(context); in EcDaa()
993 || BN_bin2bn(tOut->t.buffer, tOut->t.size, bnT) == NULL) in EcDaa()
996 OK = OK && BN_mod(bnT, bnT, bnN, context); in EcDaa()
999 OK = OK && BN_mod_mul(bnD, bnT, bnD, bnN, context) == 1; in EcDaa()
1005 OK = OK && BnTo2B(&tOut->b, bnT, n->size); in EcDaa()
1073 BIGNUM *bnR, *bnN, *bnK, *bnT, *bnD; in SchnorrEcc() local
1107 bnT = BN_CTX_get(context); in SchnorrEcc()
1152 BnFrom2B(bnT, &T2b.b); in SchnorrEcc()
1153 BN_div(NULL, bnT, bnT, bnN, context); in SchnorrEcc()
[all …]
DRSAKeySieve.c803 BIGNUM *bnT; in _cpri__GenerateKeyRSA() local
825 bnT = BN_CTX_get(context); in _cpri__GenerateKeyRSA()
899 if( BN_sub(bnT, bnN, bnP) != 1 in _cpri__GenerateKeyRSA()
900 || BN_sub(bnT, bnT, bnQ) != 1 in _cpri__GenerateKeyRSA()
901 || BN_add_word(bnT, 1) != 1) in _cpri__GenerateKeyRSA()
907 if( BN_mod_inverse(bnT, bnE, bnT, context) == NULL in _cpri__GenerateKeyRSA()
908 || BN_is_zero(bnT)) in _cpri__GenerateKeyRSA()
928 || BN_mod_exp(bnQ, bnQ, bnT, bnN, context) != 1) in _cpri__GenerateKeyRSA()
DCpriRSA.c1197 BIGNUM *bnT; in _cpri__GenerateKeyRSA() local
1221 bnT = BN_CTX_get(context); in _cpri__GenerateKeyRSA()
1301 BN_sub(bnT, bnQ, bnP); in _cpri__GenerateKeyRSA()
1303 BN_sub(bnT, bnP, bnQ); in _cpri__GenerateKeyRSA()
1304 if(BN_num_bits(bnT) < 100) // Difference has to be at least 100 bits in _cpri__GenerateKeyRSA()
1344 BN_sub(bnT, bnN, bnP); in _cpri__GenerateKeyRSA()
1345 BN_sub(bnT, bnT, bnQ); in _cpri__GenerateKeyRSA()
1346 BN_add_word(bnT, 1); in _cpri__GenerateKeyRSA()
1351 if(BN_mod_inverse(bnT, bnE, bnT, context) == NULL || BN_is_zero(bnT)) in _cpri__GenerateKeyRSA()
1380 || BN_mod_exp(bnQ, bnQ, bnT, bnN, context) != 1) in _cpri__GenerateKeyRSA()