pub enum KeyMaterial {
Bytes(Vec<u8>),
TransparentSymmetricKey(TransparentSymmetricKey),
TransparentDSAPrivateKey(TransparentDSAPrivateKey),
TransparentDSAPublicKey(TransparentDSAPublicKey),
TransparentRSAPrivateKey(TransparentRSAPrivateKey),
TransparentRSAPublicKey(TransparentRSAPublicKey),
TransparentDHPrivateKey(TransparentDHPrivateKey),
TransparentDHPublicKey(TransparentDHPublicKey),
Structure(Vec<u8>),
}Expand description
See KMIP 1.0 section 2.1.4 Key Value.
Variants§
Bytes(Vec<u8>)
TransparentSymmetricKey(TransparentSymmetricKey)
TransparentDSAPrivateKey(TransparentDSAPrivateKey)
TransparentDSAPublicKey(TransparentDSAPublicKey)
TransparentRSAPrivateKey(TransparentRSAPrivateKey)
TransparentRSAPublicKey(TransparentRSAPublicKey)
TransparentDHPrivateKey(TransparentDHPrivateKey)
TransparentDHPublicKey(TransparentDHPublicKey)
Structure(Vec<u8>)
Implementations§
Source§impl KeyMaterial
impl KeyMaterial
pub const TAG: Tag
pub fn fast_scan( scanner: &mut FastScanner<'_>, format: &KeyFormatType, ) -> Result<Self, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
Trait Implementations§
Source§impl Clone for KeyMaterial
impl Clone for KeyMaterial
Source§impl Debug for KeyMaterial
impl Debug for KeyMaterial
Source§impl Display for KeyMaterial
impl Display for KeyMaterial
impl Eq for KeyMaterial
Source§impl PartialEq for KeyMaterial
impl PartialEq for KeyMaterial
impl StructuralPartialEq for KeyMaterial
Auto Trait Implementations§
impl Forget for KeyMaterial
impl Freeze for KeyMaterial
impl RefUnwindSafe for KeyMaterial
impl Send for KeyMaterial
impl Sync for KeyMaterial
impl Unpin for KeyMaterial
impl UnsafeUnpin for KeyMaterial
impl UnwindSafe for KeyMaterial
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