Discover Packages
github.com/JI-0/circl-ed448
expander
package
Version:
v0.0.0-...-c815c82
Opens a new window with list of versions in this module.
Published: Oct 24, 2024
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.