dcrypt_params/traditional/
ed25519.rs

1//! Constants for Ed25519 algorithm
2
3/// Size of Ed25519 public keys in bytes
4pub const ED25519_PUBLIC_KEY_SIZE: usize = 32;
5
6/// Size of Ed25519 secret keys in bytes
7pub const ED25519_SECRET_KEY_SIZE: usize = 32;
8
9/// Size of Ed25519 signatures in bytes
10pub const ED25519_SIGNATURE_SIZE: usize = 64;
11
12/// Ed25519 curve order (little-endian)
13pub const ED25519_CURVE_ORDER: [u8; 32] = [
14    0xED, 0xD3, 0xF5, 0x5C, 0x1A, 0x63, 0x12, 0x58, 0xD6, 0x9C, 0xF7, 0xA2, 0xDE, 0xF9, 0xDE, 0x14,
15    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
16];
17
18/// Ed25519 base point y-coordinate
19pub const ED25519_BASE_Y: [u8; 32] = [
20    0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
21    0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
22];