|
| Network.AdHoc.Encryption | | Maintainer | Henning Guenther |
|
|
|
| Description |
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Encrypted a |
| Represents encrypted data.
| | Constructors | | Encrypted | | | encryptedIV :: Word64 | | | encryptedData :: ByteString | |
|
| Instances | |
|
|
| class Encryptable a where |
| A class of types that can be encrypted with 64 bit keys and initial vectors.
| | | Methods | | encrypt | | :: Word64 | The key to use
| | -> Word64 | The initial vector
| | -> a | The object to be encrypted
| | -> Encrypted a | | | Encrypts an object into an Encrypted object
|
| | | decrypt | | :: Word64 | The key to use
| | -> Encrypted a | The encrypted content to be decrypted
| | -> Maybe a | | | Reverses the encrypt operation
|
|
| | Instances | |
|
|
| data RSAEncrypted a |
| Represents data encrypted by RSA.
| | Constructors | | Instances | |
|
|
| class RSAEncryptable a where |
| A class of types that can be encrypted with RSA.
| | | Methods | | rsaEncrypt | | :: RandomGen g | | | => g | Random generator to generate padding
| | -> Certificate | The Certificate to use for encryption
| | -> a | Data to be encrypted
| | -> RSAEncrypted a | |
| | | rsaDecrypt :: PrivateKey -> RSAEncrypted a -> Maybe a |
| | Instances | |
|
|
| pack64 :: [Word8] -> [Word64] |
| Packs a stream of 8-bit Words into a stream of 64-bit Words.
|
|
| unpack64 :: [Word64] -> [Word8] |
| Converts a list of 64-bit words into a list of 8-bit words.
|
|
| generateDESKey :: RandomGen g => g -> (Word64, g) |
| Randomly creates a key for DES.
|
|
| Produced by Haddock version 0.8 |