Versions in this module Expand all Collapse all v0 v0.1.0 Oct 13, 2020 Changes in this version + const BlockSize + func Checksum(hash func() hash.Hash, key, data []byte) []byte + func FromUUID(data string) []byte + func ReverseBytes(s []byte) []byte + func ToUUID(data []byte) uuid.UUID + func Verify(hash func() hash.Hash, key, data, checksum []byte) bool + type BlockData [BlockSize]byte + func HmacBlock(hash func() hash.Hash, key, data []byte) BlockData + func (p *BlockData) Store(value interface{}) error + func (p *BlockData) StoreBytes(data []byte) error + func (p *BlockData) StoreUInt64(value uint64) error + func (p *BlockData) UInt64() uint64 + func (p BlockData) String() string + type HkdfKeyGenerator struct + func (p *HkdfKeyGenerator) NextKey() ([]byte, error) + type KeyGenerator interface + NextKey func() ([]byte, error) + func CreateKeyGenerator(hash func() hash.Hash, keyInfo KeyInfo) KeyGenerator + type KeyInfo struct + Info []byte + Salt []byte + Secret []byte + func (p *KeyInfo) Reverse() + func (p *KeyInfo) Valid() bool