Add get_pub_key()
This commit is contained in:
parent
13c8769ea3
commit
874c28b7ff
1 changed files with 9 additions and 0 deletions
|
@ -269,6 +269,15 @@ impl<'a> Open<'a> {
|
||||||
|
|
||||||
// ----------
|
// ----------
|
||||||
|
|
||||||
|
pub fn get_pub_key(
|
||||||
|
&mut self,
|
||||||
|
key_type: KeyType,
|
||||||
|
) -> Result<PublicKeyMaterial> {
|
||||||
|
self.card_app.get_pub_key(key_type).map_err(|e| e.into())
|
||||||
|
}
|
||||||
|
|
||||||
|
// ----------
|
||||||
|
|
||||||
/// Delete all state on this OpenPGP card
|
/// Delete all state on this OpenPGP card
|
||||||
pub fn factory_reset(&mut self) -> Result<()> {
|
pub fn factory_reset(&mut self) -> Result<()> {
|
||||||
self.card_app.factory_reset()
|
self.card_app.factory_reset()
|
||||||
|
|
Loading…
Reference in a new issue