35 Commits

Author SHA1 Message Date
Sun Yimin
17a3dd8d4b
change interface{} to any, and remove "+build" build tag #77 2023-11-09 08:34:50 +08:00
Sun Yimin
53e121c2b5
sm4: optimize TAO L1 #168 2023-09-28 10:11:31 +08:00
Sun Yimin
4bc3c5d27b
sm4: improve throughput #146 2023-08-03 15:17:01 +08:00
Sun Yimin
fe84641340
sm4: use simple inst. 2023-07-31 17:32:41 +08:00
Sun Yimin
fc2f105dd2
sm4: fix AVX version use AVX2 inst. issue 2023-07-13 08:47:05 +08:00
Sun Yimin
89f3b0f6d3
sm4: add some comments for asm code 2023-07-05 17:51:26 +08:00
Sun Yimin
12ef9e0ef9
sm4: optimize amd64 sse, cbc decrypter 2023-07-04 08:38:53 +08:00
emmansun
a53659eb5b sm4: optimize sse version 2023-07-03 16:20:04 +08:00
Sun Yimin
d3e6412258
sm4: Support AES-NI + AVX #135 2023-07-03 12:00:27 +08:00
Sun Yimin
39f75ac913
sm4: rename asm macros files 2023-06-28 16:52:40 +08:00
Sun Yimin
f81bbd17df
sm4: improve arm64 single block performance & CBC decrypt performance 2023-06-19 15:51:49 +08:00
Sun Yimin
200a785d29
change build tag generic to purego & import nat package 2022-11-22 11:02:37 +08:00
Sun Yimin
9b364dca8b
sm4: reduce duplicated code and add comments 2022-07-25 13:20:58 +08:00
Sun Yimin
acffd83cc9
sm4: format asm code 2022-07-22 10:08:15 +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
f5bd2cabad
fix 1.17 error 2022-06-14 08:57:25 +08:00
Emman
0450200249 sm4 use sm4e sm4ekey, without gcm integration part 2022-04-28 13:46:50 +08:00
Emman
d79ab3d709 Change to use new {M1, C1, M2, C2}, do not know the old one's derivation process 2022-03-11 18:05:08 +08:00
Emman
7dec383b16 align format 2022-01-21 11:24:10 +08:00
Emman
64cda2957b [SM4] - implement gcmSm4Init 2022-01-12 16:06:39 +08:00
Emman
d6630108a0 [SM4] support avx/avx2 handle 4 blocks case 2022-01-12 09:42:14 +08:00
Emman
c18c7e921c [SM4] support AVX2 2022-01-10 16:14:39 +08:00
emmansun
00454701b6 try encrypt block(s) 2022-01-01 21:11:06 +08:00
Emman
e9e3c665aa add sm4 asm fuzzy test 2021-12-29 17:46:18 +08:00
Sun Yimin
3bad0ec261
Fix comments 2021-10-26 09:32:37 +08:00
Emman
85b3ecb129 MAGIC - support ccm mode 2021-03-31 11:55:52 +08:00
Emman
75b6f26331 MAGIC - add reference 2021-03-26 08:30:22 +08:00
Emman
c3f59f3e7b MAGIC - avoid nil message passed in 2021-03-24 16:20:01 +08:00
Emman
14cafa5e9e MAGIC - continue to improve sm4 performance 2021-03-23 11:32:05 +08:00
emmansun
b8d89ee417 MAGIC - continue tuning 2021-03-21 19:20:23 +08:00
emmansun
4443db3f4d MAGIC - implement expandKeyAsm 2021-03-21 12:35:53 +08:00
Emman
3e2e3c8c63 MAGIC - ctr mode 2021-03-19 12:14:14 +08:00
Emman
dddebb8c1d MAGIC - optimize cbc decryption 2021-03-18 17:54:10 +08:00
Emman
b0889c3432 MAGIC - use AES-NI 2021-03-18 13:01:24 +08:00