Documentation
¶
Index ¶
Constants ¶
const MaxSize = 1<<48 - 1
MaxSize is the largest size of tree that can exist, per Section 5.2 of draft-ietf-plants-merkle-tree-certs-07:
> Each issuance log describes an append-only sequence of at most 2^48-1 entries
The max size is 2^48-1, rather than 2^48 as one might expect, because a subtree is represented by the half-open interval [start, end), meaning that `end` is one greater than the largest entry index in the subtree. If the max size of a tree were 2^48, the last entry in that tree would have an entry index of 2^48-1, and a subtree containing that last entry would be described by the pair [xx, 2^48). But the value `end` must fit in 48 bits, and therefore has a maximum value of 2^48-1. Thus we conclude that the maximum entry index must be 2^48-2, and the maximum tree size is 2^48-1.
Variables ¶
This section is empty.
Functions ¶
func CheckName ¶ added in v0.20261105.0
CheckName returns an error if name does not follow the cosigner name construction in https://c2sp.org/tlog-cosignature#cosigners, which log origins also follow: a non-empty UTF-8 string of at most 255 bytes with no Unicode spaces, plus signs, or control characters below U+0020.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cosigned implements CosignedSubtree from https://ietf-plants-wg.github.io/merkle-tree-certs/draft-ietf-plants-merkle-tree-certs.html#section-5.3.1.
|
Package cosigned implements CosignedSubtree from https://ietf-plants-wg.github.io/merkle-tree-certs/draft-ietf-plants-merkle-tree-certs.html#section-5.3.1. |
|
Package entry defines types related to TBSCertificateLogEntry and MTCLogEntry from https://ietf-plants-wg.github.io/merkle-tree-certs/draft-ietf-plants-merkle-tree-certs.html#name-log-entries, and the entry bundle encoding from https://github.com/C2SP/C2SP/blob/main/tlog-tiles.md#log-entries
|
Package entry defines types related to TBSCertificateLogEntry and MTCLogEntry from https://ietf-plants-wg.github.io/merkle-tree-certs/draft-ietf-plants-merkle-tree-certs.html#name-log-entries, and the entry bundle encoding from https://github.com/C2SP/C2SP/blob/main/tlog-tiles.md#log-entries |
|
Package proof implements the MTCProof and Cosignature types from https://ietf-plants-wg.github.io/merkle-tree-certs/draft-ietf-plants-merkle-tree-certs.html#name-certificate-format.
|
Package proof implements the MTCProof and Cosignature types from https://ietf-plants-wg.github.io/merkle-tree-certs/draft-ietf-plants-merkle-tree-certs.html#name-certificate-format. |
|
Package pubkey implements functions for managing the public keys that correspond to TBSCertificateLogEntries.
|
Package pubkey implements functions for managing the public keys that correspond to TBSCertificateLogEntries. |
|
Package tiles implements https://c2sp.org/tlog-tiles.
|
Package tiles implements https://c2sp.org/tlog-tiles. |