69 Commits

Author SHA1 Message Date
Sun Yimin
93c965f3c1
cipher: move xts detail implementation to internal #320 2025-03-19 10:21:52 +08:00
Sun Yimin
7a5253bfb5
change to use go's own XORBytes function #315 2025-03-13 15:15:46 +08:00
Sun Yimin
0bb54adc1e
cipher: use new functions 2025-02-26 11:46:48 +08:00
Sun Yimin
0e154ad9cb
cbc-mac supplement test cases and document #281 2024-12-03 17:48:25 +08:00
Sun Yimin
da9f9c1748
zuc: seakable stream #277 2024-11-29 11:44:59 +08:00
Sun Yimin
bf14e70c4b
internal/byteorder: new package #275 2024-11-21 14:32:32 +08:00
Sun Yimin
25e0700f81
xts/gcm: arm64 use VSRI/VSLI 2024-09-24 08:32:42 +08:00
Sun Yimin
f47051ed86
cipher: xts reduce duplicated code 2024-09-24 08:09:57 +08:00
Sun Yimin
5c6c1890ae
cipher: xts ppc64x fix 1 2024-09-23 17:56:13 +08:00
Sun Yimin
4808935f60
cipher: xts ppc64x 2024-09-23 17:50:16 +08:00
Sun Yimin
18b117f4bb
cipher: xts s390x fix bug 2024-09-21 11:42:13 +08:00
Sun Yimin
8963864ff5
cipher: xts s390x instruction issue 2024-09-21 11:22:08 +08:00
Sun Yimin
0178d7489c
cipher: xts s390x 2024-09-21 11:18:54 +08:00
Sun Yimin
022e85231e
#248, rollback changes 2024-09-20 18:02:11 +08:00
Sun Yimin
5c38bb3add
#248, use kimd directly 2024-09-20 17:55:39 +08:00
Sun Yimin
925472fed4
cipher: s390x, gcm mode ghash #248 2024-09-20 17:39:23 +08:00
Sun Yimin
e5af209d83
cipher: fix copy/paste issue 2024-09-13 11:13:34 +08:00
Sun Yimin
20f0807451
sm4: arm64 cbc decrypt, reduce memory load 2024-09-13 11:06:41 +08:00
Sun Yimin
8a2ba16639
internal/cryptotest: add tests for the cipher.AEAD interface 2024-08-30 16:25:25 +08:00
Sun Yimin
a5d489ee59
internal/cryptotest: add tests for the cipher.Stream interface 2024-08-05 11:40:04 +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
7fb729f4a8
sm2: refine BenchmarkEncrypt test 2024-05-15 10:17:15 +08:00
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