p384

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package p384 implements RFC9380 for the P384 group.

Index

Constants

View Source
const (
	// H2CP384 represents the hash-to-curve string identifier for P384.
	H2CP384 = "P384_XMD:SHA-384_SSWU_RO_"

	// E2CP384 represents the encode-to-curve string identifier for P384.
	E2CP384 = "P384_XMD:SHA-384_SSWU_NU_"
)

Variables

This section is empty.

Functions

func EncodeToCurve

func EncodeToCurve(input, dst []byte) *nistec.P384Point

EncodeToCurve implements encode-to-curve mapping to P384 of input with dst. The DST must not be empty or nil, and is recommended to be longer than 16 bytes.

func HashToCurve

func HashToCurve(input, dst []byte) *nistec.P384Point

HashToCurve implements hash-to-curve mapping to P384 of input with dst. The DST must not be empty or nil, and is recommended to be longer than 16 bytes.

func HashToScalar

func HashToScalar(input, dst []byte) *big.Int

HashToScalar returns a safe mapping of the arbitrary input to a scalar for the prime-order group of P384. The DST must not be empty or nil, and is recommended to be longer than 16 bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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