Safe Haskell | None |
---|---|
Language | Haskell2010 |
Deal with details related to the structural layout of an SDMF share.
Synopsis
- hashSize :: Int
- newtype HashChain = HashChain {
- hashChain :: [(Word16, ByteString)]
- data Share = Share {
- shareSequenceNumber :: Word64
- shareRootHash :: ByteString
- shareIV :: SDMF_IV
- shareTotalShares :: Word8
- shareRequiredShares :: Word8
- shareSegmentSize :: Word64
- shareDataLength :: Word64
- shareVerificationKey :: Verification
- shareSignature :: ByteString
- shareHashChain :: HashChain
- shareBlockHashTree :: MerkleTree ByteString SHA256d
- shareData :: ByteString
- shareEncryptedPrivateKey :: ByteString
- getSubjectPublicKeyInfo :: Get PublicKey
- signatureKeyToBytes :: PrivateKey -> ByteString
Documentation
HashChain | |
|
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.
Share | |
|
Instances
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.