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
3eea15b3b8
internal/sm9,sm9: refactor all keys
2025-03-25 11:10:53 +08:00
Sun Yimin
c32a9849f8
sm9: refactoring #314
2025-03-13 16:50:28 +08:00
Sun Yimin
bdb169b06b
sm9: refactoring, do not expose bn256 types to caller #314
2025-03-13 14:14:45 +08:00
Sun Yimin
43ffd49e2f
sm9: refactoring, do not expose bn256 types to caller #314
2025-03-13 13:46:14 +08:00
Sun Yimin
5db7e63360
provide convient methods to parse pkcs8 sm9 keys
2022-10-24 16:09:12 +08:00
Sun Yimin
f6af6eb729
add gmssl test cases
2022-10-24 11:42:26 +08:00
emmansun
404cd10210
support sm9 key format with gmssl
2022-10-22 15:49:01 +08:00
Sun Yimin
05aeed5c34
sm9: marshal compressed
2022-08-09 10:01:34 +08:00
Sun Yimin
24765d0e35
supplement unit test cases
2022-07-18 10:13:53 +08:00
Emman
eb94980db3
run "gofmt -s -w"
2022-07-15 16:42:39 +08:00
Sun Yimin
81c0dbb0fa
SM9: refactoring, move separate SM9 & bn256
2022-06-16 10:14:45 +08:00
Sun Yimin
3320de17b8
SM9: supplement comment and sample test case
2022-06-16 08:46:28 +08:00
Sun Yimin
e8d3b67446
sm9 sign wrappkey encryption
2022-06-10 11:24:25 +08:00