350 Commits

Author SHA1 Message Date
Sun Yimin
44e6ef3444
sm4: ppc64x, use ZERO as VCIPHERLAST round key 2024-09-11 10:18:46 +08:00
Sun Yimin
3491cb091a
test VNAND 2024-09-11 09:45:08 +08:00
Sun Yimin
6c62c14405
sm4: try VCIPHERLAST 2024-09-11 09:01:42 +08:00
Sun Yimin
69e3749a10
sm4: try VNAND 2024-09-11 08:50:40 +08:00
Sun Yimin
f6d2e319c1
sm4: fix compile error 2024-09-11 08:31:33 +08:00
Sun Yimin
45c90c33cd
sm4: reverse inverse shift rows byte order 2024-09-11 08:29:44 +08:00
Sun Yimin
2ca0421085
try VNAND 2024-09-11 08:23:46 +08:00
Sun Yimin
4f60a230f0
sm3: ppc64, reverse m1,m2 byte order 2024-09-11 08:21:12 +08:00
Sun Yimin
d2adcd78b0
Update asm_ppc64x.s 2024-09-10 22:37:31 +08:00
Sun Yimin
98e2f4a852
sm4: ppc64x fix T2 issue 2024-09-10 21:54:08 +08:00
Sun Yimin
086ea1267b
sm4: ppc64x expand key debug 3 2024-09-10 17:46:54 +08:00
Sun Yimin
5a8c253a5a
sm4: ppc64x expand key debug 2 2024-09-10 17:41:31 +08:00
Sun Yimin
c21ab2d9c8
sm4: ppc64x expand key debug 1 2024-09-10 17:38:12 +08:00
Sun Yimin
742bdcc1aa
sm4: ppc64x expand key fix 3 2024-09-10 17:04:41 +08:00
Sun Yimin
82efc4b40f
sm4: ppc64x expand key fix 2 2024-09-10 17:00:39 +08:00
Sun Yimin
8cd7748b00
sm4: ppc64x expand key fix 1 2024-09-10 16:59:16 +08:00
Sun Yimin
0333280ef1
sm4: ppc64x expandkey init 2024-09-10 16:55:33 +08:00
Sun Yimin
1b512e5772
internal/cryptotest: add tests for the hash.Hash cipher.BlockMode cipher.Block interfaces 2024-08-02 13:02:25 +08:00
Sun Yimin
126ee25d2a
sm4: arm64 asm redefine register usage and const loading 2024-06-03 17:50:44 +08:00
Sun Yimin
91932efc27
correct comments 2024-05-30 17:56:23 +08:00
Sun Yimin
02258d2351
sm4: reduce slice checking internally 2024-03-27 13:08:27 +08:00
Sun Yimin
34dd5104ee
sm4: reduce slice checking internally 2024-03-27 09:36:56 +08:00
Sun Yimin
e4909bed2d
sm4: reduce allocations 2024-03-27 08:38:25 +08:00
Sun Yimin
5adc912824
refine build tags 2024-03-05 09:47:49 +08:00
Sun Yimin
267ff02783
cipher/ctr: add more test data 2024-02-07 13:41:52 +08:00
Sun Yimin
a2ce3f51d0
sm4: reduce bounds check 2024-01-31 14:48:46 +08:00
Sun Yimin
19636d09c1
sm4: code refactor for block 2024-01-31 13:08:51 +08:00
Sun Yimin
9a45c4101b
sm4: optimize constant value loading on arm64 2024-01-30 13:10:41 +08:00
Sun Yimin
515cabfd04
sm4: optimize constant loading on arm64 2024-01-30 13:04:03 +08:00
Sun Yimin
a01428eaf3
sm4: add env var FORCE_SM4BLOCK_AESNI & give up cbc asm implementation 2024-01-25 17:46:09 +08:00
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