Re: [PATCH 2/6] lib/mpi: Introduce ec implementation to MPI library

From: Stephan Mueller
Date: Tue Jan 21 2020 - 06:40:34 EST


Am Dienstag, 21. Januar 2020, 10:57:14 CET schrieb Tianjia Zhang:

Hi Tianjia,

> The implementation of EC is introduced from libgcrypt as the
> basic algorithm of elliptic curve, which can be more perfectly
> integrated with MPI implementation.
> Some other algorithms will be developed based on mpi ecc, such as SM2.

Why do we need a second implementation of ECC? Why can't we reuse the existing
ECC implementation in crypto/ecc.c? Or are there limitations in the existing
ECC implementation that cannot be fixed?

Thank you.

Ciao
Stephan