pub struct GeneralCiphering {
pub transaction_id: Vec<u8>,
pub originator_system_title: Vec<u8>,
pub recipient_system_title: Vec<u8>,
pub date_time: Vec<u8>,
pub other_information: Vec<u8>,
pub key_info: KeyInfo,
pub ciphered_content: Vec<u8>,
}Expand description
A general-ciphering APDU ([221]).
Fields§
§transaction_id: Vec<u8>Transaction-id identifying the exchange between the two parties.
originator_system_title: Vec<u8>System-title of the originator.
recipient_system_title: Vec<u8>System-title of the recipient (empty for broadcast).
date_time: Vec<u8>Optional date-time (empty octet-string when unused).
other_information: Vec<u8>Optional other-information (empty octet-string when unused).
key_info: KeyInfoKey-info: absent (pre-shared key) or an agreed-key CHOICE.
ciphered_content: Vec<u8>Ciphered content: SC ‖ IC ‖ ciphertext ‖ tag.
Implementations§
Source§impl GeneralCiphering
impl GeneralCiphering
Sourcepub fn decode(bytes: &[u8]) -> Result<GeneralCiphering, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<GeneralCiphering, ServiceError>
Decodes the APDU. The key-info CHOICE is supported for absent and
agreed-key; other CHOICE variants yield ServiceError::InvalidData.
Trait Implementations§
Source§impl Clone for GeneralCiphering
impl Clone for GeneralCiphering
Source§fn clone(&self) -> GeneralCiphering
fn clone(&self) -> GeneralCiphering
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneralCiphering
impl Debug for GeneralCiphering
impl Eq for GeneralCiphering
Source§impl PartialEq for GeneralCiphering
impl PartialEq for GeneralCiphering
impl StructuralPartialEq for GeneralCiphering
Auto Trait Implementations§
impl Freeze for GeneralCiphering
impl RefUnwindSafe for GeneralCiphering
impl Send for GeneralCiphering
impl Sync for GeneralCiphering
impl Unpin for GeneralCiphering
impl UnsafeUnpin for GeneralCiphering
impl UnwindSafe for GeneralCiphering
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