summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/asymmetric.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-08-23 16:55:26 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-08-27 12:58:07 +0200
commite5746684e84377dd8828f6a5a8ab4c0eec73c3ec (patch)
tree5261ba9f497ec5ce51d47198742919673de3c893 /openpgp/src/crypto/asymmetric.rs
parent078c4d7ee16ea06977ec8cb7cf5571c880e9c710 (diff)
Convert markdown to intra-doc links.
- Apply cargo intraconv.
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r--openpgp/src/crypto/asymmetric.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs
index 3e5b5ddd..59268436 100644
--- a/openpgp/src/crypto/asymmetric.rs
+++ b/openpgp/src/crypto/asymmetric.rs
@@ -14,10 +14,10 @@ use crate::Result;
/// signing functions (e.g. [`SignatureBuilder::sign_standalone`]),
/// and likely many more places.
///
-/// [`Signer`]: ../serialize/stream/struct.Signer.html
-/// [`UserID::bind`]: ../packet/struct.UserID.html#method.bind
-/// [`SignatureBuilder`]: ../packet/signature/struct.SignatureBuilder.html
-/// [`SignatureBuilder::sign_standalone`]: ../packet/signature/struct.SignatureBuilder.html#method.sign_standalone
+/// [`Signer`]: super::serialize::stream::Signer
+/// [`UserID::bind`]: super::packet::UserID::bind()
+/// [`SignatureBuilder`]: super::packet::signature::SignatureBuilder
+/// [`SignatureBuilder::sign_standalone`]: super::packet::signature::SignatureBuilder::sign_standalone()
///
/// This is a low-level mechanism to produce an arbitrary OpenPGP
/// signature. Using this trait allows Sequoia to perform all
@@ -34,7 +34,6 @@ use crate::Result;
/// - [`KeyPair`]: In-memory keys.
/// - [`sequoia_rpc::gnupg::KeyPair`]: Connects to the `gpg-agent`.
///
-/// [`KeyPair`]: struct.KeyPair.html
/// [`sequoia_rpc::gnupg::KeyPair`]: https://docs.sequoia-pgp.org/sequoia_ipc/gnupg/struct.KeyPair.html
pub trait Signer {
/// Returns a reference to the public key.
@@ -71,7 +70,7 @@ impl Signer for Box<dyn Signer + Send + Sync> {
///
/// Used by [`PKESK::decrypt`] to decrypt session keys.
///
-/// [`PKESK::decrypt`]: ../packet/enum.PKESK.html#method.decrypt
+/// [`PKESK::decrypt`]: super::packet::PKESK::decrypt()
///
/// This is a low-level mechanism to decrypt an arbitrary OpenPGP
/// ciphertext. Using this trait allows Sequoia to perform all
@@ -88,7 +87,6 @@ impl Signer for Box<dyn Signer + Send + Sync> {
/// - [`KeyPair`]: In-memory keys.
/// - [`sequoia_rpc::gnupg::KeyPair`]: Connects to the `gpg-agent`.
///
-/// [`KeyPair`]: struct.KeyPair.html
/// [`sequoia_rpc::gnupg::KeyPair`]: https://docs.sequoia-pgp.org/sequoia_ipc/gnupg/struct.KeyPair.html
pub trait Decryptor {
/// Returns a reference to the public key.
@@ -106,8 +104,6 @@ pub trait Decryptor {
/// are available in memory, a `KeyPair` is a convenient
/// implementation of [`Signer`] and [`Decryptor`].
///
-/// [`Signer`]: trait.Signer.html
-/// [`Decryptor`]: trait.Decryptor.html
///
/// # Examples
///