pub struct Params {
    pub publicKeyBytes: usize,
    pub secretKeyBytes: usize,
    pub ciphertextBytes: usize,
    pub sharedSecretBytes: usize,
}Expand description
Represents Kyber parameters.
Fields§
§publicKeyBytes: usizeThe size of public key bytes.
secretKeyBytes: usizeThe size of secret key bytes.
ciphertextBytes: usizeThe size of ciphertext bytes.
The size of shared secret bytes.
Implementations§
source§impl Params
 
impl Params
sourcepub fn publicKeyBytes() -> usize
 
pub fn publicKeyBytes() -> usize
Get the size of public key bytes.
sourcepub fn secretKeyBytes() -> usize
 
pub fn secretKeyBytes() -> usize
Get the size of secret key bytes.
sourcepub fn ciphertextBytes() -> usize
 
pub fn ciphertextBytes() -> usize
Get the size of ciphertext bytes.
Get the size of shared secret bytes.
Trait Implementations§
source§impl FromWasmAbi for Params
 
impl FromWasmAbi for Params
source§impl IntoWasmAbi for Params
 
impl IntoWasmAbi for Params
source§impl LongRefFromWasmAbi for Params
 
impl LongRefFromWasmAbi for Params
source§impl OptionFromWasmAbi for Params
 
impl OptionFromWasmAbi for Params
source§impl OptionIntoWasmAbi for Params
 
impl OptionIntoWasmAbi for Params
source§impl Ord for Params
 
impl Ord for Params
source§impl PartialEq for Params
 
impl PartialEq for Params
source§impl PartialOrd for Params
 
impl PartialOrd for Params
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl RefFromWasmAbi for Params
 
impl RefFromWasmAbi for Params
source§impl RefMutFromWasmAbi for Params
 
impl RefMutFromWasmAbi for Params
source§impl TryFromJsValue for Params
 
impl TryFromJsValue for Params
source§impl VectorFromWasmAbi for Params
 
impl VectorFromWasmAbi for Params
source§impl VectorIntoWasmAbi for Params
 
impl VectorIntoWasmAbi for Params
impl Copy for Params
impl Eq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> ReturnWasmAbi for Twhere
    T: IntoWasmAbi,
 
impl<T> ReturnWasmAbi for Twhere
    T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
 
type Abi = <T as IntoWasmAbi>::Abi
Same as 
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
 
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as 
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.