pub enum KeyInfo {
None,
AgreedKey {
key_parameters: Vec<u8>,
key_ciphered_data: Vec<u8>,
},
}Expand description
The key-info field of a general-ciphering APDU (IEC 62056-5-3, 5.7.2.4).
It is a CHOICE; only the two variants used by DLMS symmetric-key transport
are modelled: absent (a pre-shared key is used) and agreed-key (an EC key
agreement supplies the session key).
Variants§
None
No key-info: the recipient already holds the symmetric key.
AgreedKey
Agreed-key ([2]): an EC key-agreement scheme derives the session key.
Trait Implementations§
impl Eq for KeyInfo
impl StructuralPartialEq for KeyInfo
Auto Trait Implementations§
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnsafeUnpin for KeyInfo
impl UnwindSafe for KeyInfo
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