Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Use BoringSSL via boring crate #197

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
- run: rustc --version
- run: cargo build --release --workspace
- run: (cd core && cargo build --features=json --release --all-targets)
- run: (cd daead && cargo build --features=boringssl --release)
- run: (cd examples/daead && cargo build --features=boringssl --release)

test:
runs-on: ubuntu-latest
Expand All @@ -48,7 +50,7 @@ jobs:
components: rustfmt
override: true
- run: rustc --version
- run: cargo test --all -- --nocapture
- run: cargo test --workspace -- --nocapture

msrv:
name: Rust ${{matrix.rust}}
Expand All @@ -68,7 +70,7 @@ jobs:
components: rustfmt
override: true
- run: rustc --version
- run: cargo build --release --workspace --all-features
- run: cargo test --release --workspace -- --nocapture

formatting:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -111,7 +113,9 @@ jobs:
override: true
components: rustfmt, clippy
- run: rustc --version
- run: cargo clippy --all-features --all-targets -- -Dwarnings
- run: cargo clippy --all-targets -- -Dwarnings
- run: (cd core && cargo clippy --features=json -- -Dwarnings)
- run: (cd daead && cargo clippy --features=boringssl -- -Dwarnings)

doc:
runs-on: ubuntu-latest
Expand All @@ -122,7 +126,7 @@ jobs:
profile: minimal
toolchain: stable
- run: rustc --version
- run: cargo doc --no-deps --document-private-items --all-features
- run: cargo doc --no-deps --document-private-items --all-features --workspace --exclude tink-tests

udeps:
runs-on: ubuntu-latest
Expand Down
155 changes: 152 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions daead/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ repository = "https://github.com/project-oak/tink-rust"
keywords = ["cryptography", "tink", "daead"]
categories = ["cryptography"]

[features]
boringssl = ["boring"]

[dependencies]
aead = { version = "^0.4.2", features = ["std"] }
aes-siv = "^0.6"
boring = { version = "^1.1", optional = true }
cipher = "^0.3"
prost = "^0.8"
tink-core = "^0.2"
tink-proto = "^0.2"
Loading