Documentation ¶
Overview ¶
Package rfc6962 provides hashing functionality according to RFC6962.
Index ¶
Constants ¶
View Source
const ( RFC6962LeafHashPrefix = 0 RFC6962NodeHashPrefix = 1 )
Domain separation prefixes
Variables ¶
View Source
var DefaultHasher = New(crypto.SHA256)
DefaultHasher is a SHA256 based LogHasher.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
Hasher implements the RFC6962 tree hashing algorithm.
func (*Hasher) HashChildren ¶
HashChildren returns the inner Merkle tree node hash of the the two child nodes l and r. The hashed structure is NodeHashPrefix||l||r.
Click to show internal directories.
Click to hide internal directories.