Skip to content

Commit e57e5b9

Browse files
committed
tink-daead: add boringssl feature
Use the boring crate to pull in underlying BoringSSL implementation of AES. Continue to use the RustCrypto crates for the -SIV part.
1 parent 72fff9a commit e57e5b9

File tree

6 files changed

+253
-7
lines changed

6 files changed

+253
-7
lines changed

.github/workflows/ci.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- run: rustc --version
2929
- run: cargo build --release --workspace
3030
- run: (cd core && cargo build --features=json --release --all-targets)
31+
- run: (cd daead && cargo build --features=boringssl --release)
32+
- run: (cd examples/daead && cargo build --features=boringssl --release)
3133

3234
test:
3335
runs-on: ubuntu-latest
@@ -48,7 +50,7 @@ jobs:
4850
components: rustfmt
4951
override: true
5052
- run: rustc --version
51-
- run: cargo test --all -- --nocapture
53+
- run: cargo test --workspace -- --nocapture
5254

5355
msrv:
5456
name: Rust ${{matrix.rust}}
@@ -68,7 +70,7 @@ jobs:
6870
components: rustfmt
6971
override: true
7072
- run: rustc --version
71-
- run: cargo build --release --workspace --all-features
73+
- run: cargo test --release --workspace -- --nocapture
7274

7375
formatting:
7476
runs-on: ubuntu-latest
@@ -111,7 +113,9 @@ jobs:
111113
override: true
112114
components: rustfmt, clippy
113115
- run: rustc --version
114-
- run: cargo clippy --all-features --all-targets -- -Dwarnings
116+
- run: cargo clippy --all-targets -- -Dwarnings
117+
- run: (cd core && cargo clippy --features=json -- -Dwarnings)
118+
- run: (cd daead && cargo clippy --features=boringssl -- -Dwarnings)
115119

116120
doc:
117121
runs-on: ubuntu-latest

Cargo.lock

+152-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

daead/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ repository = "https://github.com/project-oak/tink-rust"
99
keywords = ["cryptography", "tink", "daead"]
1010
categories = ["cryptography"]
1111

12+
[features]
13+
boringssl = ["boring"]
14+
1215
[dependencies]
1316
aead = { version = "^0.4.2", features = ["std"] }
1417
aes-siv = "^0.6"
18+
boring = { version = "^1.1", optional = true }
19+
cipher = "^0.3"
1520
prost = "^0.8"
1621
tink-core = "^0.2"
1722
tink-proto = "^0.2"

0 commit comments

Comments
 (0)