Compute two constant‐time Montgomery modular exponentiations together.
Synopsis
Declared in <openssl/bn.h>
int
BN_mod_exp_mont_consttime_x2(
BIGNUM* rr1,
BIGNUM const* a1,
BIGNUM const* p1,
BIGNUM const* m1,
BN_MONT_CTX* in_mont1,
BIGNUM* rr2,
BIGNUM const* a2,
BIGNUM const* p2,
BIGNUM const* m2,
BN_MONT_CTX* in_mont2,
BN_CTX* ctx);
Return Value
1 on success, or 0 on error.
Parameters
Name |
Description |
rr1 |
Destination for (a1 ˆ p1) mod m1. |
a1 |
First base. |
p1 |
First exponent. |
m1 |
First odd modulus. |
in_mont1 |
Optional Montgomery context for |
rr2 |
Destination for (a2 ˆ p2) mod m2. |
a2 |
Second base. |
p2 |
Second exponent. |
m2 |
Second odd modulus. |
in_mont2 |
Optional Montgomery context for |
ctx |
BN_CTX for temporary storage. |
Created with MrDocs