Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SDMF_IV = SDMF_IV (IV AES128)
- data Data = Data {
- unData :: AES128
- dataKeyBytes :: ScrubbedBytes
- newtype WriteEnabler = WriteEnabler ScrubbedBytes
- newtype WriteEnablerMaster = WriteEnablerMaster ScrubbedBytes
- newtype StorageIndex = StorageIndex {}
- data Read = Read {
- unRead :: AES128
- readKeyBytes :: ScrubbedBytes
- data Write = Write {
- unWrite :: AES128
- writeKeyBytes :: ScrubbedBytes
- newtype Signature = Signature {
- unSignature :: PrivateKey
- newtype KeyPair = KeyPair {
- toPrivateKey :: PrivateKey
- toSignatureKey :: KeyPair -> Signature
- toVerificationKey :: KeyPair -> Verification
- deriveWriteKey :: Signature -> Maybe Write
- deriveReadKey :: Write -> Maybe Read
- deriveDataKey :: SDMF_IV -> Read -> Maybe Data
- deriveStorageIndex :: Read -> StorageIndex
- deriveWriteEnablerMaster :: Write -> WriteEnablerMaster
- deriveWriteEnabler :: ByteString -> WriteEnablerMaster -> WriteEnabler
Documentation
SDMF_IV (IV AES128) |
Data | |
|
newtype WriteEnabler Source #
WriteEnabler ScrubbedBytes |
newtype WriteEnablerMaster Source #
WriteEnablerMaster ScrubbedBytes |
newtype StorageIndex Source #
Instances
Eq StorageIndex Source # | |
Defined in Tahoe.SDMF.Internal.Keys (==) :: StorageIndex -> StorageIndex -> Bool # (/=) :: StorageIndex -> StorageIndex -> Bool # | |
Ord StorageIndex Source # | |
Defined in Tahoe.SDMF.Internal.Keys compare :: StorageIndex -> StorageIndex -> Ordering # (<) :: StorageIndex -> StorageIndex -> Bool # (<=) :: StorageIndex -> StorageIndex -> Bool # (>) :: StorageIndex -> StorageIndex -> Bool # (>=) :: StorageIndex -> StorageIndex -> Bool # max :: StorageIndex -> StorageIndex -> StorageIndex # min :: StorageIndex -> StorageIndex -> StorageIndex # | |
Show StorageIndex Source # | |
Defined in Tahoe.SDMF.Internal.Keys showsPrec :: Int -> StorageIndex -> ShowS # show :: StorageIndex -> String # showList :: [StorageIndex] -> ShowS # |
Read | |
|
Write | |
|
KeyPair | |
|
toSignatureKey :: KeyPair -> Signature Source #
deriveWriteKey :: Signature -> Maybe Write Source #
Compute the write key for a given signature key for an SDMF share.
deriveReadKey :: Write -> Maybe Read Source #
Compute the read key for a given write key for an SDMF share.
deriveDataKey :: SDMF_IV -> Read -> Maybe Data Source #
Compute the data encryption/decryption key for a given read key for an SDMF share.
deriveStorageIndex :: Read -> StorageIndex Source #
Compute the storage index for a given read key for an SDMF share.
deriveWriteEnablerMaster :: Write -> WriteEnablerMaster Source #
Derive the "write enabler master" secret for a given write key for an SDMF share.
deriveWriteEnabler :: ByteString -> WriteEnablerMaster -> WriteEnabler Source #
Derive the "write enabler" secret for a given peer and "write enabler master" for an SDMF share.