Documentation
¶
Overview ¶
Package blake2 implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- func DefaultConfig() *types.Config
- func DefaultParams() interfaces.Params
- func NewBlake2(algType types.Type, config *types.Config) (interfaces.Cryptographic, error)
- func NewBlake2b256(config *types.Config) (interfaces.Cryptographic, error)
- func NewBlake2b384(config *types.Config) (interfaces.Cryptographic, error)
- func NewBlake2b512(config *types.Config) (interfaces.Cryptographic, error)
- func NewBlake2s128(config *types.Config) (interfaces.Cryptographic, error)
- func NewBlake2s256(config *types.Config) (interfaces.Cryptographic, error)
- func ResolveType(p types.Type) (types.Type, error)
- type Blake2
- type Params
Constants ¶
View Source
const ( MinKeyLength = 16 MaxKeyLength = 64 )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func DefaultParams ¶
func DefaultParams() interfaces.Params
func NewBlake2 ¶
func NewBlake2(algType types.Type, config *types.Config) (interfaces.Cryptographic, error)
func NewBlake2b256 ¶
func NewBlake2b256(config *types.Config) (interfaces.Cryptographic, error)
NewBlake2b256 creates a new BLAKE2b crypto instance
func NewBlake2b384 ¶
func NewBlake2b384(config *types.Config) (interfaces.Cryptographic, error)
NewBlake2b384 creates a new BLAKE2b crypto instance
func NewBlake2b512 ¶
func NewBlake2b512(config *types.Config) (interfaces.Cryptographic, error)
NewBlake2b512 creates a new BLAKE2b crypto instance
func NewBlake2s128 ¶
func NewBlake2s128(config *types.Config) (interfaces.Cryptographic, error)
NewBlake2s128 creates a new BLAKE2s crypto instance
func NewBlake2s256 ¶
func NewBlake2s256(config *types.Config) (interfaces.Cryptographic, error)
NewBlake2s256 creates a new BLAKE2s crypto instance
Types ¶
type Blake2 ¶
type Blake2 struct {
// contains filtered or unexported fields
}
Blake2 implements the BLAKE2 hashing algorithm
func (*Blake2) HashWithSalt ¶
HashWithSalt implements the hash with salt method
Click to show internal directories.
Click to hide internal directories.