632 Commits

Author SHA1 Message Date
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
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
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
35154c8b53
remove useless ci 2022-08-19 15:07:56 +08:00
Sun Yimin
f2245485bc
Merge pull request #78 from emmansun/20221015
Upgrade minimum supported golang version to 1.16
2022-08-19 15:05:45 +08:00
Sun Yimin
f5cee483d5
align go verions in main 2022-08-19 15:03:28 +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
45d6a74b6a
update comment 2022-08-19 10:30:19 +08:00
Sun Yimin
8083b440cb
README: add go version and update travis label go_1.15 v0.13.8 2022-08-19 08:31:12 +08:00
Sun Yimin
6db1b23eb1
subtle: fix generic bug 2022-08-18 15:00:11 +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
a507f61c7c
fix bug 2022-08-17 15:30:21 +08:00
Sun Yimin
c2efe31957
move ci file 2022-08-17 15:27:19 +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
Sun Yimin
bed0b64629
sm2ec: error message 2022-08-15 15:21:42 +08:00
Sun Yimin
f254673618
sm2ec: sync with sdk 2022-08-15 15:16:07 +08:00
Sun Yimin
c37e143c66
Merge pull request #73 from Trisia/main
SM2密钥交换方法初始化
v0.13.7
2022-08-14 11:22:52 +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
b299ca46f2
zuc: constant time & correct lazy mod 2022-08-10 13:52:44 +08:00
Sun Yimin
b7cc21a055
sm3: kdf constant time check all zero 2022-08-09 15:58:55 +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
2071214f1f
x509: fix error message 2022-08-02 15:09:34 +08:00
Sun Yimin
8d0ee45571
upgrade dependencies v0.13.6 2022-07-28 10:39:55 +08:00
Sun Yimin
818cbc3757
misc: clean code 2022-07-28 10:01:30 +08:00
Sun Yimin
21859b7273
sm4: gcm data disable pass initial tag 2022-07-28 09:37:03 +08:00
Sun Yimin
5b075213c0
sm4: add cbcEncAble interface 2022-07-26 08:30:24 +08:00
Sun Yimin
206c8075c3
sm4: arm64 use VZIP1 VZIP2 to transpose matrix 2022-07-25 17:10:15 +08:00
Sun Yimin
fd34c2eff2
sm4: arm64 transpose matrix use VZIP1 VZIP2 2022-07-25 16:37:23 +08:00
Sun Yimin
9b364dca8b
sm4: reduce duplicated code and add comments 2022-07-25 13:20:58 +08:00
Sun Yimin
9204f1f4b2
sm4: encryptBlockAsm arm64 optimization 2022-07-22 15:17:05 +08:00
Sun Yimin
f0ad4beb49
sm4: add gcm test cases from GB/T 36624-2018 C.5 2022-07-22 11:25:18 +08:00
Sun Yimin
acffd83cc9
sm4: format asm code 2022-07-22 10:08:15 +08:00
Sun Yimin
ff434b7bd7
sm4: arm64 forget to load IV 2022-07-21 17:37:57 +08:00
Sun Yimin
42faebb588
sm4: cbc encryption improvement a little 2022-07-21 17:32:11 +08:00
Sun Yimin
8ddf1bc68f
sm4: reduce duplicated asm code 2022-07-21 13:41:56 +08:00
Sun Yimin
572bf6574e
sm4: improve cbc decrypt performance 2022-07-20 11:43:49 +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