From 0f2d4661bc4a0cdb0be9ba17449249f910c20229 Mon Sep 17 00:00:00 2001 From: Jake Swenson Date: Fri, 24 Jul 2020 18:48:19 -0700 Subject: Fixing ciphertype 6 support --- src/cipherstring.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cipherstring.rs b/src/cipherstring.rs index 7aaaf9f..151dea5 100644 --- a/src/cipherstring.rs +++ b/src/cipherstring.rs @@ -66,7 +66,8 @@ impl CipherString { mac, }) } - 4 => { + 4 | 6 => { + let contents = contents.split("|").next().unwrap(); let ciphertext = base64::decode(contents) .context(crate::error::InvalidBase64)?; Ok(Self::Asymmetric { ciphertext }) -- cgit v1.2.3-54-g00ecf