diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-08-23 16:55:26 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-08-27 12:58:07 +0200 |
commit | e5746684e84377dd8828f6a5a8ab4c0eec73c3ec (patch) | |
tree | 5261ba9f497ec5ce51d47198742919673de3c893 /openpgp/src/crypto/mod.rs | |
parent | 078c4d7ee16ea06977ec8cb7cf5571c880e9c710 (diff) |
Convert markdown to intra-doc links.
- Apply cargo intraconv.
Diffstat (limited to 'openpgp/src/crypto/mod.rs')
-rw-r--r-- | openpgp/src/crypto/mod.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs index 591d2c6f..be1c1e5a 100644 --- a/openpgp/src/crypto/mod.rs +++ b/openpgp/src/crypto/mod.rs @@ -7,7 +7,6 @@ //! in the API (e.g. [`Password`]). Advanced users may use these //! primitives to provide custom extensions to OpenPGP. //! -//! [`Password`]: struct.Password.html //! //! # Common Operations //! @@ -15,9 +14,9 @@ //! - *Create a session key*: Use [`SessionKey::new`]. //! - *Use secret keys*: See the [`KeyPair` example]. //! -//! [`Password::from`]: https://doc.rust-lang.org/std/convert/trait.From.html -//! [`SessionKey::new`]: struct.SessionKey.html#method.new -//! [`KeyPair` example]: struct.KeyPair.html#examples +//! [`Password::from`]: std::convert::From +//! [`SessionKey::new`]: SessionKey::new() +//! [`KeyPair` example]: KeyPair#examples use std::ops::{Deref, DerefMut}; use std::fmt; @@ -44,8 +43,8 @@ pub(crate) mod symmetric; /// Session keys can be generated using [`SessionKey::new`], or /// converted from various types using [`From`]. /// -/// [`SessionKey::new`]: #method.new -/// [`From`]: https://doc.rust-lang.org/std/convert/trait.From.html +/// [`SessionKey::new`]: SessionKey::new() +/// [`From`]: std::convert::From #[derive(Clone, PartialEq, Eq)] pub struct SessionKey(mem::Protected); assert_send_and_sync!(SessionKey); @@ -61,7 +60,7 @@ impl SessionKey { /// This creates a session key and encrypts it for a given /// recipient key producing a [`PKESK`] packet. /// - /// [`PKESK`]: ../packet/enum.PKESK.html + /// [`PKESK`]: super::packet::PKESK /// /// ``` /// # fn main() -> sequoia_openpgp::Result<()> { @@ -149,8 +148,7 @@ impl fmt::Debug for SessionKey { /// The password is encrypted in memory and only decrypted on demand. /// See [`mem::Encrypted`] for details. /// -/// [`From`]: https://doc.rust-lang.org/std/convert/trait.From.html -/// [`mem::Encrypted`]: mem/struct.Encrypted.html +/// [`From`]: std::convert::From /// /// # Examples /// |