Discover Packages
github.com/ReallyMeLabs/circl
expander
package
Version:
v1.4.5
Opens a new window with list of versions in this module.
Published: Dec 5, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package expander generates arbitrary bytes from an XOF or Hash function.
NewExpanderMD returns a hash function based on a Merkle-Damgård hash function.
func NewExpanderXOF(id xof .ID , kSecLevel uint , dst []byte ) *expanderXOF
NewExpanderXOF returns an Expander based on an extendable output function.
The kSecLevel parameter is the target security level in bits, and dst is
a domain separation string.
type Expander interface {
Expand(in []byte , length uint ) (pseudo []byte )
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.