pub struct CipherParam {
pub iv: Option<[u8; 16]>,
pub counter_size: Option<u8>,
pub key: Option<Vec<u8>>,
}
Expand description
Cipher algorithm parameters for compute
Fields§
§iv: Option<[u8; 16]>
IV - Initialization Vector. For CTR mode it is concatenation of nonce and initial counter value.
counter_size: Option<u8>
Size of counter in IV in bytes for CTR mode. 4 bytes is a common size.
key: Option<Vec<u8>>
external encryption/decryption key needed when an AES key stored in the cryptochip is not used
Trait Implementations§
Source§impl Clone for CipherParam
impl Clone for CipherParam
Source§fn clone(&self) -> CipherParam
fn clone(&self) -> CipherParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CipherParam
impl Debug for CipherParam
Source§impl Default for CipherParam
impl Default for CipherParam
Source§fn default() -> CipherParam
fn default() -> CipherParam
Returns the “default value” for a type. Read more
Source§impl PartialEq for CipherParam
impl PartialEq for CipherParam
impl StructuralPartialEq for CipherParam
Auto Trait Implementations§
impl Freeze for CipherParam
impl RefUnwindSafe for CipherParam
impl Send for CipherParam
impl Sync for CipherParam
impl Unpin for CipherParam
impl UnwindSafe for CipherParam
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