Skip to content

Commit

Permalink
[WIP] blake2: integrate blake2b_simd/blake2s_simd crates
Browse files Browse the repository at this point in the history
Integrates original sources from these crates, which provide
AVX2-accelerated SIMD backends:

https://github.com/oconnor663/blake2_simd

Taken from this commit:

Hash:   7bf791e67245bb84132d1ee0e6a893bb8c85c093
Author: Jack O'Connor <[email protected]>
Date:   Fri Nov 13 15:50:16 2020 -0500
Title:  AES-CTR benchmarks
  • Loading branch information
tarcieri committed Feb 4, 2021
1 parent 864b6e3 commit 5a64949
Show file tree
Hide file tree
Showing 55 changed files with 27,604 additions and 1,380 deletions.
58 changes: 25 additions & 33 deletions .github/workflows/blake2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,30 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.41.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
# TODO(tarcieri): re-enable these when failures are addressed:
# <https://github.com/RustCrypto/hashes/pull/228/checks?check_run_id=1831937705>
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# rust:
# - 1.41.0 # MSRV
# - stable
# target:
# - thumbv7em-none-eabi
# - wasm32-unknown-unknown
# steps:
# - uses: actions/checkout@v1
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# target: ${{ matrix.target }}
# override: true
# - run: cargo build --target ${{ matrix.target }} --release --no-default-features
# - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features blake2b
# - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features blake2s
# - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features blake2b,blake2s

test:
runs-on: ubuntu-latest
Expand All @@ -51,17 +56,4 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --no-default-features
- run: cargo test
simd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- run: cargo test --features simd
- run: cargo test --features simd_opt
- run: cargo test --features simd_asm
- run: cargo test --release
Loading

0 comments on commit 5a64949

Please sign in to comment.