[#BN_gcd] = BN_gcd :mrdocs: Compute the greatest common divisor of `a` and `b.` == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_gcd( xref:BIGNUM.adoc[BIGNUM]* r, xref:BIGNUM.adoc[BIGNUM] const* a, xref:BIGNUM.adoc[BIGNUM] const* b, xref:BN_CTX.adoc[BN_CTX]* ctx); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *r* | Destination for gcd(|a|, |b|). | *a* | First value. | *b* | Second value. | *ctx* | BN_CTX scratch space. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#