1177 Commits

Author SHA1 Message Date
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
16c5556655
ci: remove special test 2023-08-24 16:49:09 +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
4fc2acf95c
rollback 2023-08-24 15:32:27 +08:00
Sun Yimin
25384f061c
check compile first 2023-08-24 15:20:13 +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
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
emmansun
71ab69ef9b internal/bigmod: avoid duplicated name with golang sdk v0.19.3 2023-08-16 14:34:31 +08:00
emmansun
d4c92f1b17 test golang 1.21 2023-08-16 14:21:01 +08:00
Sun Yimin
6478a408e6
padding: ISO/IEC 9797 method 2 2023-08-08 17:35:16 +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
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
faeea141d7
Merge pull request #148 from emmansun/dependabot/go_modules/golang.org/x/crypto-0.12.0
build(deps): bump golang.org/x/crypto from 0.11.0 to 0.12.0
2023-08-08 07:23:00 +08:00
dependabot[bot]
48cecae533
build(deps): bump golang.org/x/crypto from 0.11.0 to 0.12.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 23:16:54 +00:00
Sun Yimin
682a48eb6e
Merge pull request #147 from emmansun/dependabot/go_modules/golang.org/x/sys-0.11.0
build(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
2023-08-08 07:16:16 +08:00
dependabot[bot]
8e52dbde96
build(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 23:12:22 +00: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
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
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