cleanup
This commit is contained in:
parent
0d0a796d63
commit
016a5af853
1 changed files with 3 additions and 3 deletions
|
@ -197,10 +197,10 @@ encrypt cmd c cipher = case cipher of
|
||||||
- Reader action. -}
|
- Reader action. -}
|
||||||
decrypt :: (MonadIO m, MonadMask m, LensGpgEncParams c) => Gpg.GpgCmd -> c -> Cipher -> Feeder -> Reader m a -> m a
|
decrypt :: (MonadIO m, MonadMask m, LensGpgEncParams c) => Gpg.GpgCmd -> c -> Cipher -> Feeder -> Reader m a -> m a
|
||||||
decrypt cmd c cipher = case cipher of
|
decrypt cmd c cipher = case cipher of
|
||||||
Cipher{} -> Gpg.feedRead cmd params' $ cipherPassphrase cipher
|
Cipher{} -> Gpg.feedRead cmd params $ cipherPassphrase cipher
|
||||||
MacOnlyCipher{} -> Gpg.pipeLazy cmd params'
|
MacOnlyCipher{} -> Gpg.pipeLazy cmd params
|
||||||
where
|
where
|
||||||
params' = Param "--decrypt" : getGpgDecParams c
|
params = Param "--decrypt" : getGpgDecParams c
|
||||||
|
|
||||||
macWithCipher :: Mac -> Cipher -> String -> String
|
macWithCipher :: Mac -> Cipher -> String -> String
|
||||||
macWithCipher mac c = macWithCipher' mac (cipherMac c)
|
macWithCipher mac c = macWithCipher' mac (cipherMac c)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue