47 Commits

Author SHA1 Message Date
Sun Yimin
178241aa0f
avoid legacy 32 bit system compile error 2024-03-07 17:35:48 +08:00
Sun Yimin
5adc912824
refine build tags 2024-03-05 09:47:49 +08:00
Sun Yimin
78c7cf81fe
ciphter/ctr: remove uselss import 2024-02-07 13:44:33 +08:00
Sun Yimin
267ff02783
cipher/ctr: add more test data 2024-02-07 13:41:52 +08:00
Sun Yimin
6bc061a549
cipher: reduce duplicate code 2023-12-13 14:19:31 +08:00
Sun Yimin
82125c00a4
cipher: align error message pattern 2023-12-08 17:42:16 +08:00
Sun Yimin
ee397cdbd7
cipher: add SM legacy operation modes 2023-12-06 14:45:08 +08:00
Sun Yimin
67c80c82b4
cipher/hctr: eliminate bounds checks in the loop 2023-12-06 10:24:22 +08:00
emmansun
8213fb98c5 cipher/hctr: add comments for hctrReductionTable 2023-12-04 11:24:32 +08:00
emmansun
22358080d5 cipher/hctr: correct comments 2023-12-04 10:50:13 +08:00
emmansun
e8f39ed529 update LengthPreservingMode interface 2023-12-04 10:27:26 +08:00
emmansun
e5effb8bb9 cipher/hctr: optimization with GCM GF128 method 2023-12-03 10:25:44 +08:00
Sun Yimin
9d467f8051
cipher: hctr POC 2023-12-01 15:51:15 +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
5b3dfb6fa7
sm4: amd64, reduce VBROADCASTI128 usage 2023-09-28 13:19:52 +08:00
Sun Yimin
9ee8ee4529
sm4: xts asm amd64 2023-08-24 11:47:06 +08:00
Sun Yimin
61e5507c69
cipher/xts: arm64, similar like VDUP 2023-08-24 11:24:10 +08:00
Sun Yimin
c8b400a16c
cipher/xts: fix buffer overlap issue 2023-08-23 08:30:40 +08:00
Sun Yimin
099ebd7d92
cipher: add more xts benchmark test 2023-08-22 17:39:51 +08:00
Sun Yimin
76635c4cf3
cipher: xts asm, add random test 2023-08-21 11:07:42 +08:00
Sun Yimin
abbe36143c
cipher: xts arm64, fix compile error 2023-08-21 10:25:45 +08:00
Sun Yimin
de8c35e0f1
cipher: xts arm64 2023-08-21 10:22:46 +08:00
Sun Yimin
bf355a1ea3
cipher: xts amd64 reduce inst. 2023-08-20 12:46:41 +08:00
emmansun
ddea8332fe cipher: optimize gb gf(2^128) reduction 2023-08-20 12:05:48 +08:00
Sun Yimin
4eacdccbf6
cipher: implement double tweak amd64 asm #149 2023-08-18 17:49:57 +08:00
Sun Yimin
0eaad02df4
cipher: refactor xts mode #149 2023-08-17 12:49:28 +08:00
Sun Yimin
9d6e46cafd
cipher: refactor xts mode #149 2023-08-17 12:48:53 +08:00
Sun Yimin
33d9dc7db7
cipher: xts, update function name 2023-08-08 17:31:55 +08:00
Sun Yimin
f9bd2f002a
cipher: xts supports GB/T 17964-2021 2023-08-08 17:26:08 +08:00
Sun Yimin
4e50b3dd6b
sm4: cbc ecb mode enhancement 2023-08-07 16:43:29 +08:00
Sun Yimin
24637cf61d
sm4: add test cases, cover more plaintext length 2023-08-04 08:25:16 +08:00
Sun Yimin
71afa44b91
sm4: fix arm64 cbc 8 blocks decryption issue 2023-08-03 16:40:31 +08:00
Sun Yimin
4bc3c5d27b
sm4: improve throughput #146 2023-08-03 15:17:01 +08:00
Sun Yimin
d3e6412258
sm4: Support AES-NI + AVX #135 2023-07-03 12:00:27 +08:00
Sun Yimin
f81bbd17df
sm4: improve arm64 single block performance & CBC decrypt performance 2023-06-19 15:51:49 +08:00
Sun Yimin
ebf9a74d77
sm9: support non-xor modes 2023-02-10 17:19:50 +08:00
Sun Yimin
edfb4febdd
sm: improve docs and add examples 2023-01-31 13:50:14 +08:00
Sun Yimin
1710bdff4a
refactoring, rename internal packages 2022-08-18 14:49:35 +08:00
Sun Yimin
f0ad4beb49
sm4: add gcm test cases from GB/T 36624-2018 C.5 2022-07-22 11:25:18 +08:00
Sun Yimin
6a60fe2603
ccm: add unit test cases and support ignore 2022-07-19 09:47:36 +08:00
Sun Yimin
8eeeddbbea
cipher/sm4: refactoring, remove sm4_test folder 2022-07-11 17:40:15 +08:00
Emman
7dec383b16 align format 2022-01-21 11:24:10 +08:00
Emman
7a7384f389 MAGIC - use internal package 2021-04-29 15:14:22 +08:00
Emman
b1184c24cf MAGIC - xts mode 2021-04-08 11:12:52 +08:00
Emman
cab0150f3c MAGIC - fix bug 2021-04-01 09:30:49 +08:00
Emman
513b786694 MAGIC - add license 2021-03-31 12:01:22 +08:00
Emman
85b3ecb129 MAGIC - support ccm mode 2021-03-31 11:55:52 +08:00