#[non_exhaustive]#[repr(u32)]pub enum BlockCipherMode {
Show 17 variants
CBC = 1,
ECB = 2,
PCBC = 3,
CFB = 4,
OFB = 5,
CTR = 6,
CMAC = 7,
CCM = 8,
GCM = 9,
CBC_MAC = 10,
XTS = 11,
AESKeyWrapPadding = 12,
NISTKeyWrap = 13,
X9_102_AESKW = 14,
X9_102_TDKW = 15,
X9_102_AKW1 = 16,
X9_102_AKW2 = 17,
}Expand description
See KMIP 1.0 section 9.1.3.2.13 Block Cipher Mode Enumeration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CBC = 1
ECB = 2
PCBC = 3
CFB = 4
OFB = 5
CTR = 6
CMAC = 7
CCM = 8
GCM = 9
CBC_MAC = 10
XTS = 11
AESKeyWrapPadding = 12
NISTKeyWrap = 13
X9_102_AESKW = 14
X9_102_TDKW = 15
X9_102_AKW1 = 16
X9_102_AKW2 = 17
Implementations§
Source§impl BlockCipherMode
impl BlockCipherMode
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for BlockCipherMode
impl Clone for BlockCipherMode
impl Copy for BlockCipherMode
Source§impl Debug for BlockCipherMode
impl Debug for BlockCipherMode
Source§impl Display for BlockCipherMode
impl Display for BlockCipherMode
impl Eq for BlockCipherMode
Source§impl Ordinalize for BlockCipherMode
impl Ordinalize for BlockCipherMode
Source§const VARIANT_COUNT: usize = 17usize
const VARIANT_COUNT: usize = 17usize
The count of variants.
Source§type VariantType = u32
type VariantType = u32
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u32) -> Self
unsafe fn from_ordinal_unsafe(number: u32) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u32) -> Option<Self>
fn from_ordinal(number: u32) -> Option<Self>
Obtain a variant based on an integer number.
Source§impl PartialEq for BlockCipherMode
impl PartialEq for BlockCipherMode
impl StructuralPartialEq for BlockCipherMode
Auto Trait Implementations§
impl Forget for BlockCipherMode
impl Freeze for BlockCipherMode
impl Move for BlockCipherMode
impl RefUnwindSafe for BlockCipherMode
impl Send for BlockCipherMode
impl Sync for BlockCipherMode
impl Unpin for BlockCipherMode
impl UnsafeUnpin for BlockCipherMode
impl UnwindSafe for BlockCipherMode
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