pub struct KeyBlock {
pub key_format_type: KeyFormatType,
pub key_compression_type: Option<KeyCompressionType>,
pub key_value: KeyValue,
pub cryptographic_algorithm: Option<CryptographicAlgorithm>,
pub cryptographic_length: Option<i32>,
pub key_wrapping_data: Option<()>,
}Expand description
See KMIP 1.0 section 2.1.3 Key Block.
Fields§
§key_format_type: KeyFormatType§key_compression_type: Option<KeyCompressionType>§key_value: KeyValue§cryptographic_algorithm: Option<CryptographicAlgorithm>§cryptographic_length: Option<i32>§key_wrapping_data: Option<()>Implementations§
Source§impl KeyBlock
impl KeyBlock
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§
impl Eq for KeyBlock
impl StructuralPartialEq for KeyBlock
Auto Trait Implementations§
impl Forget for KeyBlock
impl Freeze for KeyBlock
impl Move for KeyBlock
impl RefUnwindSafe for KeyBlock
impl Send for KeyBlock
impl Sync for KeyBlock
impl Unpin for KeyBlock
impl UnsafeUnpin for KeyBlock
impl UnwindSafe for KeyBlock
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