Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algorithms ¶
type Algorithms struct { Supported map[string]HashAlgorithm Default string Current HashAlgorithm }
Algorithms implements group of one typed crypto algorithms
func (*Algorithms) RandomSupported ¶
func (algos *Algorithms) RandomSupported() string
RandomSupported get random supported crypto hashing algorithm
func (*Algorithms) SetAlgorithm ¶
func (algos *Algorithms) SetAlgorithm(algoStr string)
SetAlgorithm setting crypto hashing algorithm for interaction from given string
func (*Algorithms) ValidateAlgorithm ¶
func (algos *Algorithms) ValidateAlgorithm(check string) bool
ValidateAlgorithm check if the given algorithm is currently supported
Click to show internal directories.
Click to hide internal directories.