pakery-crypto 0.2.1

Concrete cryptographic implementations for PAKE protocols
Documentation
//! Pre-computed SPAKE2 constants for P-256 from RFC 9382 §4.
//!
//! Points M and N in compressed SEC1 encoding (33 bytes each).

/// M point for SPAKE2 with P-256 (compressed SEC1).
///
/// From RFC 9382 §4:
/// M = 0x02886e2f97ace46e55ba9dd7242579f2993b64e16ef3dcab95afd497333d8fa12f
pub const SPAKE2_P256_M_COMPRESSED: [u8; 33] = [
    0x02, 0x88, 0x6e, 0x2f, 0x97, 0xac, 0xe4, 0x6e, 0x55, 0xba, 0x9d, 0xd7, 0x24, 0x25, 0x79, 0xf2,
    0x99, 0x3b, 0x64, 0xe1, 0x6e, 0xf3, 0xdc, 0xab, 0x95, 0xaf, 0xd4, 0x97, 0x33, 0x3d, 0x8f, 0xa1,
    0x2f,
];

/// N point for SPAKE2 with P-256 (compressed SEC1).
///
/// From RFC 9382 §4:
/// N = 0x03d8bbd6c639c62937b04d997f38c3770719c629d7014d49a24b4f98baa1292b49
pub const SPAKE2_P256_N_COMPRESSED: [u8; 33] = [
    0x03, 0xd8, 0xbb, 0xd6, 0xc6, 0x39, 0xc6, 0x29, 0x37, 0xb0, 0x4d, 0x99, 0x7f, 0x38, 0xc3, 0x77,
    0x07, 0x19, 0xc6, 0x29, 0xd7, 0x01, 0x4d, 0x49, 0xa2, 0x4b, 0x4f, 0x98, 0xba, 0xa1, 0x29, 0x2b,
    0x49,
];