Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeySet ¶
type KeySet[T Primitive] struct { // contains filtered or unexported fields }
func NewInsecureKeyset ¶
func NewInsecureKeyset[T Primitive](key []byte, constructor NewPrimitive[T]) KeySet[T]
func (*KeySet[T]) GetPrimitive ¶
func (*KeySet[T]) GetPrimitiveFunc ¶
func (*KeySet[T]) GetPrimitiveWithKey ¶ added in v1.5.9
func (*KeySet[T]) GetPrimitiveWithKeyFunc ¶ added in v1.5.9
type NewPrimitive ¶
type Primitive ¶
type Primitive interface { PrimitiveAES | PrimitiveHMAC }
type PrimitiveAES ¶
func NewAEAS ¶
func NewAEAS(key []byte) (p PrimitiveAES, err error)
type PrimitiveHMAC ¶
func NewHMAC ¶
func NewHMAC(key []byte) (p PrimitiveHMAC, err error)
Click to show internal directories.
Click to hide internal directories.