183 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
49f25af421
add parallel test 2022-09-16 11:48:28 +08:00
Sun Yimin
8f7a7626ba
sm2: support ecdh mqv 2022-09-02 14:03:51 +08:00
Sun Yimin
fb7041acbc
sm2/9: key exchange destroy, fix #80 2022-08-30 09:54:29 +08:00
Sun Yimin
d1e4806e06
sm2: refactoring, reduce duplicated codes 2022-08-25 16:54:30 +08:00
Sun Yimin
8948bdd931
sm2: refactoring to reduce duplicated code 2022-08-25 16:45:18 +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
8f5dcb842e
sm2: key exchange refactoring 2022-08-24 16:53:11 +08:00
Sun Yimin
21a9793600
sm2/sm9: key exchange, support to destroy internal state 2022-08-24 15:15:58 +08:00
Sun Yimin
474168700e
sm2 ke: make sure the peer pub key using same curve 2022-08-19 11:39:02 +08:00
Sun Yimin
1710bdff4a
refactoring, rename internal packages 2022-08-18 14:49:35 +08:00
Sun Yimin
b96e51e3ff
sm2: supplement test cases 2022-08-18 10:54:25 +08:00
Sun Yimin
ae12f04c14
sm2: use golang 1.19 style marshal/unmarshal 2022-08-18 09:12:00 +08:00
Sun Yimin
37f3e129da
use golang 1.19 feature 2022-08-17 15:58:06 +08:00
Sun Yimin
93dca77af8
sync code from sm2fiat and branch 1.16 2022-08-17 15:23:59 +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
fb53e7eb71
sm2: key exchange fix bug & add comments 2022-08-16 11:46:08 +08:00
cliven
a6172852fc 修改了设置对端参数名称,增加了防止重复设置的检查。 2022-08-14 11:10:55 +08:00
cliven
eea15c3e4c SM2密钥交换算法支持了初始化时没有对端公开信息,在后续加入公开信息的方法。 2022-08-13 15:18:47 +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
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
b4b9cd07d9
key exchange refactoring 2022-06-23 10:24:10 +08:00
Sun Yimin
974ba65845
sm2: generic use new method first 2022-06-20 11:34:05 +08:00
Sun Yimin
0136fdcabf
forgot one file 2022-06-20 09:45:34 +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
f5bd2cabad
fix 1.17 error 2022-06-14 08:57:25 +08:00
Sun Yimin
8cb1e257dc
support build generic 2022-06-14 08:45:54 +08:00
Sun Yimin
e8d3b67446
sm9 sign wrappkey encryption 2022-06-10 11:24:25 +08:00
Sun Yimin
ef51a679a7
extract kdf to sm3 2022-06-10 10:29:12 +08:00
Sun Yimin
bb0f4f7996
refactoring, align error message pattern 2022-05-27 17:46:14 +08:00
Sun Yimin
14e38f9aa5
code copy issue 2022-05-18 17:42:26 +08:00
Sun Yimin
e7bfecaf49
remove util.go 2022-05-18 15:58:09 +08:00
Sun Yimin
c5982357d3
avoid slice again 2022-05-18 15:43:08 +08:00
Sun Yimin
01063b1ff7
use golang sdk as much as possible 2022-05-18 15:33:33 +08:00
Sun Yimin
fc1411a702
fix assembly that clobbers BP 2022-05-18 09:05:02 +08:00
Sun Yimin
8fda97f991
p256Inverse using addchain generated code 2022-05-16 12:51:43 +08:00
Sun Yimin
5b5942db84
refactor point marshal/unmarshal 2022-05-11 16:58:36 +08:00
Emman
0a827de266 update package level comments 2022-04-20 08:36:44 +08:00
Emman
dc34e17797 tolerate zero-padded scalars in generic implementation 2022-04-08 11:18:45 +08:00
Emman
fc6fce3bbf Test Issue 52075 - generic impl panic when scalar has too many leading zeroes 2022-04-08 10:50:11 +08:00
Emman
746ac7eb55 Add comment 2022-02-24 17:42:05 +08:00
Emman
cfe9842cc0 Merge branch 'main' of https://github.com/emmansun/gmsm 2022-02-15 13:34:57 +08:00
Emman
2d4f19dc27 add comments 2022-02-15 13:28:52 +08:00