215 Commits

Author SHA1 Message Date
Sun Yimin
ce489e2b4b
sm4: fix include order issue 2023-06-28 17:05:38 +08:00
Sun Yimin
39f75ac913
sm4: rename asm macros files 2023-06-28 16:52:40 +08:00
Sun Yimin
1d0e77388a
sm4: ctr mode fix issue and comments 2023-06-27 17:52:23 +08:00
Sun Yimin
72614b4d8b
sm4: cbc arm64 missing definition 2023-06-19 16:02:09 +08:00
Sun Yimin
f81bbd17df
sm4: improve arm64 single block performance & CBC decrypt performance 2023-06-19 15:51:49 +08:00
Sun Yimin
3cbabc3d1c
optimize purego sm3/sm4 and reduce bounds checking for sm9 2023-06-16 16:06:38 +08:00
Sun Yimin
0e667b152d
sm4: improve purego performance 2023-06-16 10:22:15 +08:00
Sun Yimin
83849d33cf
sm4: fix bug 2023-06-05 14:46:59 +08:00
Sun Yimin
57d800767b
sm4: finetune bounds check 2023-06-05 14:32:15 +08:00
Sun Yimin
9f7a0ac2b6
sm4: arm optimize rotateleft 2023-03-30 16:41:21 +08:00
Sun Yimin
01151be42e
sm4: fix gcm_sm4ni_arm64 dec bug 2023-03-30 15:46:37 +08:00
Sun Yimin
b2b56fae32
fix gcm sm4 ni bug 2023-03-30 11:46:19 +08:00
Sun Yimin
6b4c50e65a
try reduce one instr 2023-03-30 11:30:36 +08:00
Sun Yimin
3fed51e909
fix error 2023-03-30 11:26:34 +08:00
Sun Yimin
c52d700860
do not reverse byte order 2023-03-30 10:26:10 +08:00
Sun Yimin
0ec1d9cb40
do not reverse byte order 2023-03-30 10:06:56 +08:00
Sun Yimin
03e35209e8
retry not reverse byte order 2023-03-30 10:01:34 +08:00
Sun Yimin
818159283c
disable sm3 sm4 ni via env. variable 2023-03-08 15:39:48 +08:00
Sun Yimin
ebf9a74d77
sm9: support non-xor modes 2023-02-10 17:19:50 +08:00
Sun Yimin
a2d54159ad
add example test for sm3 sm4 pkcs8 2023-02-02 11:45:57 +08:00
Sun Yimin
e3db7656a6
add example test for sm2 sm4 2023-02-01 11:17:23 +08:00
Sun Yimin
edfb4febdd
sm: improve docs and add examples 2023-01-31 13:50:14 +08:00
Sun Yimin
200a785d29
change build tag generic to purego & import nat package 2022-11-22 11:02:37 +08:00
Sun Yimin
1710bdff4a
refactoring, rename internal packages 2022-08-18 14:49:35 +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
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
af50b136e9
sm4: separate cipher_ni from cipher_asm 2022-07-19 13:29:21 +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
87f6f6a736
sm4: fix test case issue 2022-07-12 10:08:23 +08:00
Sun Yimin
daa6853722
sm4: add test cases 2022-07-12 09:57:35 +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
92439288cb
fix #57 2022-06-06 13:45:46 +08:00
emmansun
57d899613d align format 2022-05-01 18:06:47 +08:00
Emman
c71d5ccd96 Fix compile error 2022-04-29 17:29:08 +08:00
Emman
37ab6d67f3 Fix amd64 bug 2022-04-29 13:01:34 +08:00
Emman
51b26c071d separate aes/sm4 ni implementation 2022-04-29 12:09:04 +08:00
Emman
f2c249b323 refactoring and fix bug 2022-04-29 09:10:16 +08:00
Emman
4c131bdeb6 refactoring and fix bug 2022-04-29 08:56:53 +08:00