mbedtls icon indicating copy to clipboard operation
mbedtls copied to clipboard

Add Conversions - to and from raw Montgomery form and mbedtls_mpi

Open yanesca opened this issue 2 years ago • 0 comments

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.

yanesca avatar Jul 04 '22 12:07 yanesca