From 2a71bae6b2dfca73728da2c5c9f80b4d9cb04ae6 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 25 Feb 2023 17:36:18 -0700 Subject: [PATCH] ascon: 2021 edition (#40) Since #39 bumped MSRV to 1.59, we can go ahead and do a 2021 edition upgrade, including README.md in the toplevel rustdoc. --- ascon/Cargo.toml | 3 ++- ascon/src/lib.rs | 23 +---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/ascon/Cargo.toml b/ascon/Cargo.toml index 861ff94..218ed2b 100644 --- a/ascon/Cargo.toml +++ b/ascon/Cargo.toml @@ -12,7 +12,8 @@ repository = "https://github.com/RustCrypto/sponges/tree/master/ascon" keywords = ["crypto", "sponge"] categories = ["cryptography", "no-std"] readme = "README.md" -edition = "2018" +edition = "2021" +rust-version = "1.59" [features] default = ["alloc"] diff --git a/ascon/src/lib.rs b/ascon/src/lib.rs index b5a922d..d9e25db 100644 --- a/ascon/src/lib.rs +++ b/ascon/src/lib.rs @@ -1,26 +1,5 @@ -//! Pure Rust implementation of [Ascon], a family of authenticated encryption and -//! hashing algorithms designed to be lightweight and easy to implement. -//! -//! ## About -//! -//! Ascon is a family of lightweight algorithms built on a core permutation -//! algorithm. These algorithms include: -//! -//! - Authenticated Encryption with Associated Data (AEAD) -//! - Hash functions (HASH) and extendible-output functions (XOF) -//! - Pseudo-random functions (PRF) and message authentication codes (MAC) -//! -//! Ascon has been selected as [new standard for lightweight cryptography] in the -//! [NIST Lightweight Cryptography] competition, and has also been selected as the -//! primary choice for lightweight authenticated encryption in the final -//! portfolio of the [CAESAR competition]. -//! -//! [Ascon]: https://ascon.iaik.tugraz.at/ -//! [New standard for lightweight cryptography]: https://www.nist.gov/news-events/news/2023/02/nist-selects-lightweight-cryptography-algorithms-protect-small-devices -//! [NIST Lightweight Cryptography]: https://csrc.nist.gov/projects/lightweight-cryptography/finalists -//! [CAESAR competition]: https://competitions.cr.yp.to/caesar-submissions.html - #![no_std] +#![doc = include_str!("../README.md")] #![doc( html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg", html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"