Versions in this module Expand all Collapse all v0 v0.0.3 Feb 27, 2017 v0.0.2 Feb 25, 2017 Changes in this version + const CertificateChainLengthBytes + const CertificateLengthBytes + const ExtensionsLengthBytes + const MaxCertificateLength + const MaxExtensionsLength + const PreCertificateLengthBytes + const SignatureLengthBytes + var ErrInvalidVersion error = sctError(1) + var ErrNotEnoughBuffer error = sctError(2) + func MarshalDigitallySigned(ds DigitallySigned) ([]byte, error) + func ReadTimestampedEntryInto(r io.Reader, t *TimestampedEntry) error + func SerializeSCT(sct SignedCertificateTimestamp) ([]byte, error) + func SerializeSCTHere(sct SignedCertificateTimestamp, here []byte) ([]byte, error) + func SerializeSCTSignatureInput(sct SignedCertificateTimestamp, entry LogEntry) ([]byte, error) + func SerializeSTHSignatureInput(sth SignedTreeHead) ([]byte, error) + type ASN1Cert []byte + func UnmarshalPrecertChainArray(b []byte) ([]ASN1Cert, error) + func UnmarshalX509ChainArray(b []byte) ([]ASN1Cert, error) + type AuditPath []MerkleTreeNode + type CTExtensions []byte + type ConsistencyProof []MerkleTreeNode + type DigitallySigned struct + HashAlgorithm HashAlgorithm + Signature []byte + SignatureAlgorithm SignatureAlgorithm + func UnmarshalDigitallySigned(r io.Reader) (*DigitallySigned, error) + func (d *DigitallySigned) FromBase64String(b64 string) error + func (d *DigitallySigned) UnmarshalJSON(b []byte) error + func (d DigitallySigned) Base64String() (string, error) + func (d DigitallySigned) MarshalJSON() ([]byte, error) + type HashAlgorithm byte + const MD5 + const None + const SHA1 + const SHA224 + const SHA256 + const SHA384 + const SHA512 + func (h HashAlgorithm) String() string + type LeafInput []byte + type LogEntry struct + Chain []ASN1Cert + Index int64 + Leaf MerkleTreeLeaf + Precert *Precertificate + Server string + X509Cert *x509.Certificate + type LogEntryType uint16 + const PrecertLogEntryType + const X509LogEntryType + func (e LogEntryType) String() string + type MerkleLeafType uint8 + const TimestampedEntryLeafType + func (m MerkleLeafType) String() string + type MerkleTreeLeaf struct + LeafType MerkleLeafType + TimestampedEntry TimestampedEntry + Version Version + func ReadMerkleTreeLeaf(r io.Reader) (*MerkleTreeLeaf, error) + func (m *MerkleTreeLeaf) X509Certificate() (*x509.Certificate, error) + type MerkleTreeNode []byte + type PreCert struct + IssuerKeyHash [issuerKeyHashLength]byte + TBSCertificate []byte + type Precertificate struct + IssuerKeyHash [issuerKeyHashLength]byte + Raw []byte + TBSCertificate x509.Certificate + type SHA256Hash [sha256.Size]byte + func PublicKeyFromPEM(b []byte) (crypto.PublicKey, SHA256Hash, []byte, error) + func (s *SHA256Hash) FromBase64String(b64 string) error + func (s *SHA256Hash) UnmarshalJSON(b []byte) error + func (s SHA256Hash) Base64String() string + func (s SHA256Hash) MarshalJSON() ([]byte, error) + type SignatureAlgorithm byte + const Anonymous + const DSA + const ECDSA + const RSA + func (s SignatureAlgorithm) String() string + type SignatureType uint8 + const CertificateTimestampSignatureType + const TreeHashSignatureType + func (st SignatureType) String() string + type SignatureVerifier struct + func NewSignatureVerifier(pk crypto.PublicKey) (*SignatureVerifier, error) + func (s SignatureVerifier) VerifySCTSignature(sct SignedCertificateTimestamp, entry LogEntry) error + func (s SignatureVerifier) VerifySTHSignature(sth SignedTreeHead) error + type SignedCertificateTimestamp struct + Extensions CTExtensions + LogID SHA256Hash + SCTVersion Version + Signature DigitallySigned + Timestamp uint64 + func DeserializeSCT(r io.Reader) (*SignedCertificateTimestamp, error) + func (s SignedCertificateTimestamp) String() string + func (sct SignedCertificateTimestamp) SerializedLength() (int, error) + type SignedTreeHead struct + LogID SHA256Hash + SHA256RootHash SHA256Hash + Timestamp uint64 + TreeHeadSignature DigitallySigned + TreeSize uint64 + Version Version + type TimestampedEntry struct + EntryType LogEntryType + Extensions CTExtensions + PrecertEntry PreCert + Timestamp uint64 + X509Entry ASN1Cert + type Version uint8 + const V1 + func (v Version) String() string