ascon: drop MSRV to 1.56 (#51)

* ascon: make tests compatible with Rust 1.56

* ascon: drop MSRV to 1.56

MSRV was raised for `ascon` in c8b07a46c86b240d3ce9c5e75a4f23117a874e19.
After the merge of `ascon-core`, 1.56 provides all required features.
This commit is contained in:
Sebastian Ramacher 2023-03-19 16:23:24 +01:00 committed by GitHub
parent 633777a1c9
commit fc88ab5cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 7 deletions

View File

@ -21,7 +21,7 @@ jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.60.0
msrv: 1.56.0
build:
needs: set-msrv

2
Cargo.lock generated
View File

@ -4,4 +4,4 @@ version = 3
[[package]]
name = "ascon"
version = "0.3.0"
version = "0.3.1-pre"

View File

@ -1,6 +1,6 @@
[package]
name = "ascon"
version = "0.3.0"
version = "0.3.1-pre"
description = "Pure rust implementation of the Ascon permutation"
authors = [
"Sebastian Ramacher <sebastian.ramacher@ait.ac.at>",
@ -13,7 +13,7 @@ keywords = ["Ascon", "crypto", "permutation"]
categories = ["cryptography", "no-std"]
readme = "README.md"
edition = "2021"
rust-version = "1.60"
rust-version = "1.56"
[features]
no_unroll = [] # Do not unroll loops for binary size reduction

View File

@ -29,7 +29,7 @@ portfolio of the [CAESAR competition].
## Minimum Supported Rust Version
This crate requires **Rust 1.60** at a minimum.
This crate requires **Rust 1.56** at a minimum.
We may change the MSRV in the future, but it will be accompanied by a minor
version bump.
@ -58,7 +58,7 @@ dual licensed as above, without any additional terms or conditions.
[build-image]: https://github.com/RustCrypto/sponges/actions/workflows/ascon.yml/badge.svg
[build-link]: https://github.com/RustCrypto/sponges/actions/workflows/ascon.yml
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.60+-blue.svg
[rustc-image]: https://img.shields.io/badge/rustc-1.56+-blue.svg
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/369879-sponges

View File

@ -404,7 +404,8 @@ mod tests {
);
let bytes = state.as_bytes();
let state2 = State::try_from(bytes.as_slice());
// test TryFrom<&[u8]>
let state2 = State::try_from(&bytes[..]);
assert_eq!(state2.expect("try_from bytes").x, state.x);
let state2 = State::from(&bytes);