1792 Commits

Author SHA1 Message Date
Sun Yimin
a49eecd572
zuc: move implementation detail to internal 2025-03-11 16:11:18 +08:00
Sun Yimin
537c80a28b
sm3: move implementation detail to internal 2025-03-11 14:02:47 +08:00
Sun Yimin
5edcb0f966
sm4: move implementation detail to internal 2025-03-11 11:43:49 +08:00
Sun Yimin
65a69ad83c
internal/bigmod: explicitly clear expanded limbs on reset #313 2025-03-11 08:58:16 +08:00
Sun Yimin
71b196a5ac
Merge pull request #312 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.36.0
build(deps): bump golang.org/x/crypto from 0.35.0 to 0.36.0
2025-03-11 08:20:58 +08:00
dependabot[bot]
500cb8a418
build(deps): bump golang.org/x/crypto from 0.35.0 to 0.36.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/crypto/compare/v0.35.0...v0.36.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>
2025-03-10 23:41:37 +00:00
Sun Yimin
762cbbf0c6
ci: check macOs 2025-03-05 15:09:15 +08:00
Sun Yimin
9d6f8087f9
internal/cpu: correct import #310 2025-03-05 15:03:21 +08:00
Sun Yimin
a6d8014ac9
internal/cpu: missing one #310 2025-03-05 14:58:28 +08:00
Sun Yimin
d7a6169fbf
internal/cpu: import codes from golang.org/x/sys/cpu #310 2025-03-05 14:54:51 +08:00
Sun Yimin
67f187b1d3
sm4: define & use type KeySizeError 2025-03-05 10:56:13 +08:00
Sun Yimin
759bb4c0b9
internal/sm2ec: make SetBytes constant time, use latest golang features #309 2025-03-04 11:30:20 +08:00
Sun Yimin
5ade794e6b
internal/sm2ec: make SetBytes constant time #309 2025-03-04 08:59:51 +08:00
Sun Yimin
89962cf1e3
smx509: avoid crypto/rand.Int to generate serial number #308 2025-03-04 08:48:18 +08:00
Sun Yimin
d433e416fa
ci: enable code coverage 2025-02-27 13:08:09 +08:00
Sun Yimin
2c0f5f68fc
smx509: add support for PKCS8/PKIX X25519 key encodings #210 2025-02-27 11:44:53 +08:00
Sun Yimin
3d4dd002a4
smx509: add new CRL parser, deprecate old one #40 2025-02-27 10:22:19 +08:00
Sun Yimin
9ba88a32a4
smx509: use bytes.Clone 2025-02-27 08:16:07 +08:00
Sun Yimin
0bb54adc1e
cipher: use new functions 2025-02-26 11:46:48 +08:00
Sun Yimin
a98b806453
padding: use new function clear() 2025-02-26 11:41:47 +08:00
Sun Yimin
51a003b022
sm3: remove duplicated code 2025-02-26 11:16:47 +08:00
Sun Yimin
dc1c5806c9
internal/bigmod: use clear() 2025-02-26 10:50:35 +08:00
Sun Yimin
869be23867
sm4: remove unused package 2025-02-26 10:26:29 +08:00
Sun Yimin
8a25134c82
sm4: fallback ctr change 2025-02-26 10:24:46 +08:00
Sun Yimin
27e7ceacbc
sm4: use new functions: clear(), bytes.Clone() 2025-02-26 10:19:56 +08:00
Sun Yimin
ec8580b01f
sm2: fix go1.24 test issue 2025-02-26 09:46:03 +08:00
Sun Yimin
2192b702b0
upgrade github action to 1.23+ 2025-02-26 08:50:00 +08:00
Sun Yimin
d03a8fba3f
upgrade to go 1.23 2025-02-26 08:46:40 +08:00
Sun Yimin
33c609242c
internal/cpuid: use var block v0.29.8 2025-02-26 08:25:58 +08:00
Sun Yimin
d2dd4de947
doc: add smart questions link 2025-02-18 08:49:36 +08:00
Sun Yimin
1aed89febd
subtle: combine xor_<goarch>.go files #304 2025-02-17 08:32:20 +08:00
Sun Yimin
a248fea7f9
Merge pull request #302 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.33.0
build(deps): bump golang.org/x/crypto from 0.32.0 to 0.33.0
2025-02-11 07:34:43 +08:00
dependabot[bot]
53465ae10a
build(deps): bump golang.org/x/crypto from 0.32.0 to 0.33.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.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>
2025-02-10 23:30:00 +00:00
Sun Yimin
ea592fe3d0
cfca: fix typo 2025-01-23 16:35:32 +08:00
Sun Yimin
9e57bb91b2
cfca: add examples 2025-01-23 11:28:54 +08:00
Sun Yimin
ee55d370f8
improve test coverage and remove deprecated methods 2025-01-22 10:28:01 +08:00
Sun Yimin
4c88efbaee
sm2: provide a specific hash.Hash implementation #297 2025-01-20 17:36:46 +08:00
Sun Yimin
80a264c995
sm2: update document 2025-01-17 13:54:16 +08:00
Sun Yimin
50a5e49d38
smx509: properly check for IPv6 hosts in URIs #296 2025-01-17 08:30:27 +08:00
Sun Yimin
cb51b3657a
pkcs7: sync with upstream v0.29.7 2025-01-16 16:04:45 +08:00
Sun Yimin
cf6e203d06
pkcs7: update comments and document 2025-01-16 10:59:30 +08:00
Sun Yimin
057ddb5bcb
pkcs7: fix error message 2025-01-15 17:18:37 +08:00
Sun Yimin
94e533ca15
pkcs7: fix typo #294 2025-01-15 08:50:09 +08:00
Sun Yimin
818e14ee32
pkcs7: fix verify signing time check issue #294 2025-01-14 17:10:00 +08:00
Sun Yimin
8331b37e37
pkcs7: deleted a line by mistake #294 2025-01-14 16:52:15 +08:00
Sun Yimin
bef7f5421e
pkcs7: sign precomputed digest #294 2025-01-14 16:41:03 +08:00
Sun Yimin
5a0ff81dc3
Merge pull request #293 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.32.0
build(deps): bump golang.org/x/crypto from 0.31.0 to 0.32.0
2025-01-07 07:53:00 +08:00
dependabot[bot]
b865b59a95
build(deps): bump golang.org/x/crypto from 0.31.0 to 0.32.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.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>
2025-01-06 23:48:52 +00:00
Sun Yimin
0a961f152c
Merge pull request #292 from emmansun/dependabot/go_modules/golang.org/x/sys-0.29.0
build(deps): bump golang.org/x/sys from 0.28.0 to 0.29.0
2025-01-07 07:47:51 +08:00
dependabot[bot]
3544c09801
build(deps): bump golang.org/x/sys from 0.28.0 to 0.29.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/sys/compare/v0.28.0...v0.29.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>
2025-01-06 23:43:07 +00:00