Skip to main content

Spake2PlusCiphersuite

Trait Spake2PlusCiphersuite 

Source
pub trait Spake2PlusCiphersuite: Sized + 'static {
    type Group: CpaceGroup;
    type Hash: Hash;
    type Kdf: Kdf;
    type Mac: Mac;

    const NH: usize;
    const M_BYTES: &'static [u8];
    const N_BYTES: &'static [u8];
}
Expand description

Defines a SPAKE2+ ciphersuite: group, hash, KDF, MAC, and protocol constants.

Required Associated Constants§

Source

const NH: usize

Hash output length in bytes (e.g. 64 for SHA-512).

Source

const M_BYTES: &'static [u8]

Pre-computed M point (compressed).

Source

const N_BYTES: &'static [u8]

Pre-computed N point (compressed).

Required Associated Types§

Source

type Group: CpaceGroup

The prime-order group used for the protocol.

Source

type Hash: Hash

The hash function used for transcript hashing.

Source

type Kdf: Kdf

The key derivation function.

Source

type Mac: Mac

The message authentication code.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§