Add some print statements for debugging

This commit is contained in:
Hocuri
2025-08-04 17:17:22 +02:00
parent a14b53e3ca
commit 13bbcbeb0e

View File

@@ -54,6 +54,11 @@ impl EncryptHelper {
let cursor = Cursor::new(&mut raw_message);
mail_to_encrypt.clone().write_part(cursor).ok();
println!(
"\nEncrypting pk:\n{}\n",
str::from_utf8(&raw_message).unwrap()
);
let ctext = pgp::pk_encrypt(raw_message, keyring, Some(sign_key), compress).await?;
Ok(ctext)
@@ -73,6 +78,11 @@ impl EncryptHelper {
let cursor = Cursor::new(&mut raw_message);
mail_to_encrypt.clone().write_part(cursor).ok();
println!(
"\nEncrypting symm:\n{}\n",
str::from_utf8(&raw_message).unwrap()
);
let ctext = pgp::encrypt_for_broadcast(raw_message, passphrase, sign_key, compress).await?;
Ok(ctext)