Skip to content

Commit b40c7e1

Browse files
committed
hkdf: migrate to hmac v0.12 and digest v0.10
1 parent 1a89dc2 commit b40c7e1

16 files changed

+738
-669
lines changed

.gitattributes

-1
This file was deleted.

.github/workflows/hkdf.yml

+27-47
Original file line numberDiff line numberDiff line change
@@ -17,61 +17,41 @@ env:
1717
RUSTFLAGS: "-Dwarnings"
1818

1919
jobs:
20-
test:
20+
build:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
include:
25-
- target: i686-unknown-linux-gnu
26-
toolchain: 1.41.0 # MSRV
27-
use_cross: false
28-
deps: sudo apt install gcc-multilib
29-
- target: i686-unknown-linux-gnu
30-
toolchain: stable
31-
use_cross: false
32-
deps: sudo apt install gcc-multilib
33-
- target: x86_64-unknown-linux-gnu
34-
toolchain: 1.41.0 # MSRV
35-
use_cross: false
36-
deps: true
37-
- target: x86_64-unknown-linux-gnu
38-
toolchain: stable
39-
use_cross: false
40-
deps: true
41-
- target: powerpc-unknown-linux-gnu
42-
toolchain: 1.41.0 # MSRV
43-
use_cross: true
44-
deps: true
45-
- target: powerpc-unknown-linux-gnu
46-
toolchain: stable
47-
use_cross: true
48-
deps: true
49-
## TODO: debug PPC64 linking errors. Example failure:
50-
## <https://github.com/RustCrypto/KDFs/runs/1276943457?check_suite_focus=true>
51-
#- target: powerpc64-unknown-linux-gnu
52-
# toolchain: 1.41.0 # MSRV
53-
# use_cross: true
54-
# deps: true
55-
#- target: powerpc64-unknown-linux-gnu
56-
# toolchain: stable
57-
# use_cross: true
58-
# deps: true
24+
rust:
25+
- 1.41.0 # MSRV
26+
- stable
27+
target:
28+
- thumbv7em-none-eabi
29+
- wasm32-unknown-unknown
5930
steps:
6031
- uses: actions/checkout@v1
61-
- run: ${{ matrix.deps }}
6232
- uses: actions-rs/toolchain@v1
6333
with:
6434
profile: minimal
65-
toolchain: ${{ matrix.toolchain }}
35+
toolchain: ${{ matrix.rust }}
6636
target: ${{ matrix.target }}
6737
override: true
68-
- uses: actions-rs/cargo@v1
69-
with:
70-
command: test
71-
use-cross: ${{ matrix.use_cross }}
72-
args: --target ${{ matrix.target }} --release
73-
- uses: actions-rs/cargo@v1
38+
- run: cargo build --no-default-features --target ${{ matrix.target }}
39+
40+
test:
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
rust:
45+
- 1.41.0 # MSRV
46+
- stable
47+
steps:
48+
- uses: actions/checkout@v1
49+
- uses: actions-rs/toolchain@v1
7450
with:
75-
command: test
76-
use-cross: ${{ matrix.use_cross }}
77-
args: --target ${{ matrix.target }} --release --all-features
51+
profile: minimal
52+
toolchain: ${{ matrix.rust }}
53+
override: true
54+
- run: cargo check --all-features
55+
- run: cargo test --no-default-features
56+
- run: cargo test
57+
- run: cargo test --all-features

Cargo.lock

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

0 commit comments

Comments
 (0)