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 |
|
emmansun
|
39f36ddb60
|
fix #30
|
2022-02-13 16:05:44 +08:00 |
|
Emman
|
69aa220c2f
|
add comments
|
2022-02-10 14:34:39 +08:00 |
|
Emman
|
2fa225552f
|
sync upstream #25
|
2022-02-09 13:03:32 +08:00 |
|
Emman
|
9f1134cd87
|
Change comments
|
2022-02-09 10:24:38 +08:00 |
|
Emman
|
535b9ab928
|
Add SM GM/T references
|
2022-02-09 10:11:45 +08:00 |
|
Emman
|
ce8cffa33a
|
Comments change and remove sign/verify non-sm2 branch
|
2022-02-09 09:57:03 +08:00 |
|
Emman
|
93b04f706d
|
[SM2] bug fix private key equal issue
|
2022-01-28 10:27:29 +08:00 |
|
Emman
|
3af061f194
|
[SM2] add benchmark test for sign/verify/genkey
|
2022-01-28 09:45:26 +08:00 |
|
Emman
|
81e9a06398
|
[SM2] optimize inverse
|
2022-01-27 14:18:23 +08:00 |
|
Emman
|
7dec383b16
|
align format
|
2022-01-21 11:24:10 +08:00 |
|