rscrypto 0.4.0

Pure Rust Cryptography: RSA, Ed25519, X25519, SHA-2/3, BLAKE2/3, AES-GCM/GCM-SIV, X/ChaCha20-Poly1305, Argon2, HMAC/HKDF, CRC. no_std, WASM, hardware acceleration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Internal constants for the Ed25519 implementation.

/// 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 limb count for the 5x51 radix layout.
pub(crate) const FIELD_LIMBS: usize = 5;

/// Internal scalar limb count for the 4x64 layout.
pub(crate) const SCALAR_LIMBS: usize = 4;