rncryptor-0.0.1.0: Haskell implementation of the RNCryptor file format

Safe HaskellNone
LanguageHaskell2010

Crypto.RNCryptor.Types

Documentation

data RNCryptorHeader Source

Constructors

RNCryptorHeader 

Fields

rncVersion :: !Word8

Data format version. Currently 3.

rncOptions :: !Word8

bit 0 - uses password

rncEncryptionSalt :: !ByteString

iff option includes "uses password"

rncHMACSalt :: !ByteString

iff options includes "uses password"

rncIV :: !AESIV

The initialisation vector The ciphertext is variable and encrypted in CBC mode

rncHMAC :: ByteString -> ByteString

The HMAC (32 bytes). This field is a continuation as the HMAC is at the end of the file.