rscrypto 0.1.1

Pure Rust cryptography, hardware-accelerated: BLAKE3, SHA-2/3, AES-GCM, ChaCha20-Poly1305, Ed25519, X25519, HMAC, HKDF, Argon2, CRC. no_std, WASM, ten CPU architectures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Internal constants for the Ed25519 implementation plan.

/// Ed25519 secret key length in bytes.
pub(crate) const SECRET_KEY_LENGTH: usize = 32;

/// Ed25519 public key length in bytes.
pub(crate) const PUBLIC_KEY_LENGTH: usize = 32;

/// Ed25519 signature length in bytes.
pub(crate) const SIGNATURE_LENGTH: usize = 64;

/// Internal field element uses a 5x51 radix layout in the planned portable implementation.
pub(crate) const FIELD_LIMBS: usize = 5;

/// Internal scalar uses four 64-bit limbs in the planned portable implementation.
pub(crate) const SCALAR_LIMBS: usize = 4;