h2f

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package h2f implements https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-16.html#name-hash_to_field-implementatio

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash2FieldXMD

func Hash2FieldXMD(h hash.Hashing, in, dst []byte, count, ext, securityLength int, modulo *big.Int) ([]*big.Int, error)

Hash2FieldXMD hashes the input with the domain separation tag (dst) to an integer under modulo, using an merkle-damgard based expander (e.g. SHA256).

func Hash2FieldXOF

func Hash2FieldXOF(h xof.Extendable, in, dst []byte, count, ext, securityLength int, modulo *big.Int) ([]*big.Int, error)

Hash2FieldXOF 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL