Skip to content

Commit

Permalink
Adds support for YubiHSM Auth
Browse files Browse the repository at this point in the history
This adds support for the YubiHSM Auth protocol as described in
https://docs.yubico.com/yesdk/users-manual/application-yubihsm-auth/interacting-yubihsm-2.html

This protocol ensure the derivation password for the authentication keys are kept
in secure devices.

Signed-off-by: Arthur Gautier <[email protected]>
  • Loading branch information
baloo committed Aug 16, 2023
1 parent 016d1c6 commit 9767b27
Show file tree
Hide file tree
Showing 8 changed files with 879 additions and 89 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,22 @@ env:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- ubuntu-latest
- macos-latest
toolchain:
- stable
- 1.67.0 # MSRV
include:
- platform: ubuntu-latest
toolchain: stable
deps: sudo apt-get install libpcsclite-dev
- platform: macos-latest
toolchain: stable
deps: true
- platform: ubuntu-latest
toolchain: 1.67.0 # MSRV
deps: sudo apt-get install libpcsclite-dev
- platform: macos-latest
toolchain: 1.67.0 # MSRV
deps: true
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: cache .cargo/registry
Expand All @@ -41,14 +48,15 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
override: true
- run: ${{ matrix.deps }}
- run: cargo build --release
- run: cargo build --release --no-default-features
- run: cargo build --release --no-default-features --features=passwords
- run: cargo build --release --features=usb
- run: cargo build --release --features=yubihsm-auth
- run: cargo build --benches

test:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
Expand All @@ -57,6 +65,7 @@ jobs:
toolchain:
- stable
- 1.67.0 # MSRV
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- name: cache .cargo/registry
Expand Down Expand Up @@ -103,6 +112,7 @@ jobs:
toolchain: 1.71.0 # pinned to prevent CI breakages
components: clippy
override: true
- run: sudo apt-get install libpcsclite-dev
- uses: actions-rs/cargo@v1
with:
command: clippy
Expand Down
Loading

0 comments on commit 9767b27

Please sign in to comment.