Re: [PATCH] crypto: sm2 - remove unnecessary reset operations

2020-10-30 Thread Herbert Xu
On Thu, Oct 15, 2020 at 05:24:41PM +0800, Tianjia Zhang wrote: > This is an algorithm optimization. The reset operation when > setting the public key is repeated and redundant, so remove it. > At the same time, `sm2_ecc_os2ec()` is optimized to make the > function more simpler and more in line

[PATCH] crypto: sm2 - remove unnecessary reset operations

2020-10-15 Thread Tianjia Zhang
This is an algorithm optimization. The reset operation when setting the public key is repeated and redundant, so remove it. At the same time, `sm2_ecc_os2ec()` is optimized to make the function more simpler and more in line with the Linux code style. Signed-off-by: Tianjia Zhang ---