370 Commits

Author SHA1 Message Date
Sun Yimin
29b6da1d37
sm4: change to use pure go for single block encryption/decryption 2024-01-25 09:02:28 +08:00
Sun Yimin
8198f2aa8e
fix darwin cpu feature detect issue 2024-01-24 13:11:09 +08:00
Sun Yimin
82125c00a4
cipher: align error message pattern 2023-12-08 17:42:16 +08:00
Sun Yimin
851d02b3ea
Change VMOV to VDUP #179 2023-11-09 10:31:08 +08:00
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
8f5e603f94
sm4: disable PXOR use m128 directly 2023-11-01 15:00:49 +08:00
Sun Yimin
2f163662b5
sm4: cbc enc, do not mem directly 2023-11-01 13:03:46 +08:00
Sun Yimin
5243d0fe91
sm4: code format 2023-10-18 08:07:19 +08:00
Sun Yimin
5b3dfb6fa7
sm4: amd64, reduce VBROADCASTI128 usage 2023-09-28 13:19:52 +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
218ce35c71
sm4: arm64, fix load const issue 2023-09-28 11:47:38 +08:00
Sun Yimin
eba2b736bd
sm4: arm64, simplify const loading 2023-09-28 11:44:48 +08:00
Sun Yimin
53e121c2b5
sm4: optimize TAO L1 #168 2023-09-28 10:11:31 +08:00
Sun Yimin
9a4cb2c34f
sm4: use POR, although it does not affect the correctness 2023-09-27 09:22:22 +08:00
Sun Yimin
75b153887e
sm4: gcm amd64, remove uselss code 2023-09-04 08:36:03 +08:00
Sun Yimin
8d5c6c4601
sm4: gcm amd64 optmization 2023-08-28 14:41:15 +08:00
emmansun
3f602061fc sm4: gcm amd64 reduce byte shuffling #152 2023-08-26 10:11:25 +08:00
Sun Yimin
d3c19c171a
sm4: xts sm4ni arm64, fix register confliction #151 2023-08-25 13:53:27 +08:00
Sun Yimin
d28883e2c7
sm4: xts sm4ni arm64, fix bug 2023-08-25 13:40:07 +08:00
Sun Yimin
9cc53170df
sm4: remove amd64 build flag 2023-08-25 13:24:11 +08:00
Sun Yimin
8253e1be8e
sm4: xts sm4ni arm64, fix duplicated name issue #151 2023-08-25 13:20:55 +08:00
Sun Yimin
1019226803
sm4: xts sm4ni arm64 #151 2023-08-25 13:13:43 +08:00
Sun Yimin
e6d27e8bae
sm4: xts asm arm64, fix dead loop bug 2023-08-24 16:42:33 +08:00
Sun Yimin
50ddb5347e
sm4: xts asm arm64 one by one 2023-08-24 16:35:08 +08:00
Sun Yimin
a8714d9782
sm4: xts asm arm64 test one by one 2023-08-24 16:28:43 +08:00
Sun Yimin
28a6939861
sm4: xts asm arm64 test 2023-08-24 16:22:38 +08:00
Sun Yimin
6d6339f06d
sm4: xts asm arm64 test 2023-08-24 16:14:58 +08:00
Sun Yimin
3a304ee8dd
sm4: xts asm arm64 test one func first 2023-08-24 16:07:37 +08:00
Sun Yimin
a3daf1f525
sm4: xts asm arm64 test 2023-08-24 15:03:14 +08:00
Sun Yimin
9ee8ee4529
sm4: xts asm amd64 2023-08-24 11:47:06 +08:00
Sun Yimin
feb76edda8
sm4: fix cbc iv issue 2023-08-08 13:07:10 +08:00
Sun Yimin
0fbc30f868
sm4: optimize cbc iv handling 2023-08-08 12:35:42 +08:00
Sun Yimin
cb47e82478
sm4: fix arm64 copy paste issue 2023-08-08 08:29:07 +08:00
Sun Yimin
29d7b25b95
sm4: cbc ecb asm rename 2023-08-08 08:22:17 +08:00
Sun Yimin
20ab2874fa
Update cbc_cipher_asm_arm64.s 2023-08-07 21:55:19 +08:00
Sun Yimin
90f0279cb2
sm4: arm64 fix 2023-08-07 17:10:14 +08:00
Sun Yimin
b65b01a6a4
sm4: arm64 fix 2023-08-07 16:58:13 +08:00
Sun Yimin
c7fc1431ba
sm4: arm64 fix 2023-08-07 16:53:59 +08:00
Sun Yimin
06dbc52e48
sm4: arm64 fix 2023-08-07 16:48:14 +08:00
Sun Yimin
4e50b3dd6b
sm4: cbc ecb mode enhancement 2023-08-07 16:43:29 +08:00
Sun Yimin
e00fbe696d
sm4: optimize avx2 implementation 2023-08-04 15:52:00 +08:00
Sun Yimin
71afa44b91
sm4: fix arm64 cbc 8 blocks decryption issue 2023-08-03 16:40:31 +08:00
Sun Yimin
dba47d3c14
sm4: fix arm64 SM4_8BLOCKS_ROUND issue #146 2023-08-03 16:18:56 +08:00
Sun Yimin
1e360021c4
sm4: fix amd64 avx2 decrypt 4 blocks issue #146 2023-08-03 16:13:05 +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