From d975764eb9a7f907c13c522ed67c51246bcaa842 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 16 Aug 2022 14:14:28 +0800 Subject: [PATCH] Updated is my code constant time? (markdown) --- is-my-code-constant-time?.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/is-my-code-constant-time?.md b/is-my-code-constant-time?.md index d114d8b..5254995 100644 --- a/is-my-code-constant-time?.md +++ b/is-my-code-constant-time?.md @@ -46,4 +46,8 @@ __INLINE void cpSM2KE_reduction_x2w(BNU_CHUNK_T *r, const BNU_CHUNK_T *a, const r[num_copy_bc - 1] = (r[num_copy_bc - 1] & mask) + vadd; return; } -``` \ No newline at end of file +``` +相对而言,第四步计算tB运算需要实现素数为Order n的montgomery运算: +1. 纯golang可以通过代码生成。 +1. amd64/arm64,至少需要实现加法,乘法已经有了。 +