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::ocard::data::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::ocard::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::ocard::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 more