Versions in this module Expand all Collapse all v0 v0.1.0 Oct 13, 2020 Changes in this version + const Version + const Version0 + const Version1 + var DefaultHash = sha512.New + func VersionFormat(version ProtocolVersion, keyID KeyID) string + func VersionParse(str string) (ProtocolVersion, KeyID) + type HashFunc func() hash.Hash + func HashFromVersion(version ProtocolVersion) HashFunc + type KeyID uint + type Keys struct + KeyID KeyID + Version ProtocolVersion + func DefaultKeys(info SecureInfo, keyID KeyID) *Keys + func NewKeys(info SecureInfo, version ProtocolVersion, keyID KeyID) *Keys + func NewKeysWithHashFunction(info SecureInfo, version ProtocolVersion, keyID KeyID, hash HashFunc) *Keys + func (p *Keys) SecureIDFromValue(value Value) (SecureID, error) + func (p *Keys) ValueFromSecureID(secureID SecureID) (Value, error) + type ProtocolVersion string + type SecureID struct + Check string + Data string + Version string + func SecureIDFromValue(info SecureInfo, version ProtocolVersion, keyID KeyID, value Value) (SecureID, error) + func (p *SecureID) Value(info SecureInfo, secureID SecureID) (Value, error) + type SecureInfo struct + Context string + Seed Seed + type Seed []byte + type Value uint64