212 Commits

Author SHA1 Message Date
Sun Yimin
865159d86a
internal/bigmod: add more //go:norace annotations and refactoring 2024-12-06 08:54:47 +08:00
Sun Yimin
fcd1aa22d2
internal/bigmod: disable race detector on tight loops #285 2024-12-05 08:33:11 +08:00
Sun Yimin
d009f7ebef
internal/bigmod: sync bigmod change between 30/Nov 2024 to 3/Dec 2024 #282 2024-12-03 17:57:27 +08:00
Sun Yimin
e6a8b84935
cbcmac: supplement test cases #281 2024-12-03 08:20:59 +08:00
Sun Yimin
8264b5f42c
internal/bigmod: add support for even moduli #280 2024-11-27 08:59:46 +08:00
Sun Yimin
e08954dd45
internal/bigmod: add support for even moduli #280 2024-11-27 08:56:11 +08:00
Sun Yimin
4df708a76b
internal/bigmod: add support for even moduli #280 2024-11-27 08:52:03 +08:00
Sun Yimin
8c6297d00f
internal/sm2ec: improve purego implementation's performance #274 2024-11-21 14:42:40 +08:00
Sun Yimin
bf14e70c4b
internal/byteorder: new package #275 2024-11-21 14:32:32 +08:00
Sun Yimin
4f7504c6b9
internal/bigmod: optimize SetOverflowedBytes #273 2024-11-20 18:15:32 +08:00
Sun Yimin
9624b43515
internal/bigmod: drop math/big dependency #273 2024-11-20 18:06:29 +08:00
Sun Yimin
cd60dad621
internal/subtle: document and test XORBytes overlap rules #272 2024-11-20 14:21:16 +08:00
Sun Yimin
e1c457c1f0
internal/cryptotest: fix typos in AEAD test comments 2024-10-01 11:37:10 +08:00
Sun Yimin
50f5d29e49
zuc: eia, ppc64x optimization #253 2024-09-30 17:27:26 +08:00
Sun Yimin
6b0a557be1
sm4: ppc64x, merge the implementation to cipher_asm 2024-09-12 10:12:37 +08:00
Sun Yimin
c7a68d9246
internal/sm2ec: ppc64le,
Improve VMULT_ADD code readability
2024-09-03 12:57:34 +08:00
Sun Yimin
236f23b24c
internal/sm2ec: ppc64le, p256Sqr, remove stange code 2024-09-03 08:58:47 +08:00
Sun Yimin
c88486ea0a
internal/sm2ec: ppc64le, guess stack offset 2024-09-03 08:51:44 +08:00
Sun Yimin
e1b60feeb5
internal/sm2ec: ppc64le, change p256PointAddAffineAsm's stack 2024-09-03 08:46:26 +08:00
Sun Yimin
dfcafd31b3
internal/sm2ec: ppc64le, p256PointAddAsm reduce memory acesss 2024-09-03 08:23:21 +08:00
Sun Yimin
235382a457
internal/subtle: fix riscv64 2024-09-02 13:18:08 +08:00
Sun Yimin
3ede9024a5
internal/subtle: simple riscv64 2024-09-02 13:13:16 +08:00
Sun Yimin
8a2ba16639
internal/cryptotest: add tests for the cipher.AEAD interface 2024-08-30 16:25:25 +08:00
Sun Yimin
fdf83a1ee8
internal/sm2ec: ppc64le, redefine K0 constant 2024-08-30 16:21:03 +08:00
Sun Yimin
c8384dd226
internal/sm2ec: ppc64le, fix comments #237 2024-08-29 17:38:49 +08:00
Sun Yimin
68f37d7934
internal/sm2ec: ppc64le, change to use VMULUWM as WMLF 2024-08-29 14:05:47 +08:00
Sun Yimin
79efc657e0
internal/sm2ec: ppc64le, simplified MK0 calculation 2024-08-29 13:29:03 +08:00
Sun Yimin
0c5dc07ba7
internal/sm2ec: fix ppc64le typo 2024-08-29 13:21:06 +08:00
Sun Yimin
7e768828e0
check failed detail 2024-08-29 13:13:50 +08:00
Sun Yimin
38f25df5ce
internal/sm2ec: fix ppc64le ord 4 2024-08-29 11:27:44 +08:00
Sun Yimin
d92f6afea1
internal/sm2ec: fix ppc64le incorrect K0 constant 2024-08-29 10:23:41 +08:00
Sun Yimin
5ddd288221
internal/sm2ec: fix ppc64le 3 2024-08-29 10:16:55 +08:00
Sun Yimin
7b8431c101
internal/sm2ec: fix ppc64le 2 2024-08-29 10:09:25 +08:00
Sun Yimin
95f78a8497
internal/sm2ec: fix ppc64le 2024-08-29 10:06:10 +08:00
Sun Yimin
c198fa8abc
internal/sm2ec: ppc64le order mul/sqr 2024-08-29 10:02:16 +08:00
Sun Yimin
f0b36b70ce
internal/sm2ec: s390x, try to use VLM/VSTM #235 2024-08-29 08:33:35 +08:00
Sun Yimin
a32ca8fa14
internal/sm2ec: ppc64le, fix address issue 2024-08-28 13:52:34 +08:00
Sun Yimin
a83f85f561
internal/sm2ec: ppc64le, fix SEL 2024-08-28 13:48:02 +08:00
Sun Yimin
e8424e9b26
internal/sm2ec: ppc64le, typo 2024-08-28 13:44:50 +08:00
Sun Yimin
35d5ddeaf4
internal/sm2ec: ppc64le, change p256NegCond to constant-time 2024-08-28 13:42:06 +08:00
Sun Yimin
b69000109b
internal/subtle: s390x, not use VLM/VSTM first, should be address mode issue 2024-08-28 13:27:22 +08:00
Sun Yimin
45584ccaa6
internal/subtle: apply VLM/VSTM in non-loop 2024-08-28 13:18:42 +08:00
Sun Yimin
40bd384f21
internal/subtle: s390x, use VLM/VSTM in loop 2024-08-28 13:12:57 +08:00
Sun Yimin
4ad4fb4136
internal/subtle: s390x, fix typo 2024-08-28 13:10:15 +08:00
Sun Yimin
f366964a77
internal/subtle: s390x, check if VLM/VSTM issue 2024-08-28 13:08:26 +08:00
Sun Yimin
a2295b993d
internal/subtle: s390x, add quick end checking 2024-08-28 10:16:08 +08:00
Sun Yimin
eb36af59e5
internal/subtle: s390x, handle tail 2024-08-28 10:13:59 +08:00
Sun Yimin
e3fba2448c
internal/subtle: s390x rollback first 2024-08-28 09:59:52 +08:00
Sun Yimin
d3727e7130
align address mode 2024-08-28 09:42:12 +08:00
Sun Yimin
ae43444a63
list all fail cases 2024-08-28 09:19:47 +08:00