Lines Matching refs:bnPhi
42 BIGNUM *bnPhi; in RsaPrivateExponent() local
56 bnPhi = BN_CTX_get(context); in RsaPrivateExponent()
85 if( BN_copy(bnPhi, bnN) == NULL in RsaPrivateExponent()
86 || !BN_sub(bnPhi, bnPhi, bnP) in RsaPrivateExponent()
87 || !BN_sub(bnPhi, bnPhi, bnQ) in RsaPrivateExponent()
88 || !BN_add_word(bnPhi, 1)) in RsaPrivateExponent()
92 if(BN_mod_inverse(bnD, bnE, bnPhi, context) == NULL) in RsaPrivateExponent()
147 BIGNUM *bnPhi; in _cpri__TestKeyRSA() local
167 bnPhi = BN_CTX_get(context); // (p-1)(q-1) in _cpri__TestKeyRSA()
213 BN_copy(bnPhi, bnN); in _cpri__TestKeyRSA()
214 BN_sub(bnPhi, bnPhi, bnP); in _cpri__TestKeyRSA()
215 BN_sub(bnPhi, bnPhi, bnQ); in _cpri__TestKeyRSA()
216 BN_add_word(bnPhi, 1); in _cpri__TestKeyRSA()
219 if(BN_mod_inverse(bnD, bnE, bnPhi, context) == NULL) in _cpri__TestKeyRSA()