102 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
80e88ea2b2
sm4: use new method to load global data 2023-11-08 13:23:04 +08:00
Sun Yimin
15d1b57a23
Update asm_arm64.s 2023-09-28 12:04:45 +08:00
Sun Yimin
87041f3ad3
sm4: arm64 load const issue 2023-09-28 11:54:24 +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
39f75ac913
sm4: rename asm macros files 2023-06-28 16:52:40 +08:00
Sun Yimin
9f7a0ac2b6
sm4: arm optimize rotateleft 2023-03-30 16:41:21 +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
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
200a785d29
change build tag generic to purego & import nat package 2022-11-22 11:02:37 +08:00
Sun Yimin
206c8075c3
sm4: arm64 use VZIP1 VZIP2 to transpose matrix 2022-07-25 17:10:15 +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
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
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
f2c249b323 refactoring and fix bug 2022-04-29 09:10:16 +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
c6292b9704 [SM4] do not use VMOVQ to support golang 1.15.x 2022-01-13 13:15:35 +08:00
Emman
d17b4e4b3b [SM4] arm64, use VMOVQ to load large constant 2022-01-13 10:43:43 +08:00
Emman
8420b1676d [SM4] arm64, further test VMOVQ 2022-01-13 10:16:53 +08:00
Emman
7914d29bcd [SM4] arm64, use VMOVQ 2022-01-13 10:06:37 +08:00
Emman
bb20b52bd1 [SM4] test VMOVQ 2022-01-13 09:49:43 +08:00
Emman
32da31b074 [SM4] refactoring 2022-01-13 09:37:48 +08:00
Emman
5721ba66cb change VDUP to VMOV 2022-01-10 17:06:37 +08:00
Emman
c18c7e921c [SM4] support AVX2 2022-01-10 16:14:39 +08:00
Emman
b25e199b57 reduce instructions 2 2022-01-05 12:58:40 +08:00
Emman
2e56185262 reduce instructions step 1 2022-01-05 11:55:44 +08:00
Emman
bcd16fa771 use VREV32 2022-01-05 08:39:59 +08:00
emmansun
34ac1d6681 refactoring 2022-01-01 21:59:42 +08:00
emmansun
00454701b6 try encrypt block(s) 2022-01-01 21:11:06 +08:00
emmansun
6919274923 change error data 2022-01-01 20:40:52 +08:00
Sun Yimin
37c24a57af
Update asm_arm64.s 2022-01-01 17:18:50 +08:00
Sun Yimin
c0d6e73eaf
Update asm_arm64.s 2022-01-01 17:13:58 +08:00
Sun Yimin
ee8e44ff36
Update asm_arm64.s 2022-01-01 16:56:47 +08:00
Sun Yimin
e6c9bde424
Update asm_arm64.s 2022-01-01 16:17:38 +08:00
Sun Yimin
03b0c9fc9e
Update asm_arm64.s 2022-01-01 16:11:53 +08:00
Sun Yimin
376df04b72
Update asm_arm64.s 2022-01-01 15:48:54 +08:00
Sun Yimin
1aab497333
Update asm_arm64.s 2022-01-01 15:45:09 +08:00
Sun Yimin
4d49c93f99
Update asm_arm64.s 2022-01-01 15:44:39 +08:00
Sun Yimin
b889967d49
Update asm_arm64.s 2022-01-01 15:42:04 +08:00
Sun Yimin
392d556dc8
Update asm_arm64.s 2022-01-01 15:37:20 +08:00