public class BLS12_381G2HashToCurve
extends java.lang.Object
Pipeline:
expand_message_xmd(msg, dst, 256) produces 256 bytes (count=2,
m=2, L=64).| Constructor and Description |
|---|
BLS12_381G2HashToCurve(byte[] dst) |
| Modifier and Type | Method and Description |
|---|---|
BLS12_381G2Point |
hashToCurve(byte[] message) |
Fp2Element[] |
hashToField(byte[] message)
Stage 1: expands
message into two Fp² field elements per
RFC 9380 sec. 5.3. |
BLS12_381G2Point |
mapToCurveAndIso3(Fp2Element u)
Stages 2-3: simplified SWU on E' followed by iso_3 to E.
|
public BLS12_381G2Point hashToCurve(byte[] message)
public Fp2Element[] hashToField(byte[] message)
message into two Fp² field elements per
RFC 9380 sec. 5.3. Exposed for layered testing and for callers that
want the raw field elements without the curve mapping.public BLS12_381G2Point mapToCurveAndIso3(Fp2Element u)