Home
last modified time | relevance | path

Searched refs:bnE (Results 1 – 4 of 4) sorted by relevance

/external/tpm2/
DCpriRSA.c41 BIGNUM *bnE; in RsaPrivateExponent() local
52 bnE = BN_CTX_get(context); in RsaPrivateExponent()
91 BN_set_word(bnE, key->exponent); in RsaPrivateExponent()
92 if(BN_mod_inverse(bnD, bnE, bnPhi, context) == NULL) in RsaPrivateExponent()
146 BIGNUM *bnE; in _cpri__TestKeyRSA() local
163 bnE = BN_CTX_get(context); // public exponent (e) in _cpri__TestKeyRSA()
223 BN_set_word(bnE, exponent); in _cpri__TestKeyRSA()
224 if(BN_mod_inverse(bnD, bnE, bnPhi, context) == NULL) in _cpri__TestKeyRSA()
1198 BIGNUM *bnE; in _cpri__GenerateKeyRSA() local
1222 bnE = BN_CTX_get(context); in _cpri__GenerateKeyRSA()
[all …]
DMathFunctions.c456 BIGNUM *bnE; in _math__ModExp() local
465 bnE = BN_CTX_get(context); in _math__ModExp()
472 || BN_bin2bn(e, eSize, bnE) == NULL in _math__ModExp()
483 if(!(BN_mod_exp(bnC, bnM, bnE, bnN, context))) in _math__ModExp()
DCpriECC.c1250 BIGNUM *bnE; in SignSM2() local
1265 bnE = BN_CTX_get(context); in SignSM2()
1266 if(bnE == NULL) in SignSM2()
1268 BnFrom2B(bnE, digest); in SignSM2()
1272 BN_hex2bn(&bnE, "B524F552CD82B8B028476E005C377FB19A87E6FC682D48BB5D42E3D9B9EFFE76"); in SignSM2()
1300 if(!BN_mod_add(bnR, bnE, bnX1, bnN, context)) in SignSM2()
1441 BIGNUM *bnE; in ValidateSignatureEcdsa() local
1464 bnE = BN_CTX_get(context); in ValidateSignatureEcdsa()
1497 if(BN_bin2bn(digest->buffer, t, bnE) == NULL) in ValidateSignatureEcdsa()
1503 if( !BN_mod_mul(bnU1, bnE, bnW, bnN, context) in ValidateSignatureEcdsa()
[all …]
DRSAKeySieve.c804 BIGNUM *bnE; in _cpri__GenerateKeyRSA() local
826 bnE = BN_CTX_get(context); in _cpri__GenerateKeyRSA()
838 BN_set_word(bnE, e); in _cpri__GenerateKeyRSA()
907 if( BN_mod_inverse(bnT, bnE, bnT, context) == NULL in _cpri__GenerateKeyRSA()
926 || BN_mod_exp(bnQ, bnP, bnE, bnN, context) != 1 in _cpri__GenerateKeyRSA()