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
- func IsogenySecp256k13iso(x, y *big.Int) (px, py *big.Int, isIdentity bool)
- func MapToCurveSSWU(a, b, z, fe, order *big.Int) (x, y *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).
func IsogenySecp256k13iso ¶ added in v0.2.1
IsogenySecp256k13iso is a 3-degree isogeny from Secp256k1 3-ISO to the Secp256k1 elliptic curve.
Types ¶
This section is empty.