Documentation ¶
Index ¶
Constants ¶
View Source
const ( SHA256 Algo = "SHA256" //SHA 256 RIPEMD160 = "RIPEMD160" //RIPEMD 160 SHA3256 = "SHA3256" //SHA3 256 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algo ¶
type Algo string
Represents a name of a particular hashing algorithm at a particluar length.
func ParseAlgo ¶
Returns the Algo corresponding to Name, returns an error if Name does not represent an existing Algo
func (Algo) New ¶
Returns a usable hash.Hash interface. If the receiver is not a valid name for a supported hash function, the method panics.
func (*Algo) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.