959 Commits

Author SHA1 Message Date
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
Sun Yimin
fe84641340
sm4: use simple inst. 2023-07-31 17:32:41 +08:00
Sun Yimin
c813a1fb65
internal/sm2ec: add boundary test v0.19.2 2023-07-28 15:26:42 +08:00
Sun Yimin
ca474a67ba
sm9/bn256: remove useless tmp value storage 2023-07-28 11:19:58 +08:00
Sun Yimin
9035a35b64
sm9/bn256: fix arm64 grammatical errors 2023-07-27 16:12:56 +08:00
Sun Yimin
0ee8177079
sm9/bn256: gfp2MulU1 2023-07-27 15:59:52 +08:00
Sun Yimin
e3d14fb41a
sm9/bn256: reduce register move 2023-07-27 13:03:25 +08:00
Sun Yimin
a10e64f6f5
sm9/bn256: add test cases 2023-07-26 16:37:44 +08:00
Sun Yimin
ba6bd136f9
internal/sm2ec: add comment for mont. reduction and others 2023-07-26 10:26:32 +08:00
Sun Yimin
49513c7420
sm9/bn256: gt use cyclo6 squaring 2023-07-25 16:49:44 +08:00
Sun Yimin
ce07f3afc0
Rollback test_qemu.yml 2023-07-25 15:14:58 +08:00
Sun Yimin
4b09d140af
sm9/bn256: arm64 fix add complete issue 2023-07-25 15:11:41 +08:00
Sun Yimin
0a559b5202
sm9/bn256: arm64 complete add 2023-07-25 15:02:41 +08:00
Sun Yimin
db92a6f60e
sm9/bn256: fix arm64 complete double issue 2023-07-25 13:12:45 +08:00
Sun Yimin
1ecdb1a563
sm9/bn256: arm64 curvePointDoubleComplete fix issue 2023-07-25 13:02:19 +08:00
Sun Yimin
628054399a
sm9/bn256: adjust test case order 2023-07-25 11:54:29 +08:00
Sun Yimin
dd5fcd13d6
sm9/bn256: arm64 curvePointDoubleComplete 2023-07-25 11:47:50 +08:00
Sun Yimin
04e6a1c9b3
sm9/bn256: arm64 gfp2Square & gfp2SquareU 2023-07-25 08:35:00 +08:00
Sun Yimin
c62d6daf74
sm9/bn256: arm64 gfp2MulU 2023-07-25 08:21:44 +08:00