diff options
author | Jake Swenson <jake@jakeswenson.com> | 2020-07-24 18:48:19 -0700 |
---|---|---|
committer | Jake Swenson <jake@jakeswenson.com> | 2020-07-24 18:48:19 -0700 |
commit | 0f2d4661bc4a0cdb0be9ba17449249f910c20229 (patch) | |
tree | f8afb6690aa6b2e61a618fd4bf888fad26f64527 /src | |
parent | 5389bfcc8fa87a9362aa1e154ca9e52074f794b5 (diff) | |
download | rbw-0f2d4661bc4a0cdb0be9ba17449249f910c20229.tar.gz rbw-0f2d4661bc4a0cdb0be9ba17449249f910c20229.zip |
Fixing ciphertype 6 support
Diffstat (limited to 'src')
-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 }) |