Skip to main content

KeygenSecurityLevel

Trait KeygenSecurityLevel 

Source
pub trait KeygenSecurityLevel:
    Clone
    + Sync
    + Send
    + 'static {
    type KappaBytes: AsRef<[u8]> + AsMut<[u8]> + Default + Clone + FromHex<Error = FromHexError> + Send + Sync + Unpin + 'static;

    const KAPPA_BITS: u32;
    const KAPPA_BYTES: usize;
}
Expand description

Security level of CGGMP24 DKG protocol Security level of the DKG protocol

You should not implement this trait manually. Use define_security_level macro instead.

Required Associated Constants§

Source

const KAPPA_BITS: u32

$\kappa$ bits

Source

const KAPPA_BYTES: usize

$\kappa/8$ bytes

Required Associated Types§

Source

type KappaBytes: AsRef<[u8]> + AsMut<[u8]> + Default + Clone + FromHex<Error = FromHexError> + Send + Sync + Unpin + 'static

Byte array of KAPPA_BYTES bytes

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§

Source§

impl SecurityLevel for SecurityLevel128

Source§

const KAPPA_BITS: u32 = 256

Source§

const KAPPA_BYTES: usize

Source§

type KappaBytes = KappaBytes<cggmp24_keygen::::security_level::{impl#1}::KappaBytes::{constant#0}>

Source§

impl SecurityLevel for SecurityLevel192

Source§

const KAPPA_BITS: u32

Source§

const KAPPA_BYTES: usize

Source§

type KappaBytes = KappaBytes<cggmp24_keygen::::security_level::{impl#3}::KappaBytes::{constant#0}>