Documentation
¶
Overview ¶
Package mixkey provides persistent mix keys and associated utilities.
Index ¶
- Constants
- type MixKey
- func (k *MixKey) Deref()
- func (k *MixKey) Epoch() uint64
- func (k *MixKey) IsReplay(rawTag []byte) bool
- func (k *MixKey) PrivateKey() interface{}
- func (k *MixKey) PublicBytes() []byte
- func (k *MixKey) PublicKey() (nike.PublicKey, kem.PublicKey)
- func (k *MixKey) Ref()
- func (k *MixKey) SetUnlinkIfExpired(b bool)
Constants ¶
View Source
const ( // TagLength is the replay tag length in bytes. TagLength = sha512.Size256 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MixKey ¶
MixKey is a Katzenpost server mix key.
func (*MixKey) Deref ¶
func (k *MixKey) Deref()
Deref reduces the refcount by one, and closes the key if the refcount hits 0.
func (*MixKey) IsReplay ¶
IsReplay marks a given replay tag as seen, and returns true iff the tag has been seen previously (Test and Set).
func (*MixKey) PrivateKey ¶
func (k *MixKey) PrivateKey() interface{}
PrivateKey returns the private component of the key.
func (*MixKey) PublicBytes ¶
PublicBytes returns the public key in raw bytes.
func (*MixKey) SetUnlinkIfExpired ¶
SetUnlinkIfExpired sets if the key will be deleted when closed if it is expired.
Click to show internal directories.
Click to hide internal directories.