diff options
Diffstat (limited to 'src/cipherstring.rs')
-rw-r--r-- | src/cipherstring.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 }) |