Lines Matching refs:BN_GENCB
15 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb,
19 const BIGNUM *rem, BN_GENCB *cb);
21 int BN_check_prime(const BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb);
23 int BN_GENCB_call(BN_GENCB *cb, int a, int b);
25 BN_GENCB *BN_GENCB_new(void);
27 void BN_GENCB_free(BN_GENCB *cb);
29 void BN_GENCB_set_old(BN_GENCB *gencb,
32 void BN_GENCB_set(BN_GENCB *gencb,
33 int (*callback)(int, int, BN_GENCB *), void *cb_arg);
35 void *BN_GENCB_get_arg(BN_GENCB *cb);
56 int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);
59 int do_trial_division, BN_GENCB *cb);
163 BN_GENCB_call() calls the callback function held in the B<BN_GENCB> structure
165 B<BN_GENCB> structure that are supported: "new" style and "old" style. New
169 A B<BN_GENCB> structure should be created through a call to BN_GENCB_new(),
173 For "new" style callbacks a BN_GENCB structure should be initialised with a
174 call to BN_GENCB_set(), where B<gencb> is a B<BN_GENCB *>, B<callback> is of
175 type B<int (*callback)(int, int, BN_GENCB *)> and B<cb_arg> is a B<void *>.
184 It is possible to obtain the argument associated with a BN_GENCB structure
205 BN_GENCB_new returns a pointer to a BN_GENCB structure on success, or B<NULL>
208 BN_GENCB_get_arg returns the argument previously associated with a BN_GENCB
217 As of OpenSSL 1.1.0 it is no longer possible to create a BN_GENCB structure
220 BN_GENCB callback;
222 Instead applications should create a BN_GENCB structure using BN_GENCB_new:
224 BN_GENCB *callback;