[#BN_X931_derive_prime_ex] = BN_X931_derive_prime_ex :mrdocs: Derive an X9.31 prime p from Xp/Xp1/Xp2 parameters (deprecated). == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BN_X931_derive_prime_ex( xref:BIGNUM.adoc[BIGNUM]* p, xref:BIGNUM.adoc[BIGNUM]* p1, xref:BIGNUM.adoc[BIGNUM]* p2, xref:BIGNUM.adoc[BIGNUM] const* Xp, xref:BIGNUM.adoc[BIGNUM] const* Xp1, xref:BIGNUM.adoc[BIGNUM] const* Xp2, xref:BIGNUM.adoc[BIGNUM] const* e, xref:BN_CTX.adoc[BN_CTX]* ctx, xref:BN_GENCB.adoc[BN_GENCB]* cb); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *p* | Destination for the derived prime. | *p1* | Optional destination for the first auxiliary prime, or NULL. | *p2* | Optional destination for the second auxiliary prime, or NULL. | *Xp* | Random parameter used to construct p. | *Xp1* | Random parameter used to construct p1. | *Xp2* | Random parameter used to construct p2. | *e* | Public exponent that must be coprime to p‐1. | *ctx* | BN_CTX for temporaries. | *cb* | Optional generation callback, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#