Skip to content

Commit

Permalink
hkdf: migrate to hmac v0.12 and digest v0.10 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Dec 7, 2021
1 parent 1a89dc2 commit 99971df
Show file tree
Hide file tree
Showing 16 changed files with 738 additions and 669 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

74 changes: 27 additions & 47 deletions .github/workflows/hkdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,61 +17,41 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
test:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: i686-unknown-linux-gnu
toolchain: 1.41.0 # MSRV
use_cross: false
deps: sudo apt install gcc-multilib
- target: i686-unknown-linux-gnu
toolchain: stable
use_cross: false
deps: sudo apt install gcc-multilib
- target: x86_64-unknown-linux-gnu
toolchain: 1.41.0 # MSRV
use_cross: false
deps: true
- target: x86_64-unknown-linux-gnu
toolchain: stable
use_cross: false
deps: true
- target: powerpc-unknown-linux-gnu
toolchain: 1.41.0 # MSRV
use_cross: true
deps: true
- target: powerpc-unknown-linux-gnu
toolchain: stable
use_cross: true
deps: true
## TODO: debug PPC64 linking errors. Example failure:
## <https://github.com/RustCrypto/KDFs/runs/1276943457?check_suite_focus=true>
#- target: powerpc64-unknown-linux-gnu
# toolchain: 1.41.0 # MSRV
# use_cross: true
# deps: true
#- target: powerpc64-unknown-linux-gnu
# toolchain: stable
# use_cross: true
# deps: true
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- run: ${{ matrix.deps }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
use-cross: ${{ matrix.use_cross }}
args: --target ${{ matrix.target }} --release
- uses: actions-rs/cargo@v1
- run: cargo build --no-default-features --target ${{ matrix.target }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
command: test
use-cross: ${{ matrix.use_cross }}
args: --target ${{ matrix.target }} --release --all-features
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo check --all-features
- run: cargo test --no-default-features
- run: cargo test
- run: cargo test --all-features
172 changes: 61 additions & 111 deletions Cargo.lock

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

0 comments on commit 99971df

Please sign in to comment.