pub struct AppRelatedData {
pub aid: Vec<u8>,
pub algo_attr_sig: Vec<u8>,
pub algo_attr_dec: Vec<u8>,
pub algo_attr_aut: Vec<u8>,
pub pw_status: PwStatus,
pub fingerprint_sig: Fingerprint,
pub fingerprint_dec: Fingerprint,
pub fingerprint_aut: Fingerprint,
}Expand description
Selected fields pulled out of the Application Related Data (6E) object.
Algorithm-attribute blobs (C1/C2/C3) are kept raw; the first byte (the
algorithm id, e.g. 01 = RSA, 12 = ECDH, 13 = ECDSA, 16 = EdDSA) is
exposed via AppRelatedData::sig_algo_id and friends.
Fields§
§aid: Vec<u8>Full AID bytes from 4F (typically 16 bytes).
algo_attr_sig: Vec<u8>Raw algorithm attributes for the signature key (C1).
algo_attr_dec: Vec<u8>Raw algorithm attributes for the decryption key (C2).
algo_attr_aut: Vec<u8>Raw algorithm attributes for the authentication key (C3).
pw_status: PwStatusPW status (C4), parsed.
fingerprint_sig: FingerprintSignature-key fingerprint (C5, bytes 0..20).
fingerprint_dec: FingerprintDecryption-key fingerprint (C5, bytes 20..40).
fingerprint_aut: FingerprintAuthentication-key fingerprint (C5, bytes 40..60).
Implementations§
Source§impl AppRelatedData
impl AppRelatedData
Sourcepub fn sig_algo_id(&self) -> Option<u8>
pub fn sig_algo_id(&self) -> Option<u8>
Algorithm id (first byte) of the signature-key attributes, if any.
Sourcepub fn dec_algo_id(&self) -> Option<u8>
pub fn dec_algo_id(&self) -> Option<u8>
Algorithm id (first byte) of the decryption-key attributes, if any.
Sourcepub fn aut_algo_id(&self) -> Option<u8>
pub fn aut_algo_id(&self) -> Option<u8>
Algorithm id (first byte) of the authentication-key attributes, if any.
Trait Implementations§
Source§impl Clone for AppRelatedData
impl Clone for AppRelatedData
Source§fn clone(&self) -> AppRelatedData
fn clone(&self) -> AppRelatedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppRelatedData
impl Debug for AppRelatedData
impl Eq for AppRelatedData
Source§impl PartialEq for AppRelatedData
impl PartialEq for AppRelatedData
Source§fn eq(&self, other: &AppRelatedData) -> bool
fn eq(&self, other: &AppRelatedData) -> bool
self and other values to be equal, and is used by ==.