Documentation
¶
Overview ¶
Package blake2 implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- func DefaultConfig() *types.Config
- func NewBlake2(algSpec types.Spec, config *types.Config) (scheme.Scheme, error)
- func NewBlake2b256(config *types.Config) (scheme.Scheme, error)
- func NewBlake2b384(config *types.Config) (scheme.Scheme, error)
- func NewBlake2b512(config *types.Config) (scheme.Scheme, error)
- func NewBlake2s128(config *types.Config) (scheme.Scheme, error)
- func NewBlake2s256(config *types.Config) (scheme.Scheme, error)
- func ResolveSpec(p types.Spec) (types.Spec, error)
- func WithKey(key []byte) func(config *types.Config)
- type Blake2
- type Params
Constants ¶
View Source
const ( MinKeyLength = 16 MaxKeyLength = 64 )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func NewBlake2b256 ¶
NewBlake2b256 creates a new BLAKE2b crypto instance
func NewBlake2b384 ¶
NewBlake2b384 creates a new BLAKE2b crypto instance
func NewBlake2b512 ¶
NewBlake2b512 creates a new BLAKE2b crypto instance
func NewBlake2s128 ¶
NewBlake2s128 creates a new BLAKE2s crypto instance
func NewBlake2s256 ¶
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.