Struct openpgp_card::card_do::ExtendedCapabilities
source · pub struct ExtendedCapabilities { /* private fields */ }Expand description
Extended Capabilities [Spec section 4.4.3.7]
Implementations§
source§impl ExtendedCapabilities
impl ExtendedCapabilities
sourcepub fn secure_messaging(&self) -> bool
pub fn secure_messaging(&self) -> bool
Secure Messaging supported.
(This feature is currently only available in the SmartPGP implementation)
sourcepub fn get_challenge(&self) -> bool
pub fn get_challenge(&self) -> bool
Support for GET CHALLENGE.
(GET CHALLENGE generates a random number of a specified length on the smart card)
sourcepub fn max_len_challenge(&self) -> u16
pub fn max_len_challenge(&self) -> u16
Maximum length of random number that can be requested from the card (if GET CHALLENGE is supported).
If GET CHALLENGE is not supported, the coding is 0
sourcepub fn key_import(&self) -> bool
pub fn key_import(&self) -> bool
Support for Key Import
sourcepub fn pw_status_change(&self) -> bool
pub fn pw_status_change(&self) -> bool
PW Status changeable
(also see crate::card_do::PWStatusBytes)
sourcepub fn private_use_dos(&self) -> bool
pub fn private_use_dos(&self) -> bool
Support for Private use DOs
sourcepub fn algo_attrs_changeable(&self) -> bool
pub fn algo_attrs_changeable(&self) -> bool
Algorithm attributes changeable
(also see crate::algorithm::AlgorithmAttributes)
sourcepub fn max_len_cardholder_cert(&self) -> u16
pub fn max_len_cardholder_cert(&self) -> u16
Maximum length of Cardholder Certificates
sourcepub fn max_len_special_do(&self) -> Option<u16>
pub fn max_len_special_do(&self) -> Option<u16>
Maximum length of “special DOs” (Private Use, Login data, URL, Algorithm attributes, KDF etc.)
(OpenPGP card version 3.x only)
sourcepub fn pin_block_2_format_support(&self) -> Option<bool>
pub fn pin_block_2_format_support(&self) -> Option<bool>
(Private Use, Login data, URL, Algorithm attributes, KDF etc.)
(OpenPGP card version 3.x only)
sourcepub fn mse_command_support(&self) -> Option<bool>
pub fn mse_command_support(&self) -> Option<bool>
MANAGE SECURITY ENVIRONMENT supported (for DEC and AUT keys).
(See crate::Transaction::manage_security_environment)
(OpenPGP card version 3.x only)
Trait Implementations§
source§impl Clone for ExtendedCapabilities
impl Clone for ExtendedCapabilities
source§fn clone(&self) -> ExtendedCapabilities
fn clone(&self) -> ExtendedCapabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExtendedCapabilities
impl Debug for ExtendedCapabilities
source§impl Display for ExtendedCapabilities
impl Display for ExtendedCapabilities
source§impl PartialEq for ExtendedCapabilities
impl PartialEq for ExtendedCapabilities
source§fn eq(&self, other: &ExtendedCapabilities) -> bool
fn eq(&self, other: &ExtendedCapabilities) -> bool
self and other values to be equal, and is used
by ==.