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
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Params
impl PartialOrd for Params
Source§impl RefFromWasmAbi for Params
impl RefFromWasmAbi for Params
Source§type Abi = WasmPtr<WasmRefCell<Params>>
type Abi = WasmPtr<WasmRefCell<Params>>
The Wasm ABI type references to
Self are recovered from.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
impl SupportsConstructor for Params
impl SupportsInstanceProperty for Params
impl SupportsStaticProperty 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 UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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.