Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SDMF_IV = SDMF_IV (IV AES128)
- data Data = Data {}
- newtype WriteEnabler = WriteEnabler ScrubbedBytes
- newtype WriteEnablerMaster = WriteEnablerMaster ScrubbedBytes
- newtype StorageIndex = StorageIndex {}
- data Read = Read {}
- data Write = Write {}
- newtype Signature = Signature {}
- newtype KeyPair = KeyPair {}
- 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
newtype WriteEnabler Source #
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 # |
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.