Generate random X9.31 parameters Xp and Xq of half the requested RSA bit length (deprecated).
Synopsis
Declared in <openssl/bn.h>
[[deprecated]]
int
BN_X931_generate_Xpq(
BIGNUM* Xp,
BIGNUM* Xq,
int nbits,
BN_CTX* ctx);
|
Warning
|
Deprecated. Use of this entity is allowed but discouraged. |
Return Value
1 on success, or 0 on failure.
Parameters
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. |
Created with MrDocs