[#BN_consttime_swap] = BN_consttime_swap :mrdocs: Conditionally swap the top `nwords` limbs (and top/neg) of two BIGNUMs in constant time. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void BN_consttime_swap( unsigned long swap, xref:BIGNUM.adoc[BIGNUM]* a, xref:BIGNUM.adoc[BIGNUM]* b, int nwords); ---- == Parameters [cols="1,4"] |=== | Name| Description | *swap* | Non‐zero to swap, or zero to leave `a` and `b` unchanged (must be 0 or 1). | *a* | First BIGNUM (must have at least `nwords` usable limbs). | *b* | Second BIGNUM (same size requirement as `a).` | *nwords* | Number of limbs to exchange. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#