summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 15e9cb9d..7b356dba 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -2435,6 +2435,10 @@ impl<'a> Encryptor<'a> {
/// message.finalize()?;
/// # Ok(()) }
/// ```
+ // Function hidden from the public API due to
+ // https://gitlab.com/sequoia-pgp/sequoia/-/issues/550
+ // It is used only for tests so that it does not bit-rot.
+ #[cfg(test)]
pub fn aead_algo(mut self, algo: AEADAlgorithm) -> Self {
self.aead_algo = Some(algo);
self