cbcrypto 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cbcrypto-0.5.0/.cargo/config.toml +10 -0
- cbcrypto-0.5.0/.github/workflows/publish.yml +33 -0
- cbcrypto-0.5.0/.gitignore +4 -0
- cbcrypto-0.5.0/COPYING +674 -0
- cbcrypto-0.5.0/COPYING.lesser +165 -0
- cbcrypto-0.5.0/Cargo.lock +459 -0
- cbcrypto-0.5.0/Cargo.toml +28 -0
- cbcrypto-0.5.0/PKG-INFO +82 -0
- cbcrypto-0.5.0/Readme.md +71 -0
- cbcrypto-0.5.0/build.sh +21 -0
- cbcrypto-0.5.0/pyproject.toml +14 -0
- cbcrypto-0.5.0/src/engine.rs +1205 -0
- cbcrypto-0.5.0/src/lib.rs +1695 -0
- cbcrypto-0.5.0/src/pacer.rs +420 -0
- cbcrypto-0.5.0/src/tl.rs +771 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ARM64 hardware AES (needed by the `aes` crate 0.8 on aarch64). Safe: the crate
|
|
2
|
+
# still detects the CPU at runtime and falls back to software if it is missing.
|
|
3
|
+
[target.aarch64-linux-android]
|
|
4
|
+
rustflags = ["--cfg", "aes_armv8"]
|
|
5
|
+
|
|
6
|
+
[target.aarch64-unknown-linux-gnu]
|
|
7
|
+
rustflags = ["--cfg", "aes_armv8"]
|
|
8
|
+
|
|
9
|
+
[target.aarch64-apple-darwin]
|
|
10
|
+
rustflags = ["--cfg", "aes_armv8"]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
jobs:
|
|
6
|
+
wheels:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- uses: PyO3/maturin-action@v1
|
|
11
|
+
with:
|
|
12
|
+
target: x86_64
|
|
13
|
+
manylinux: 2_28
|
|
14
|
+
args: --release --out dist
|
|
15
|
+
- uses: actions/upload-artifact@v4
|
|
16
|
+
with: { name: wheels, path: dist }
|
|
17
|
+
sdist:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: PyO3/maturin-action@v1
|
|
22
|
+
with: { command: sdist, args: --out dist }
|
|
23
|
+
- uses: actions/upload-artifact@v4
|
|
24
|
+
with: { name: sdist, path: dist }
|
|
25
|
+
publish:
|
|
26
|
+
needs: [wheels, sdist]
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
permissions:
|
|
29
|
+
id-token: write
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/download-artifact@v4
|
|
32
|
+
with: { path: dist, merge-multiple: true }
|
|
33
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|