diff --git a/openpgp-card-sequoia/src/lib.rs b/openpgp-card-sequoia/src/lib.rs index 55c5126..f19028e 100644 --- a/openpgp-card-sequoia/src/lib.rs +++ b/openpgp-card-sequoia/src/lib.rs @@ -106,8 +106,6 @@ pub fn public_key_material_to_key( key::UnspecifiedRole, > = Key4::import_public_ed25519(&ecc.data, time)?; - println!("k4 {:?}", k4); - Ok(Key::from(k4)) } else { // ECDSA @@ -133,8 +131,6 @@ pub fn public_key_material_to_key( &ecc.data, None, None, time, )?; - println!("k4 {:?}", k4); - Ok(Key::from(k4)) } else { // FIXME: just defining `hash` and `sym` is not diff --git a/openpgp-card/src/keys.rs b/openpgp-card/src/keys.rs index 5cf3818..e24d966 100644 --- a/openpgp-card/src/keys.rs +++ b/openpgp-card/src/keys.rs @@ -33,11 +33,9 @@ pub(crate) fn gen_key_with_metadata( ) -> Result<(PublicKeyMaterial, u32), OpenpgpCardError> { // set algo on card if it's Some if let Some(algo) = algo { - println!("set algo {:?}", algo); card_app .set_algorithm_attributes(key_type, algo)? .check_ok()?; - println!("set algo done"); } // algo @@ -87,7 +85,7 @@ fn tlv_to_pubkey(tlv: &Tlv, algo: &Algo) -> Result { } (None, None, Some(ec)) => { let data = ec.serialize(); - println!("EC --- len {}, data {:x?}", data.len(), data); + log::trace!("EC --- len {}, data {:x?}", data.len(), data); Ok(PublicKeyMaterial::E(EccPub { data, @@ -105,7 +103,7 @@ pub(crate) fn gen_key( card_app: &mut CardApp, key_type: KeyType, ) -> Result { - println!("gen key for {:?}", key_type); + println!(" Generate subkey for {:?}", key_type); // generate key let crt = get_crt(key_type)?;