[#BN_X931_generate_Xpq] = BN_X931_generate_Xpq :mrdocs: Generate random X9.31 parameters Xp and Xq of half the requested RSA bit length (deprecated). == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BN_X931_generate_Xpq( xref:BIGNUM.adoc[BIGNUM]* Xp, xref:BIGNUM.adoc[BIGNUM]* Xq, int nbits, xref:BN_CTX.adoc[BN_CTX]* ctx); ---- [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 | *Xp* | Destination for the first random parameter (top bits set for the X9.31 range). | *Xq* | Destination for the second random parameter; |Xp ‐ Xq| is forced above 2ˆ(nbits/2 ‐ 100). | *nbits* | Total RSA modulus bit length (at least 1024 and a multiple of 256). | *ctx* | BN_CTX for temporaries and private RNG. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#