Documentation ¶
Overview ¶
Package hash2curve provides hash-to-curve compatible hashing over arbitrary input.
It implements the latest hash-to-curve specification to date (https://datatracker.ietf.org/doc/draft-irtf-cfrg-hash-to-curve/).
Package hash2curve provides hash-to-curve compatible hashing over arbitrary input.
Package hash2curve provides hash-to-curve compatible input expansion.
Package hash2curve provides hash-to-curve compatible input expansion.
Package hash2curve provides hash-to-curve compatible input expansion.
Package hash2curve provides hash-to-curve compatible input expansion.
Index ¶
- func ExpandXMD(id crypto.Hash, input, dst []byte, length int) []byte
- func ExpandXOF(id hash.Extendable, input, dst []byte, length int) []byte
- func HashToFieldXMD(id crypto.Hash, input, dst []byte, count, ext, securityLength int, ...) []*big.Int
- func HashToFieldXOF(id hash.Extendable, input, dst []byte, count, ext, securityLength int, ...) []*big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandXOF ¶
func ExpandXOF(id hash.Extendable, input, dst []byte, length int) []byte
ExpandXOF expands the input and dst using the given extendable output hash function.
func HashToFieldXMD ¶
func HashToFieldXMD(id crypto.Hash, input, dst []byte, count, ext, securityLength int, modulo *big.Int) []*big.Int
HashToFieldXMD hashes the input with the domain separation tag (dst) to an integer under modulo, using an merkle-damgard based expander (e.g. SHA256).
func HashToFieldXOF ¶
func HashToFieldXOF(id hash.Extendable, input, dst []byte, count, ext, securityLength int, modulo *big.Int) []*big.Int
HashToFieldXOF hashes the input with the domain separation tag (dst) to an integer under modulo, using an extensible output function (e.g. SHAKE).
Types ¶
This section is empty.