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

Tahoe.SDMF.Internal.Share

Description

Deal with details related to the structural layout of an SDMF share.

Synopsis

Documentation

newtype HashChain Source #

Constructors

HashChain 

Fields

Instances

Instances details
Eq HashChain Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

Show HashChain Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

Semigroup HashChain Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

Binary HashChain Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

data Share Source #

Structured representation of a single version SDMF share.

See Tahoe-LAFS "mutable" specification document, section title "SDMF Slot Format".

Since the only version of SDMF that is specified uses version 0, this implicitly represents a version 0 SDMF. If new versions of SDMF are specified then new constructors may be added.

Constructors

Share 

Fields

Instances

Instances details
Eq Share Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

Methods

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

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

Show Share Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

Methods

showsPrec :: Int -> Share -> ShowS #

show :: Share -> String #

showList :: [Share] -> ShowS #

Binary Share Source # 
Instance details

Defined in Tahoe.SDMF.Internal.Share

Methods

put :: Share -> Put #

get :: Get Share #

putList :: [Share] -> Put #

getSubjectPublicKeyInfo :: Get PublicKey Source #

Read an X.509v3-encoded SubjectPublicKeyInfo structure carrying an ASN.1 DER encoded RSA public key.

signatureKeyToBytes :: PrivateKey -> ByteString Source #

Encode a private key to the Tahoe-LAFS canonical bytes representation - X.509 SubjectPublicKeyInfo of the ASN.1 DER serialization of an RSA PublicKey.