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 ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.