207 Commits

Author SHA1 Message Date
emmansun
0f0eec19d0 provide a sample method to handle irregular ciphertext #90 2022-10-30 09:46:09 +08:00
Sun Yimin
57d01255e8
handle padding zero, #90 2022-10-28 09:31:41 +08:00
Sun Yimin
9ba3e69efc
update error messages 2022-10-24 17:32:56 +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
Sun Yimin
d35482a358
pkcs8 sm9 master sign/encrypt private key support 2022-10-24 11:00:13 +08:00
emmansun
404cd10210 support sm9 key format with gmssl 2022-10-22 15:49:01 +08:00
Sun Yimin
fb7041acbc
sm2/9: key exchange destroy, fix #80 2022-08-30 09:54:29 +08:00
Sun Yimin
4a21345e72
sm9: fix compile error 2022-08-25 12:58:02 +08:00
Sun Yimin
7ebdf00640
fix defect 2022-08-25 12:54:59 +08:00
Sun Yimin
eedd5ebc2b
kdf: move Kdf() from sm3 to kdf 2022-08-25 11:48:41 +08:00
Sun Yimin
21a9793600
sm2/sm9: key exchange, support to destroy internal state 2022-08-24 15:15:58 +08:00
Sun Yimin
1710bdff4a
refactoring, rename internal packages 2022-08-18 14:49:35 +08:00
Sun Yimin
c88bad8c7d
sm2/9 key exchange: test no sign/verify case 2022-08-17 11:36:50 +08:00
Sun Yimin
3f550e2f24
sm2/9: key exchange error message and comment 2022-08-17 11:17:18 +08:00
Sun Yimin
05aeed5c34
sm9: marshal compressed 2022-08-09 10:01:34 +08:00
Sun Yimin
f437855de0
add unit test case and fix typo 2022-08-03 16:31:02 +08:00
Sun Yimin
818cbc3757
misc: clean code 2022-07-28 10:01:30 +08:00
Sun Yimin
54a06d72e1
sm9: test all curves 2022-07-19 16:07:42 +08:00
Sun Yimin
ec7f96d3cc
sm9: remove unsure code 2022-07-19 15:36:08 +08:00
Sun Yimin
711508985e
sm9: clean code and unit test 2022-07-19 08:58:12 +08:00
Sun Yimin
24765d0e35
supplement unit test cases 2022-07-18 10:13:53 +08:00
Sun Yimin
be29c32fe5
Update README.md 2022-07-17 17:48:02 +08:00
Emman
eb94980db3 run "gofmt -s -w" 2022-07-15 16:42:39 +08:00
Sun Yimin
7bf006ca42
go report card 2022-07-11 13:27:36 +08:00
Sun Yimin
eca13ba8c5
[sm9] fix 32-bit GOARCH issue 2022-07-07 11:43:00 +08:00
Emman
1ccbc35f12 Revert "[sm9] fix 32-bit GOARCH issue"
This reverts commit 53b24e0aaccaed0d3f3c4f04ead2121363afa91f.
2022-07-07 11:28:44 +08:00
Sun Yimin
53b24e0aac
[sm9] fix 32-bit GOARCH issue 2022-07-07 10:50:24 +08:00
Sun Yimin
b4b9cd07d9
key exchange refactoring 2022-06-23 10:24:10 +08:00
Sun Yimin
461f4b6838
sm9: improve performance according sparse elements 2022-06-22 15:36:46 +08:00
Sun Yimin
195f6f73ba
sm9: change finalExponentiation implementation 2022-06-20 13:34:53 +08:00
Sun Yimin
e06e5ef47b
key exchange refactoring, reduce duplicated code 2022-06-20 09:42:48 +08:00
Sun Yimin
23914a86c3
SM2: key exchange 2022-06-17 16:58:26 +08:00
Sun Yimin
823cf4a470
test: reduce fmt.Printf 2022-06-17 08:49:50 +08:00
Sun Yimin
aa9e546638
SM9: update readme and supplement comment 2022-06-16 16:40:00 +08:00
Sun Yimin
410b1eea3a
SM9: add key exchange support 2022-06-16 14:43:28 +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
14af2513d8
SM9: G1 G2 support point compress 2022-06-15 15:17:16 +08:00
opensvn
e5150e19b5 change the function name and use the correct verb 2022-06-15 13:40:30 +08:00
Sun Yimin
b77041404d
test cases to original file 2022-06-14 14:36:58 +08:00
Sun Yimin
35fb02af53
fix own error 2022-06-14 14:25:01 +08:00
Sun Yimin
7bd1a3823e
try fix arm64 2022-06-14 14:19:35 +08:00
Sun Yimin
dcb4dadd47
check arm64 mul 2022-06-14 12:13:27 +08:00
Sun Yimin
4c532200a9
try again 2022-06-14 11:44:06 +08:00
Sun Yimin
4f2585ddbc
check arm64 gfp 2022-06-14 11:03:54 +08:00
Sun Yimin
554621915d
try to find out arm64 fail root cause 2022-06-14 09:59:59 +08:00
Sun Yimin
9f5752e5d7
find out arm64 asm failed method 2022-06-14 09:52:20 +08:00
Sun Yimin
5d5e5603bd
remove travis ppc64le CI 2022-06-14 09:01:52 +08:00
Sun Yimin
ccdb7b0568
supplement user key generation performance 2022-06-13 17:35:46 +08:00