Sun Yimin
67ac5da71e
mldsa: optimize to read a block once
2025-05-28 16:13:40 +08:00
Sun Yimin
3c24ac0690
slhdsa: go1.24 build
2025-05-27 10:14:54 +08:00
Sun Yimin
6f6631236f
slhdsa: provide handy methods
2025-05-27 10:12:08 +08:00
Sun Yimin
da0d651197
sm2: provide SignMessage method to comply with the [crypto.MessageSigner] interface
2025-05-26 15:10:48 +08:00
Sun Yimin
fe1d170bdc
smx509: use truncated SHA-256 for SubjectKeyId #328
2025-05-26 13:34:12 +08:00
Sun Yimin
7e203652ef
smx509: disallow negative path length #329
2025-05-26 13:18:51 +08:00
Sun Yimin
b2b1a9b56b
sm2: provide low-level encoding functions for keys (alias for NewXXX)
2025-05-26 10:49:25 +08:00
Sun Yimin
08bf93c1b1
slhdsa: align function parameter name
2025-05-22 15:47:56 +08:00
Sun Yimin
c467b22fb9
slhdsa: reduce slice make times and supplement comments
2025-05-22 14:21:24 +08:00
Sun Yimin
44b9419aa7
ci: test coverage for golang 1.24
2025-05-21 13:49:11 +08:00
Sun Yimin
64dbdf27c8
slhdsa: supplement more test cases
2025-05-21 11:41:00 +08:00
Sun Yimin
dd24189d7d
slhdsa: SLH-DSA-SHAKE-128f test cases
2025-05-21 11:20:05 +08:00
Sun Yimin
9f0d175f2c
slhdsa: SLH-DSA initialize
2025-05-21 11:10:44 +08:00
Sun Yimin
b634efb6ad
mldsa: generate mldsa65 mldsa87 based on mldsa44
2025-05-09 10:24:21 +08:00
Sun Yimin
0345946203
mldsa: supplement comments
2025-05-08 10:22:30 +08:00
Sun Yimin
fc7dc9a54a
doc: update README
2025-05-07 15:37:09 +08:00
Sun Yimin
8430ebd36c
mldsa: supports prehash dsa
2025-05-07 15:09:31 +08:00
Sun Yimin
834873f0e8
mldsa: supports prehash dsa
2025-05-07 15:08:36 +08:00
Sun Yimin
dfd4143c65
mldsa: requires golang 1.24+
2025-05-07 10:09:48 +08:00
Sun Yimin
90522392f1
mldsa: initial implementation NIST FIPS 204
2025-05-07 10:05:13 +08:00
Sun Yimin
07bf6835b7
Merge pull request #325 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.38.0
...
build(deps): bump golang.org/x/crypto from 0.37.0 to 0.38.0
2025-05-06 08:17:00 +08:00
dependabot[bot]
32d5c4c0c5
build(deps): bump golang.org/x/crypto from 0.37.0 to 0.38.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-06 00:09:53 +00:00
Sun Yimin
7b75b6b26b
update disclaimer
2025-04-18 08:50:39 +08:00
Sun Yimin
5aacbc2011
Merge pull request #324 from hrimfaxi/main
...
sm9: Prevent PublicKey() returning nil after unmarshaling master priavate key
v0.30.1
2025-04-15 17:31:55 +08:00
YuanHongYe
fe532e12b4
sm9: Prevent PublicKey() returning nil after unmarshaling master private key
...
During unmarshaling of SignMasterPrivateKey and EncryptMasterPrivateKey,
now generate the corresponding public key.
This ensures that PublicKey() does not return nil.
Test cases included to validate the changes.
Signed-off-by: YuanHongYe <yuanhongye@chinatelecom.cn>
2025-04-15 17:01:27 +08:00
Sun Yimin
1dc82305e4
Merge pull request #323 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.37.0
...
build(deps): bump golang.org/x/crypto from 0.36.0 to 0.37.0
2025-04-08 09:28:54 +08:00
dependabot[bot]
ed256a9ea3
build(deps): bump golang.org/x/crypto from 0.36.0 to 0.37.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.37.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 00:52:59 +00:00
Sun Yimin
d8c6788e8f
sm2, sm2ec: remove useless codes since go 1.19
2025-04-07 13:10:09 +08:00
Sun Yimin
0ef30b3ab5
internal/zuc: supplement comments
v0.30.0
2025-04-03 10:40:06 +08:00
Sun Yimin
d3eece5560
cfca: fix test cases #322
2025-04-01 17:06:47 +08:00
Sun Yimin
0af92d8e48
smx509: CFCA CSR supports RSA keys #322
2025-04-01 17:02:13 +08:00
Sun Yimin
bf644fbb4e
docs/zuc: add seekable stream part
2025-03-28 17:19:19 +08:00
Sun Yimin
359b46453b
internal/zuc,zuc: eea seakable stream support zuc states cache per bucket #321
2025-03-28 16:53:29 +08:00
Sun Yimin
b8d52dd11d
internal/sm9/bn256: make gfP.Unmarshal constant time
2025-03-26 16:37:04 +08:00
Sun Yimin
9ea8293d10
internal/sm2ec/fiat: fix error message
2025-03-26 15:20:30 +08:00
Sun Yimin
e8a847e005
internal/sm9/bn256: remove useless code
2025-03-26 09:49:30 +08:00
Sun Yimin
a7c4473a48
internal/sm9/bn256: reduce big.Int usage
2025-03-26 09:30:39 +08:00
Sun Yimin
11d0438cc4
internal/sm9: reduce usage of big.Int
2025-03-25 17:19:10 +08:00
Sun Yimin
88df15c64c
sm9: implement crypto.Singer crypto.Decrypter interface
2025-03-25 14:58:16 +08:00
Sun Yimin
3eea15b3b8
internal/sm9,sm9: refactor all keys
2025-03-25 11:10:53 +08:00
Sun Yimin
dd69d32930
drbg: replace with for range
2025-03-25 08:49:56 +08:00
Sun Yimin
a84fec09af
internal/cpu: move to internal/deps/cpu #310
2025-03-21 10:04:35 +08:00
Sun Yimin
c43e0488a6
cbcmac: fix typo
2025-03-21 08:38:59 +08:00
Sun Yimin
a4affe6006
cbcmac,padding: supplement/update comments
2025-03-20 16:34:19 +08:00
Sun Yimin
3cc92436ee
padding: fix "Size computation for allocation may overflow"
2025-03-19 11:16:26 +08:00
Sun Yimin
93c965f3c1
cipher: move xts detail implementation to internal #320
2025-03-19 10:21:52 +08:00
Sun Yimin
d8eb166dfc
cbcmac: enable provided padding for EMAC/ANSI Retail MAC/MAC-DES/LMAC #319
2025-03-19 10:10:00 +08:00
Sun Yimin
2d3329a2ea
padding: missing PaddingFunc #319
2025-03-18 11:44:45 +08:00
Sun Yimin
f41a5c69e7
cbcmac: CBCMAC enable provided padding method #319
2025-03-18 11:41:04 +08:00
Sun Yimin
cf027254dc
update README #319
2025-03-18 11:27:28 +08:00