16 Commits

Author SHA1 Message Date
Sun Yimin
1b512e5772
internal/cryptotest: add tests for the hash.Hash cipher.BlockMode cipher.Block interfaces 2024-08-02 13:02:25 +08:00
Sun Yimin
5adc912824
refine build tags 2024-03-05 09:47:49 +08:00
Sun Yimin
0996508b5b
internal/sm2ec: use ADCX/ADOX for order WWMM mul/sqr 2024-02-23 17:35:19 +08:00
Sun Yimin
80a79dacc5
fix bug #74 2023-11-09 08:46:44 +08:00
Sun Yimin
83cf55a137
sm2p256_asm.go中切片直接转数组指针 #74 2023-11-09 08:44:50 +08:00
Sun Yimin
17a3dd8d4b
change interface{} to any, and remove "+build" build tag #77 2023-11-09 08:34:50 +08:00
Sun Yimin
7152f4d1ac
internal/sm2ec: amd64 support plugin(eliminate usage of R15) #154 2023-09-08 14:09:16 +08:00
Sun Yimin
58121ac8cc
build: support plugin flag for amd64 #154 2023-09-07 08:50:10 +08:00
Sun Yimin
3bd048c903
sm2ec: use asm to implement p256OrdReduce 2023-06-16 15:52:28 +08:00
Sun Yimin
de14139590
sm2ec: p256ScalarMult change to use w=6 2023-06-14 17:30:58 +08:00
Sun Yimin
7f54c1e1a5
sm2ec: fix ScalarMult issue when scalar = N - 6 2023-06-13 13:24:43 +08:00
Sun Yimin
a0c4a389b8
sm2ec: optimize amd64 with MULX & AVX2 2023-06-10 10:55:17 +08:00
Sun Yimin
200a785d29
change build tag generic to purego & import nat package 2022-11-22 11:02:37 +08:00
Sun Yimin
8948bdd931
sm2: refactoring to reduce duplicated code 2022-08-25 16:45:18 +08:00
Sun Yimin
45d6a74b6a
update comment 2022-08-19 10:30:19 +08:00
Sun Yimin
93dca77af8
sync code from sm2fiat and branch 1.16 2022-08-17 15:23:59 +08:00