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

    const SECURITY_BITS: u32;
    const SECURITY_BYTES: usize;
}
Expand description

Security level of CGGMP21 DKG protocol Security level of the DKG protocol

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

Required Associated Types§

source

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

Static array of $\kappa/8$ bytes

Required Associated Constants§

source

const SECURITY_BITS: u32

$\kappa$ bits of security

source

const SECURITY_BYTES: usize

$\kappa/8$ bytes of security

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SecurityLevel for SecurityLevel128

source§

const SECURITY_BITS: u32 = 384u32

source§

const SECURITY_BYTES: usize = 48usize

§

type Rid = Rid<cggmp21_keygen::::security_level::{impl#1}::Rid::{constant#0}>