hOpenPGP-2.5.5: native Haskell implementation of OpenPGP (RFC4880)

Safe HaskellNone
LanguageHaskell2010

Codec.Encryption.OpenPGP.SecretKey

Synopsis

Documentation

decryptPrivateKey :: (PKPayload, SKAddendum) -> ByteString -> SKAddendum #

encryptPrivateKey :: ByteString -> IV -> SKAddendum -> ByteString -> SKAddendum #

8-octet salt, IV must be length of cipher blocksize

encryptPrivateKeyIO :: SKAddendum -> ByteString -> IO SKAddendum #

generates pseudo-random salt and IV

reencryptSecretKeyIO :: SecretKey -> ByteString -> IO SecretKey #