mirror of
https://github.com/RustCrypto/signatures
synced 2026-06-21 13:45:42 +00:00
ed448: drop -signature suffix from crate name (#990)
Crate name is now just `ed448`, like the Ed448 variant of EdDSA. The elliptic curve's name is Ed448-Goldilocks (or "edwards448")
This commit is contained in:
Generated
+1
-1
@@ -389,7 +389,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ed448-signature"
|
||||
name = "ed448"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
|
||||
+1
-1
@@ -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" }
|
||||
|
||||
@@ -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) | [](https://crates.io/crates/dsa) | [](https://docs.rs/dsa) | [](https://github.com/RustCrypto/signatures/actions/workflows/dsa.yml)
|
||||
| [`ecdsa`] | [Elliptic Curve DSA](https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm) | [](https://crates.io/crates/ecdsa) | [](https://docs.rs/ecdsa) | [](https://github.com/RustCrypto/signatures/actions/workflows/ecdsa.yml) |
|
||||
| [`ed25519`] | [EdDSA for Curve25519](https://en.wikipedia.org/wiki/EdDSA#Ed25519) | [](https://crates.io/crates/ed25519) | [](https://docs.rs/ed25519) | [](https://github.com/RustCrypto/signatures/actions/workflows/ed25519.yml)
|
||||
| [`ed448`] | [EdDSA for Curve448](https://en.wikipedia.org/wiki/EdDSA#Ed448) | [](https://crates.io/crates/ed448-signature) | [](https://docs.rs/ed448-signature) | [](https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml)
|
||||
| [`ed448`] | [EdDSA for Curve448](https://en.wikipedia.org/wiki/EdDSA#Ed448) | [](https://crates.io/crates/ed448) | [](https://docs.rs/ed448) | [](https://github.com/RustCrypto/signatures/actions/workflows/ed448.yml)
|
||||
| [`lms`] | [Leighton-Micali Signature](https://datatracker.ietf.org/doc/html/rfc8554) | [](https://crates.io/crates/lms-signature) | [](https://docs.rs/ed25519) | [](https://github.com/RustCrypto/signatures/actions/workflows/lms.yml)
|
||||
| [`ml-dsa`] | [Module Lattice DSA](https://csrc.nist.gov/pubs/fips/204/final) | [](https://crates.io/crates/ml-dsa) | [](https://docs.rs/ml-dsa) | [](https://github.com/RustCrypto/signatures/actions/workflows/lms.yml)
|
||||
| [`rfc6979`] | [Deterministic (EC)DSA Signatures](https://datatracker.ietf.org/doc/html/rfc6979) | [](https://crates.io/crates/rfc6979) | [](https://docs.rs/rfc6979) | [](https://github.com/RustCrypto/signatures/actions/workflows/rfc6979.yml)
|
||||
|
||||
+2
-2
@@ -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"
|
||||
|
||||
+6
-6
@@ -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
|
||||
|
||||
+9
-9
@@ -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<S>
|
||||
//! where
|
||||
//! S: Signer<ed448_signature::Signature>
|
||||
//! S: Signer<ed448::Signature>
|
||||
//! {
|
||||
//! pub signing_key: S
|
||||
//! }
|
||||
//!
|
||||
//! impl<S> HelloSigner<S>
|
||||
//! where
|
||||
//! S: Signer<ed448_signature::Signature>
|
||||
//! S: Signer<ed448::Signature>
|
||||
//! {
|
||||
//! 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)
|
||||
//! // <https://docs.rs/signature/latest/signature/trait.Signer.html#tymethod.try_sign>
|
||||
@@ -53,13 +53,13 @@
|
||||
//!
|
||||
//! impl<V> HelloVerifier<V>
|
||||
//! where
|
||||
//! V: Verifier<ed448_signature::Signature>
|
||||
//! V: Verifier<ed448::Signature>
|
||||
//! {
|
||||
//! 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()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//! Hexadecimal display/serialization tests.
|
||||
|
||||
use ed448_signature::Signature;
|
||||
use ed448::Signature;
|
||||
use hex_literal::hex;
|
||||
use std::str::FromStr;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user