I'm using s2n-bignum for field operations over secp256k1, and I need the ability to multiply scalars mod n. The closest function that exists now is bignum_mod_n256k1_4, but that doesn't give me the necessary API to reduce from bignum_mul_4_8.
I'm hoping for either a tomont API, so that I am able to use bignum_montmul, or an API for reducing the result of the non-montgomery multiplication into 4 limbs.
- There is also no
montinv_p256k1 API to mirror the montinv_p256 one.
- No
p256k1_montjadd.
Thank you!
I'm using s2n-bignum for field operations over secp256k1, and I need the ability to multiply scalars mod n. The closest function that exists now is
bignum_mod_n256k1_4, but that doesn't give me the necessary API to reduce frombignum_mul_4_8.I'm hoping for either a
tomontAPI, so that I am able to usebignum_montmul, or an API for reducing the result of the non-montgomery multiplication into 4 limbs.montinv_p256k1API to mirror themontinv_p256one.p256k1_montjadd.Thank you!