Struct rust_cryptoauthlib::CipherParam
source · [−]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
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CipherParam
impl Send for CipherParam
impl Sync for CipherParam
impl Unpin for CipherParam
impl UnwindSafe for CipherParam
Blanket Implementations
Mutably borrows from an owned value. Read more