[#BN_div] = BN_div :mrdocs: Divide `m` by `d,` writing quotient and/or remainder. == Synopsis Declared in `<openssl/bn.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BN_div( xref:BIGNUM.adoc[BIGNUM]* dv, xref:BIGNUM.adoc[BIGNUM]* rem, xref:BIGNUM.adoc[BIGNUM] const* m, xref:BIGNUM.adoc[BIGNUM] const* d, xref:BN_CTX.adoc[BN_CTX]* ctx); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *dv* | Receives the quotient, or NULL if not required. | *rem* | Receives the remainder, or NULL if not required. | *m* | Dividend. | *d* | Divisor (must be non‐zero). | *ctx* | BN_CTX scratch space. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#