tahoe-ssk-0.3.0.0: An implementation of the Tahoe-LAFS SSK cryptographic protocols
Safe HaskellNone
LanguageHaskell2010

Tahoe.SDMF.Internal.Capability

Description

Structured representations of SDMF capabilities.

Synopsis

Documentation

data SDMF Source #

Any kind of SDMF capability.

Instances

Instances details
Eq SDMF Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

Methods

(==) :: SDMF -> SDMF -> Bool #

(/=) :: SDMF -> SDMF -> Bool #

Show SDMF Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

Methods

showsPrec :: Int -> SDMF -> ShowS #

show :: SDMF -> String #

showList :: [SDMF] -> ShowS #

ConfidentialShowable SDMF Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

data Verifier Source #

A verify capability for an SDMF object.

data Reader Source #

A read capability for an SDMF object.

Constructors

Reader 

Instances

Instances details
Eq Reader Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

Methods

(==) :: Reader -> Reader -> Bool #

(/=) :: Reader -> Reader -> Bool #

Ord Reader Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

Show Reader Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

ConfidentialShowable Reader Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

data Writer Source #

A write capability for an SDMF object.

Constructors

Writer 

Instances

Instances details
Eq Writer Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

Methods

(==) :: Writer -> Writer -> Bool #

(/=) :: Writer -> Writer -> Bool #

Ord Writer Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

Show Writer Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

ConfidentialShowable Writer Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Capability

deriveReader :: Write -> Digest' SHA256d -> Maybe Reader Source #

Diminish a write key to a read key and wrap it in a reader capability.

deriveVerifier :: Read -> Digest' SHA256d -> Verifier Source #

Diminish a read key to a verify key and wrap it in a verifier capability.

pCapability :: Parser SDMF Source #

A parser for any kind of SDMF capability type.

pVerifier :: Parser Verifier Source #

A parser for an SDMF verifier capability.

pReader :: Parser Reader Source #

A parser for an SDMF reader capability.

pWriter :: Parser Writer Source #

A parser for an SDMF writer capability.

pPieces Source #

Arguments

:: Text

The prefix to expect.

-> (ByteString -> a)

A function to convert the first bytestring to a result value.

-> Parser (a, Digest' SHA256d)

A parser for the two pieces of the SDMF capability.

A parser for two base32-encoded bytestrings with some given prefix, formatted as they are in the string representation of an SDMF capability.

pBase32 Source #

Arguments

:: [Char]

The alphabet to use. For example, *rfc3548Alphabet*.

-> Word16

The number of bits in the encoded byte string.

-> Parser ByteString

A parser for the byte string. Strings that are not valid base32 will be rejected. Strings that are the wrong length are *not necessarily* currently rejected! Please fix that, somebody.

A parser combinator for an arbitrary byte string of a fixed length, encoded using base32.

TODO: Avoid duplicating this implementation here and in tahoe-chk.

rfc3548Alphabet :: [Char] Source #

The RFC3548 standard alphabet used by Gnutella, Content-Addressable Web, THEX, Bitzi, Web-Calculus...

dangerRealShow :: SDMF -> Text Source #

Deprecated: Use the ConfidentialShowable instance

Show an SDMF capability, including all secret information.