1036 Commits

Author SHA1 Message Date
Sun Yimin
aa535e3aaa
sm9/bn256: gfP12MovCond asm implementation for amd64 & arm64 2023-06-21 14:35:58 +08:00
Sun Yimin
9bcbf9bae9
sm2/sm9: eliminate bounds checks in the loop of Select 2023-06-21 11:52:32 +08:00
Sun Yimin
2da0a9cebc
sm9/bn256: add comment for gfpNeg 2023-06-21 09:02:09 +08:00
emmansun
5d101fb431 sm9: fix neg issue 2023-06-20 21:01:56 +08:00
Sun Yimin
4bda6e6b6c
sm3: improve purego performance 2023-06-20 17:51:14 +08:00
Sun Yimin
0ad84822fe
sm9/bn256: re-implement gfp generic 2023-06-20 17:48:04 +08:00
Sun Yimin
392e5fb762
Merge pull request #128 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.10.0
build(deps): bump golang.org/x/crypto from 0.9.0 to 0.10.0
2023-06-20 08:28:22 +08:00
dependabot[bot]
72fe9cd1e8
build(deps): bump golang.org/x/crypto from 0.9.0 to 0.10.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 00:00:16 +00:00
Sun Yimin
72614b4d8b
sm4: cbc arm64 missing definition 2023-06-19 16:02:09 +08:00
Sun Yimin
f81bbd17df
sm4: improve arm64 single block performance & CBC decrypt performance 2023-06-19 15:51:49 +08:00
Sun Yimin
3cbabc3d1c
optimize purego sm3/sm4 and reduce bounds checking for sm9 v0.17.4 2023-06-16 16:06:38 +08:00
Sun Yimin
3bd048c903
sm2ec: use asm to implement p256OrdReduce 2023-06-16 15:52:28 +08:00
Sun Yimin
0e667b152d
sm4: improve purego performance 2023-06-16 10:22:15 +08:00
Sun Yimin
50352995ae
sm2ec: fix comment 2023-06-15 21:50:25 +08:00
Sun Yimin
008e826fdf
zuc: reduce bounds checking 2023-06-15 16:47:50 +08:00
Sun Yimin
79f0fb6b0d
sm3: reduce bounds checking 2023-06-15 11:52:14 +08:00
Sun Yimin
c4e0e39475
sm9: fix npe issue 2023-06-15 11:23:06 +08:00
Sun Yimin
a1b44f1a64
sm9: get around assignment copies lock value to issue 2023-06-15 11:17:51 +08:00
Sun Yimin
66eae26312
sm2ec: arm64 register reuse issue 2023-06-14 17:53:13 +08:00
Sun Yimin
a8791437f8
sm2ec: fix arm64 func name issue 2023-06-14 17:43:27 +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
40dba3a488
Merge pull request #126 from emmansun/dependabot/go_modules/golang.org/x/sys-0.9.0
build(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0
2023-06-13 08:22:23 +08:00
dependabot[bot]
e4e7eade14
build(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 00:00:35 +00:00
Sun Yimin
5e794738ca
sm2ec: amd64 reduce duplicated codes 2023-06-12 09:04:09 +08:00
Sun Yimin
a0c4a389b8
sm2ec: optimize amd64 with MULX & AVX2 2023-06-10 10:55:17 +08:00
Sun Yimin
df8cb4d95d
bigmod: optimization for 256 bits v0.17.3 2023-06-07 09:43:20 +08:00
Sun Yimin
207fd1e7a4
drbg: fix drbg prng read issue when reseed 2023-06-07 08:32:46 +08:00
Sun Yimin
83849d33cf
sm4: fix bug 2023-06-05 14:46:59 +08:00
Sun Yimin
57d800767b
sm4: finetune bounds check 2023-06-05 14:32:15 +08:00
Sun Yimin
f3a5d48ed8
properly apply name constrains to roots and intermediates #125 2023-06-01 13:10:54 +08:00
Sun Yimin
36a92eff46
fix array len issue 2023-06-01 11:40:28 +08:00
Sun Yimin
88a158f61c
fix golang sdk version issue 2023-06-01 11:22:43 +08:00
Sun Yimin
0bf96ecea2
fix compile issue 2023-06-01 11:12:23 +08:00
Sun Yimin
f32b7e1afc
[sync sdk] crypto/internal/bigmod: switch to saturated limbs 2023-06-01 10:39:12 +08:00
Sun Yimin
f7a04e74a1
upgrade other actions/setup-go to v4 2023-05-24 17:29:59 +08:00
Sun Yimin
5817b08c43
Update ci.yml
upgrade actions/setup-go@v4 to support cache by default
2023-05-24 17:22:01 +08:00
Sun Yimin
6e9ba588f9
Merge pull request #122 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.9.0
build(deps): bump golang.org/x/crypto from 0.8.0 to 0.9.0
2023-05-16 08:43:24 +08:00
dependabot[bot]
fd26e4b1c2
build(deps): bump golang.org/x/crypto from 0.8.0 to 0.9.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/crypto/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 00:00:08 +00:00
emmansun
c3847c504f xor: use avx2 if possible 2023-05-13 10:26:44 +08:00
Sun Yimin
941b782448
Merge pull request #121 from emmansun/dependabot/go_modules/golang.org/x/sys-0.8.0
build(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0
2023-05-09 08:25:18 +08:00
dependabot[bot]
5fb8d7b332
build(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-09 00:00:32 +00:00
Sun Yimin
0a7f4d4779
Update README.md
发现提高没那么多
2023-05-04 09:02:23 +08:00
emmansun
ad80148a26 sm9: fix gfP12b6Gen error, not used yet 2023-05-03 11:24:07 +08:00
emmansun
12d604b54f sm9: add comment for mulLine v0.17.2 2023-05-02 14:04:00 +08:00
emmansun
0cf7d640c5 sm9: optimize mul line 2023-05-02 12:13:18 +08:00
emmansun
de6e4c2464 sm9: pairing 避免除数处理 2023-05-02 11:39:16 +08:00
emmansun
bf17ff1a4d sm9: need to further check 0 handling v0.17.1 2023-04-29 13:47:58 +08:00
emmansun
13ddfad8e4 sm9: optimize generate and gfP2 sqrt 2023-04-29 13:33:44 +08:00
emmansun
b197c96040 sm9: update README 2023-04-29 10:47:19 +08:00