mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
Improve documentation and comments
This commit is contained in:
committed by
holger krekel
parent
47f8da6532
commit
f778957caf
@@ -1,3 +1,5 @@
|
||||
//! OpenPGP helper module
|
||||
|
||||
use std::collections::{BTreeMap, HashSet};
|
||||
use std::convert::TryInto;
|
||||
use std::io::Cursor;
|
||||
@@ -106,6 +108,8 @@ fn select_pk_for_encryption(key: &SignedPublicKey) -> Option<&SignedPublicSubKey
|
||||
true)
|
||||
}
|
||||
|
||||
/// Encrypts `plain` text using `public_keys_for_encryption`
|
||||
/// and signs it using `private_key_for_signing`.
|
||||
pub fn pk_encrypt(
|
||||
plain: &[u8],
|
||||
public_keys_for_encryption: &Keyring,
|
||||
|
||||
Reference in New Issue
Block a user