Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: ascon-aead
name: ascon-aead128

on:
pull_request:
paths:
- ".github/workflows/ascon-aead.yml"
- "ascon-aead/**"
- ".github/workflows/ascon-aead128.yml"
- "ascon-aead128/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: ascon-aead
working-directory: ascon-aead128

env:
CARGO_INCREMENTAL: 0
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
"aes-gcm",
"aes-gcm-siv",
"aes-siv",
"ascon-aead",
"ascon-aead128",
"belt-dwp",
"ccm",
"chacha20poly1305",
Expand Down
File renamed without changes.
11 changes: 4 additions & 7 deletions ascon-aead/Cargo.toml → ascon-aead128/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
[package]
name = "ascon-aead"
version = "0.4.2"
description = "Implementation of the authenticated encryption schemes Ascon-128, Ascon-128a, and Ascon-80pq"
authors = [
"Sebastian Ramacher <[email protected]>",
"RustCrypto Developers",
]
name = "ascon-aead128"
version = "0.1.0"
description = "Implementation of the Ascon-AEAD128 authenticated encryption scheme"
authors = ["RustCrypto Developers"]
edition = "2024"
license = "Apache-2.0 OR MIT"
readme = "README.md"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright 2021-2023 Sebastian Ramacher
// SPDX-License-Identifier: Apache-2.0 OR MIT

use aead::{
Error,
array::{Array, ArraySize},
Expand Down
17 changes: 7 additions & 10 deletions ascon-aead/src/lib.rs → ascon-aead128/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright 2021-2023 Sebastian Ramacher
// SPDX-License-Identifier: Apache-2.0 OR MIT

#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![doc = include_str!("../README.md")]
Expand All @@ -16,8 +13,8 @@
//!
//! ```
//! # #[cfg(feature = "alloc")] {
//! use ascon_aead::{AsconAead128, Key, Nonce};
//! use ascon_aead::aead::{Aead, KeyInit};
//! use ascon_aead128::{AsconAead128, Key, Nonce};
//! use ascon_aead128::aead::{Aead, KeyInit};
//!
//! let key = Key::<AsconAead128>::from_slice(b"very secret key.");
//! let cipher = AsconAead128::new(key);
Expand All @@ -38,8 +35,8 @@
//!
//! ```
//! # #[cfg(feature = "getrandom")] {
//! use ascon_aead::AsconAead128;
//! use ascon_aead::aead::{Aead, AeadCore, KeyInit, OsRng};
//! use ascon_aead128::AsconAead128;
//! use ascon_aead128::aead::{Aead, AeadCore, KeyInit, OsRng};
//!
//! let key = AsconAead128::generate_key().expect("generate key");
//! let cipher = AsconAead128::new(&key);
Expand Down Expand Up @@ -73,9 +70,9 @@
//!
//! ```
//! # #[cfg(feature = "heapless")] {
//! use ascon_aead::{AsconAead128, Key, Nonce};
//! use ascon_aead::aead::{AeadInPlace, KeyInit};
//! use ascon_aead::aead::heapless::Vec;
//! use ascon_aead128::{AsconAead128, Key, Nonce};
//! use ascon_aead128::aead::{AeadInPlace, KeyInit};
//! use ascon_aead128::aead::heapless::Vec;
//!
//! let key = Key::<AsconAead128>::from_slice(b"very secret key.");
//! let cipher = AsconAead128::new(key);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg(feature = "alloc")] // TODO: remove after migration to the new `aead` crate
use ascon_aead::{
use ascon_aead128::{
AsconAead128,
aead::{Aead, KeyInit, Nonce, Payload, dev::blobby},
};
Expand Down