summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-01-02 14:56:58 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-01-02 14:56:58 +0100
commit3d0ad24698b0d3ec9e43114aa3110d6b28f720df (patch)
tree7c5d204832c5abea3b40302755ea589bbf654645 /openpgp
parent723a7718ad0d89e138bbb0f7f7f8500d773c827f (diff)
openpgp: Improve documentation.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/crypto/asymmetric.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs
index 9a497f9a..9c8a1ae6 100644
--- a/openpgp/src/crypto/asymmetric.rs
+++ b/openpgp/src/crypto/asymmetric.rs
@@ -7,6 +7,11 @@ use constants::HashAlgorithm;
use Result;
/// Creates a signature.
+///
+/// This is a low-level mechanism to produce an arbitrary OpenPGP
+/// signature. Using this trait allows Sequoia to perform all
+/// operations involving signing to use a variety of secret key
+/// storage mechanisms (e.g. smart cards).
pub trait Signer {
/// Returns a reference to the public key.
fn public(&self) -> &Key;