diff --git a/Cargo.lock b/Cargo.lock index 96ea615..0be5ca1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -389,7 +389,7 @@ dependencies = [ ] [[package]] -name = "ed448-signature" +name = "ed448" version = "0.0.0" dependencies = [ "bincode", diff --git a/Cargo.toml b/Cargo.toml index 57f708b..79c5444 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ opt-level = 2 # when pulling a member crate through git dsa = { path = "./dsa" } ecdsa = { path = "./ecdsa" } -ed448-signature = { path = "./ed448" } +ed448 = { path = "./ed448" } ed25519 = { path = "./ed25519" } lms-signature = { path = "./lms" } ml-dsa = { path = "./ml-dsa" } diff --git a/README.md b/README.md index 9773627..bcf7f1d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ and can be easily used for bare-metal or lightweight WebAssembly programming. | [`dsa`] | [Digital Signature Algorithm](https://en.wikipedia.org/wiki/Digital_Signature_Algorithm) | [![crates.io](https://img.shields.io/crates/v/dsa.svg)](https://crates.io/crates/dsa) | [![Documentation](https://docs.rs/dsa/badge.svg)](https://docs.rs/dsa) | [![dsa build](https://github.com/RustCrypto/signatures/actions/workflows/dsa.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/dsa.yml) | [`ecdsa`] | [Elliptic Curve DSA](https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm) | [![crates.io](https://img.shields.io/crates/v/ecdsa.svg)](https://crates.io/crates/ecdsa) | [![Documentation](https://docs.rs/ecdsa/badge.svg)](https://docs.rs/ecdsa) | [![ecdsa build](https://github.com/RustCrypto/signatures/actions/workflows/ecdsa.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/ecdsa.yml) | | [`ed25519`] | [EdDSA for Curve25519](https://en.wikipedia.org/wiki/EdDSA#Ed25519) | [![crates.io](https://img.shields.io/crates/v/ed25519.svg)](https://crates.io/crates/ed25519) | [![Documentation](https://docs.rs/ed25519/badge.svg)](https://docs.rs/ed25519) | [![ed25519 build](https://github.com/RustCrypto/signatures/actions/workflows/ed25519.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/ed25519.yml) -| [`ed448`] | [EdDSA for Curve448](https://en.wikipedia.org/wiki/EdDSA#Ed448) | [![crates.io](https://img.shields.io/crates/v/ed448-signature.svg)](https://crates.io/crates/ed448-signature) | [![Documentation](https://docs.rs/ed448-signature/badge.svg)](https://docs.rs/ed448-signature) | [![ed448 build](https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml) +| [`ed448`] | [EdDSA for Curve448](https://en.wikipedia.org/wiki/EdDSA#Ed448) | [![crates.io](https://img.shields.io/crates/v/ed448.svg)](https://crates.io/crates/ed448) | [![Documentation](https://docs.rs/ed448/badge.svg)](https://docs.rs/ed448) | [![ed448 build](https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml) | [`lms`] | [Leighton-Micali Signature](https://datatracker.ietf.org/doc/html/rfc8554) | [![crates.io](https://img.shields.io/crates/v/lms-signature.svg)](https://crates.io/crates/lms-signature) | [![Documentation](https://docs.rs/lms-signature/badge.svg)](https://docs.rs/ed25519) | [![lms build](https://github.com/RustCrypto/signatures/actions/workflows/lms.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/lms.yml) | [`ml-dsa`] | [Module Lattice DSA](https://csrc.nist.gov/pubs/fips/204/final) | [![crates.io](https://img.shields.io/crates/v/ml-dsa.svg)](https://crates.io/crates/ml-dsa) | [![Documentation](https://docs.rs/ml-dsa/badge.svg)](https://docs.rs/ml-dsa) | [![lms build](https://github.com/RustCrypto/signatures/actions/workflows/ml-dsa.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/lms.yml) | [`rfc6979`] | [Deterministic (EC)DSA Signatures](https://datatracker.ietf.org/doc/html/rfc6979) | [![crates.io](https://img.shields.io/crates/v/rfc6979.svg)](https://crates.io/crates/rfc6979) | [![Documentation](https://docs.rs/rfc6979/badge.svg)](https://docs.rs/rfc6979) | [![rfc6979 build](https://github.com/RustCrypto/signatures/actions/workflows/rfc6979.yml/badge.svg)](https://github.com/RustCrypto/signatures/actions/workflows/rfc6979.yml) diff --git a/ed448/Cargo.toml b/ed448/Cargo.toml index 37cc3ff..76b31c4 100644 --- a/ed448/Cargo.toml +++ b/ed448/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ed448-signature" +name = "ed448" version = "0.0.0" edition = "2024" authors = ["RustCrypto Developers"] @@ -9,7 +9,7 @@ Edwards Digital Signature Algorithm (EdDSA) over Curve448 (as specified in RFC 7 support library providing signature type definitions and PKCS#8 private key decoding/encoding support """ -documentation = "https://docs.rs/ed448-signature" +documentation = "https://docs.rs/ed448" homepage = "https://github.com/RustCrypto/signatures/tree/master/ed448" repository = "https://github.com/RustCrypto/signatures" readme = "README.md" diff --git a/ed448/README.md b/ed448/README.md index 861c6a6..60bd0d3 100644 --- a/ed448/README.md +++ b/ed448/README.md @@ -15,7 +15,7 @@ in [RFC 7748][2]. ## About This crate doesn't contain an implementation of Ed448, but instead -contains an [`ed448_signature::Signature`][3] type which other crates can use in +contains an [`ed448::Signature`][3] type which other crates can use in conjunction with the [`signature::Signer`][4] and [`signature::Verifier`][5] traits. @@ -48,10 +48,10 @@ dual licensed as above, without any additional terms or conditions. [//]: # (badges) -[crate-image]: https://img.shields.io/crates/v/ed448-signature -[crate-link]: https://crates.io/crates/ed448-signature -[docs-image]: https://docs.rs/ed448-signature/badge.svg -[docs-link]: https://docs.rs/ed448-signature/ +[crate-image]: https://img.shields.io/crates/v/ed448 +[crate-link]: https://crates.io/crates/ed448 +[docs-image]: https://docs.rs/ed448/badge.svg +[docs-link]: https://docs.rs/ed448/ [build-image]: https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml/badge.svg [build-link]: https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg @@ -67,6 +67,6 @@ dual licensed as above, without any additional terms or conditions. [1]: https://en.wikipedia.org/wiki/EdDSA#Ed448 [2]: https://tools.ietf.org/html/rfc7748 -[3]: https://docs.rs/ed448-signature/latest/ed448-signature/struct.Signature.html +[3]: https://docs.rs/ed448/latest/ed448/struct.Signature.html [4]: https://docs.rs/signature/latest/signature/trait.Signer.html [5]: https://docs.rs/signature/latest/signature/trait.Verifier.html diff --git a/ed448/src/lib.rs b/ed448/src/lib.rs index b13b74c..ecfe149 100644 --- a/ed448/src/lib.rs +++ b/ed448/src/lib.rs @@ -14,7 +14,7 @@ //! # Using Ed448 generically over algorithm implementations/providers //! -//! By using the `ed448-signature` crate, you can write code which signs and verifies +//! By using the `ed448` crate, you can write code which signs and verifies //! messages using the Ed448 signature algorithm generically over any //! supported Ed448 implementation (see the next section for available //! providers). @@ -26,20 +26,20 @@ //! ## Example //! //! ``` -//! use ed448_signature::signature::{Signer, Verifier}; +//! use ed448::signature::{Signer, Verifier}; //! //! pub struct HelloSigner //! where -//! S: Signer +//! S: Signer //! { //! pub signing_key: S //! } //! //! impl HelloSigner //! where -//! S: Signer +//! S: Signer //! { -//! pub fn sign(&self, person: &str) -> ed448_signature::Signature { +//! pub fn sign(&self, person: &str) -> ed448::Signature { //! // NOTE: use `try_sign` if you'd like to be able to handle //! // errors from external signing services/devices (e.g. HSM/KMS) //! // @@ -53,13 +53,13 @@ //! //! impl HelloVerifier //! where -//! V: Verifier +//! V: Verifier //! { //! pub fn verify( //! &self, //! person: &str, -//! signature: &ed448_signature::Signature -//! ) -> Result<(), ed448_signature::Error> { +//! signature: &ed448::Signature +//! ) -> Result<(), ed448::Error> { //! self.verifying_key.verify(format_message(person).as_bytes(), signature) //! } //! } @@ -211,7 +211,7 @@ impl TryFrom<&[u8]> for Signature { impl fmt::Debug for Signature { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("ed448_signature::Signature") + f.debug_struct("ed448::Signature") .field("R", self.r_bytes()) .field("s", self.s_bytes()) .finish() diff --git a/ed448/tests/hex.rs b/ed448/tests/hex.rs index 39f00df..107a10c 100644 --- a/ed448/tests/hex.rs +++ b/ed448/tests/hex.rs @@ -1,6 +1,6 @@ //! Hexadecimal display/serialization tests. -use ed448_signature::Signature; +use ed448::Signature; use hex_literal::hex; use std::str::FromStr; diff --git a/ed448/tests/pkcs8.rs b/ed448/tests/pkcs8.rs index 4afb491..213011b 100644 --- a/ed448/tests/pkcs8.rs +++ b/ed448/tests/pkcs8.rs @@ -1,11 +1,11 @@ //! PKCS#8 private key tests #![cfg(feature = "pkcs8")] -use ed448_signature::pkcs8::{DecodePrivateKey, DecodePublicKey, KeypairBytes, PublicKeyBytes}; +use ed448::pkcs8::{DecodePrivateKey, DecodePublicKey, KeypairBytes, PublicKeyBytes}; use hex_literal::hex; #[cfg(feature = "alloc")] -use ed448_signature::pkcs8::{EncodePrivateKey, EncodePublicKey}; +use ed448::pkcs8::{EncodePrivateKey, EncodePublicKey}; /// Ed448 PKCS#8 v1 private key encoded as ASN.1 DER. const PKCS8_V1_DER: &[u8] = include_bytes!("examples/pkcs8-v1.der"); diff --git a/ed448/tests/serde.rs b/ed448/tests/serde.rs index 60ba765..254a7a6 100644 --- a/ed448/tests/serde.rs +++ b/ed448/tests/serde.rs @@ -2,7 +2,7 @@ #![cfg(feature = "serde")] -use ed448_signature::{Signature, SignatureBytes}; +use ed448::{Signature, SignatureBytes}; use hex_literal::hex; const EXAMPLE_SIGNATURE: SignatureBytes = hex!(