1276 Commits

Author SHA1 Message Date
Sun Yimin
2b95e2808c
ci: build riscv64 2024-03-04 10:12:26 +08:00
Sun Yimin
45b41b9596
limist the test scope 2024-03-04 09:52:36 +08:00
Sun Yimin
a37c441993
internal/bigmod: test riscv64 2024-03-04 09:26:57 +08:00
Sun Yimin
5ca8006d1e
internal/bigmod: port riscv64 implementation from Golang 2024-03-04 08:53:33 +08:00
Sun Yimin
b3b9cb22a2
ci: rename 2024-03-04 08:35:05 +08:00
Sun Yimin
64fe377c25
ci: add riscv64 2024-03-04 08:34:15 +08:00
Sun Yimin
9f7e3ef018
internal/sm2ec: supplement comments 2024-03-01 17:40:15 +08:00
Sun Yimin
53ac591635
internal/sm2ec: amd64 refactoring, reduce duplicated code 2024-02-29 17:53:28 +08:00
Sun Yimin
fabcb6ad30
internal/sm2ec: amd64, optimize point double 2024-02-28 17:39:27 +08:00
Sun Yimin
ee7af1bda3
internal/sm2ec: use ADX for mul/sqr and internal sqr 2024-02-27 17:44:30 +08:00
Sun Yimin
51fc24c704
Merge pull request #205 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.20.0
build(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0
v0.26.0
2024-02-27 07:08:00 +08:00
dependabot[bot]
bf38c0e462
build(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/crypto/compare/v0.19.0...v0.20.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>
2024-02-26 23:03:18 +00:00
Sun Yimin
18cc283af2
internal/sm2ec: add comments 2024-02-26 08:25:37 +08:00
emmansun
35466446d4 internal/sm2ec: order sqr/mul WWMM sub first 2024-02-24 13:36:46 +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
052040fd82
internal/sm2ec: mul WWMM reduction, sub first 2024-02-22 17:44:16 +08:00
Sun Yimin
2553456216
internal/sm2ec: update WWMM reduction for Square 2024-02-22 14:53:02 +08:00
Sun Yimin
de2376fe60
Merge pull request #203 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.19.0
build(deps): bump golang.org/x/crypto from 0.18.0 to 0.19.0
2024-02-13 08:07:08 +08:00
dependabot[bot]
5b4c0424d5
build(deps): bump golang.org/x/crypto from 0.18.0 to 0.19.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/crypto/compare/v0.18.0...v0.19.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>
2024-02-12 23:05:46 +00:00
Sun Yimin
6c25107cd1
ci: add go1.22 2024-02-07 16:51:47 +08:00
Sun Yimin
78c7cf81fe
ciphter/ctr: remove uselss import 2024-02-07 13:44:33 +08:00
Sun Yimin
267ff02783
cipher/ctr: add more test data 2024-02-07 13:41:52 +08:00
Sun Yimin
6b808a6003
zuc: refactor S1_compute on arm64 2024-01-31 17:36:28 +08:00
Sun Yimin
a2ce3f51d0
sm4: reduce bounds check 2024-01-31 14:48:46 +08:00
Sun Yimin
056d14a892
ci: rollback 2024-01-31 13:19:48 +08:00
Sun Yimin
1f3d5d19a4
ci: support go 1.22 2024-01-31 13:16:29 +08:00
Sun Yimin
19636d09c1
sm4: code refactor for block 2024-01-31 13:08:51 +08:00
Sun Yimin
aaabb09dac
sm2: saving some temporary variables 2024-01-30 17:51:13 +08:00
Sun Yimin
fe4e699b19
zuc: optimize constant loading on arm64 2024-01-30 17:33:34 +08:00
Sun Yimin
9a45c4101b
sm4: optimize constant value loading on arm64 2024-01-30 13:10:41 +08:00
Sun Yimin
515cabfd04
sm4: optimize constant loading on arm64 2024-01-30 13:04:03 +08:00
Sun Yimin
d9591cf102
fix action v0.25.0 2024-01-25 17:49:40 +08:00
Sun Yimin
f04d7f102f
add FORCE_SM4BLOCK_AESNI test 2024-01-25 17:47:25 +08:00
Sun Yimin
a01428eaf3
sm4: add env var FORCE_SM4BLOCK_AESNI & give up cbc asm implementation 2024-01-25 17:46:09 +08:00
Sun Yimin
29b6da1d37
sm4: change to use pure go for single block encryption/decryption 2024-01-25 09:02:28 +08:00
Sun Yimin
8e6f9c8fb4
fix macos action 2024-01-24 13:16:41 +08:00
Sun Yimin
8198f2aa8e
fix darwin cpu feature detect issue 2024-01-24 13:11:09 +08:00
Sun Yimin
5cf5e347bc
internal/bigmod: sync sdk #200 v0.24.3 2024-01-12 17:43:51 +08:00
Sun Yimin
25ead7dc1f
smx509: refactor p8 parse and pkix public key parse 2024-01-11 17:45:55 +08:00
Sun Yimin
7db8067549
smx509: can parse openssl v3.1.3 p8 sm2 private key #197 v0.24.2 2024-01-09 08:29:18 +08:00
Sun Yimin
192bcb95bd
Merge pull request #199 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.18.0
build(deps): bump golang.org/x/crypto from 0.17.0 to 0.18.0
2024-01-09 07:42:12 +08:00
dependabot[bot]
9383525118
build(deps): bump golang.org/x/crypto from 0.17.0 to 0.18.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/crypto/compare/v0.17.0...v0.18.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>
2024-01-08 23:25:23 +00:00
Sun Yimin
906f7d4891
Merge pull request #198 from emmansun/dependabot/go_modules/golang.org/x/sys-0.16.0
build(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0
2024-01-09 07:24:20 +08:00
dependabot[bot]
49440cb3ce
build(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.16.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>
2024-01-08 23:19:03 +00:00
Sun Yimin
ceff9bfd19
doc: sm4 AEAD mode dst explanation 2023-12-29 17:57:40 +08:00
Sun Yimin
f9b884b62c
README 增加软件许可 2023-12-26 08:31:50 +08:00
Sun Yimin
93f3a5e020
doc: update sm2/sm4 document 2023-12-22 17:54:42 +08:00
Sun Yimin
3ac62049d6
doc: SM9标识密码算法应用指南 2023-12-19 10:36:06 +08:00
Sun Yimin
96c42cd00a
Merge pull request #192 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.17.0
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
2023-12-19 07:45:50 +08:00
dependabot[bot]
3bf75613d2
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.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-12-18 23:36:14 +00:00