-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Import `ascon-hash` * Relicense as Apache-2.0 OR MIT * GA: test ascon-hash * Move benchmarks to benches crate * Update documentation * Move ascon-hash to exclude * Follow UpperCamelCase naming convention Also bump the version number to 0.2.0-pre as names of public types change.
- Loading branch information
1 parent
9b218cf
commit 70cceab
Showing
17 changed files
with
17,470 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: ascon-hash | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/ascon-hash.yml" | ||
- "ascon-hash/**" | ||
- "Cargo.*" | ||
push: | ||
branches: master | ||
|
||
defaults: | ||
run: | ||
working-directory: ascon-hash | ||
|
||
env: | ||
RUSTFLAGS: "-Dwarnings" | ||
CARGO_INCREMENTAL: 0 | ||
|
||
jobs: | ||
set-msrv: | ||
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master | ||
with: | ||
msrv: 1.56.0 | ||
|
||
build: | ||
needs: set-msrv | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- ${{needs.set-msrv.outputs.msrv}} | ||
- stable | ||
target: | ||
- thumbv7em-none-eabi | ||
- wasm32-unknown-unknown | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: RustCrypto/actions/cargo-cache@master | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
targets: ${{ matrix.target }} | ||
- run: cargo build --no-default-features --target ${{ matrix.target }} | ||
|
||
minimal-versions: | ||
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master | ||
with: | ||
working-directory: ${{ github.workflow }} | ||
|
||
test: | ||
needs: set-msrv | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- ${{needs.set-msrv.outputs.msrv}} | ||
- stable | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: RustCrypto/actions/cargo-cache@master | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- run: cargo check --all-features | ||
- run: cargo test --no-default-features | ||
- run: cargo test | ||
- run: cargo test --all-features |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Changelog | ||
|
||
## 0.1.1 (2023-03-17) | ||
|
||
* Use `aead` instead of `aead-core`. | ||
* Bump MSRV to 1.60. | ||
* Add benchmarks. | ||
|
||
## 0.1 (2022-06-03) | ||
|
||
* Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[package] | ||
name = "ascon-hash" | ||
version = "0.2.0-pre" | ||
description = "Implementation of the Ascon and AsconA hashes and XOFs" | ||
authors = [ | ||
"Sebastian Ramacher <sebastian.ramacher@ait.ac.at>", | ||
"RustCrypto Developers", | ||
] | ||
license = "Apache-2.0 OR MIT" | ||
readme = "README.md" | ||
edition = "2021" | ||
documentation = "https://docs.rs/ascon-hash" | ||
repository = "https://github.com/RustCrypto/hashes" | ||
keywords = ["crypto", "hash", "ascon"] | ||
categories = ["cryptography", "no-std"] | ||
rust-version = "1.56" | ||
|
||
[workspace] | ||
|
||
[dependencies] | ||
digest = { version = "0.10", default-features = false, features = ["core-api"] } | ||
ascon = "0.3" | ||
|
||
[dev-dependencies] | ||
spectral = { version = "0.6", default-features = false } | ||
hex = "0.4" | ||
|
||
[features] | ||
default = ["std"] | ||
std = ["digest/std"] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] |
Oops, something went wrong.