Compute r = (a * b) mod m.
Synopsis
Declared in <openssl/bn.h>
int
BN_mod_mul(
BIGNUM* r,
BIGNUM const* a,
BIGNUM const* b,
BIGNUM const* m,
BN_CTX* ctx);
Return Value
1 on success, or 0 on error.
Parameters
Name |
Description |
r |
Destination for the product modulo |
a |
First multiplicand. |
b |
Second multiplicand. |
m |
Modulus; must be non‐zero. |
ctx |
BN_CTX for temporary storage. |
Created with MrDocs