Lines Matching refs:cb
69 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb);
72 RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in RSA_generate_key_ex() argument
75 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex()
76 return rsa_builtin_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex()
81 rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in rsa_builtin_keygen() argument
127 if (!BN_generate_prime_ex(rsa->p, bitsp, 0, NULL, NULL, cb)) in rsa_builtin_keygen()
135 if (!BN_GENCB_call(cb, 2, n++)) in rsa_builtin_keygen()
138 if (!BN_GENCB_call(cb, 3, 0)) in rsa_builtin_keygen()
149 cb)) in rsa_builtin_keygen()
164 if (!BN_GENCB_call(cb, 2, n++)) in rsa_builtin_keygen()
167 if (!BN_GENCB_call(cb, 3, 1)) in rsa_builtin_keygen()
229 BN_GENCB cb; in RSA_generate_key() local
245 BN_GENCB_set_old(&cb, callback, cb_arg); in RSA_generate_key()
247 if (RSA_generate_key_ex(rsa, bits, e, &cb)) { in RSA_generate_key()