mbedtls
mbedtls copied to clipboard
Add Conversions - to and from raw Montgomery form and mbedtls_mpi
Prerequisites: #6017
Extract the Montgomery multiplication based modular reduction from the prototype: https://github.com/hanno-arm/mbedtls/blob/ecp_prototype/library/bignum_core.c#L467-L525
Use this to implement conversion from mbedtls_mpi
to mbedtls_mod_residue
.
Implement conversion from mbedtls_mod_residue
to mbedtls_mpi
as well.