RFC9380

object RFC9380(source)

Types

Link copied to clipboard
value class HashToECScalar(fn: HashToFieldFn)
Link copied to clipboard

Functions

Link copied to clipboard
fun expand_message_xmd(digest: Digest): (msg: Sequence<ByteArray>, domain: ByteArray, lenInBytes: Int) -> Buffer

the expand_message_xmd function as specified in RFC9380; Usage: expand_message_xmd(params)(input)

Link copied to clipboard
fun hash_to_field(expandMessage: ExpandMessageFn, curve: ECCurve, domain: ByteArray): RFC9380.HashToECScalar
fun hash_to_field(expandMessage: ExpandMessageFn, p: BigInteger, L: Int, domain: ByteArray): RFC9380.HashToECScalar

the hash_to_field construction as specified in RFC9380; Usage: hash_to_field(params)(input)

Link copied to clipboard
fun map_to_curve_simple_swu(curve: ECCurve): (ModularBigInteger) -> ECPoint

the map_to_curve_simple_swu function as specified in RFC9380

Link copied to clipboard

The P256_XMD:SHA-256_SSWU_NU_ suite as defined in RFC9380; Usage: suite(dst)(input)

Link copied to clipboard

The P256_XMD:SHA-256_SSWU_RO_ suite as defined in RFC9380; Usage: suite(dst)(input)

Link copied to clipboard

The P384_XMD:SHA-384_SSWU_NU_ suite as defined in RFC9380; Usage: suite(dst)(input)

Link copied to clipboard

The P384_XMD:SHA-384_SSWU_RO_ suite as defined in RFC9380; Usage: suite(dst)(input)

Link copied to clipboard

The P521_XMD:SHA-512_SSWU_NU_ suite as defined in RFC9380; Usage: suite(dst)(input)

Link copied to clipboard

The P521_XMD:SHA-512_SSWU_RO_ suite as defined in RFC9380; Usage: suite(dst)(input)