Documentation
¶
Index ¶
- Constants
- type ShortChecksum
- type ShortLeaf
- type SigsumProof
- func (sp *SigsumProof) FromASCII(r io.Reader) error
- func (sp *SigsumProof) ToASCII(w io.Writer) error
- func (sp *SigsumProof) Verify(msg *crypto.Hash, submitKey *crypto.PublicKey, policy *policy.Policy) error
- func (sp *SigsumProof) VerifyNoCosignatures(msg *crypto.Hash, submitKey *crypto.PublicKey, logKey *crypto.PublicKey) error
Constants ¶
View Source
const ( SigsumProofVersion = 1 ShortChecksumSize = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortChecksum ¶
type ShortChecksum [ShortChecksumSize]byte
type ShortLeaf ¶
type ShortLeaf struct { ShortChecksum ShortChecksum Signature crypto.Signature KeyHash crypto.Hash }
Variant of types.Leaf, with truncated checksum.
type SigsumProof ¶
type SigsumProof struct { LogKeyHash crypto.Hash Leaf ShortLeaf TreeHead types.CosignedTreeHead Inclusion types.InclusionProof }
func (*SigsumProof) FromASCII ¶
func (sp *SigsumProof) FromASCII(r io.Reader) error
func (*SigsumProof) ToASCII ¶
func (sp *SigsumProof) ToASCII(w io.Writer) error
func (*SigsumProof) Verify ¶
Click to show internal directories.
Click to hide internal directories.