Class HAETAEParameters
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.haetae.HAETAEParameters
-
public class HAETAEParameters extends java.lang.ObjectParameters for the HAETAE signature scheme (Modes 2, 3, and 5).This class mirrors the constants defined in
params.h. Instances are immutable and can be shared freely.
-
-
Field Summary
Fields Modifier and Type Field Description static intCRH_BYTESSize of the challenge hash (bytes)static intDQ2 * Qstatic intETAη parameter (always 1)static HAETAEParametershaetae2static HAETAEParametershaetae3static HAETAEParametershaetae5static intNRing dimension Nstatic intPOLY_HIGHBITS_PACKED_BYTESPacked size of polynomial high bits (N * 9 / 8)static intPOLYC_PACKED_BYTESPacked size of a challenge polynomialstatic intPOLYETA_PACKED_BYTESPacked size of a polynomial with η‑coefficientsstatic intQModulus Qstatic intSEED_BYTESSize of the seed (bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAlphaHint()doublegetB0()longgetB0Sq()doublegetB1()longgetB1Sq()doublegetB2()longgetB2Sq()intgetBaseEncH()intgetBaseEncHbZ1()intgetCryptoBytes()Size of the signature in bytesorg.bouncycastle.pqc.crypto.haetae.RansDecSymbol[]getDsyms_h()org.bouncycastle.pqc.crypto.haetae.RansDecSymbol[]getDsyms_hb_z1()org.bouncycastle.pqc.crypto.haetae.RansEncSymbol[]getEsyms_h()org.bouncycastle.pqc.crypto.haetae.RansEncSymbol[]getEsyms_hb_z1()doublegetGamma()intgetHalfAlphaHint()intgetK()intgetL()intgetLn()intgetLnBits()intgetLnHalf()intgetLogAlphaHint()intgetM()intgetM_h()intgetM_hb_z1()java.lang.StringgetName()intgetOffset_h()intgetOffset_hb_z1()intgetPoly2etaPackedBytes()Packed size of a polynomial with coefficients in [‑2η, 2η]intgetPolyqPackedBytes()Packed size of a polynomial with coefficients modulo QintgetPolyveckHighbitsPackedBytes()intgetPublicKeyBytes()intgetSecretKeyBytes()doublegetSqnm()long[]getStartCube()long[]getStartTimesThreehalves()Returns a copy of the start_times_threehalves constant.short[]getSymbolH()short[]getSymbolH_z1()intgetTau()java.lang.StringtoString()
-
-
-
Field Detail
-
haetae2
public static final HAETAEParameters haetae2
-
haetae3
public static final HAETAEParameters haetae3
-
haetae5
public static final HAETAEParameters haetae5
-
SEED_BYTES
public static final int SEED_BYTES
Size of the seed (bytes)- See Also:
- Constant Field Values
-
CRH_BYTES
public static final int CRH_BYTES
Size of the challenge hash (bytes)- See Also:
- Constant Field Values
-
N
public static final int N
Ring dimension N- See Also:
- Constant Field Values
-
Q
public static final int Q
Modulus Q- See Also:
- Constant Field Values
-
DQ
public static final int DQ
2 * Q- See Also:
- Constant Field Values
-
ETA
public static final int ETA
η parameter (always 1)- See Also:
- Constant Field Values
-
POLYETA_PACKED_BYTES
public static final int POLYETA_PACKED_BYTES
Packed size of a polynomial with η‑coefficients- See Also:
- Constant Field Values
-
POLYC_PACKED_BYTES
public static final int POLYC_PACKED_BYTES
Packed size of a challenge polynomial- See Also:
- Constant Field Values
-
POLY_HIGHBITS_PACKED_BYTES
public static final int POLY_HIGHBITS_PACKED_BYTES
Packed size of polynomial high bits (N * 9 / 8)- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getK
public int getK()
-
getL
public int getL()
-
getM
public int getM()
-
getTau
public int getTau()
-
getB0
public double getB0()
-
getB1
public double getB1()
-
getB2
public double getB2()
-
getGamma
public double getGamma()
-
getLn
public int getLn()
-
getLnHalf
public int getLnHalf()
-
getLnBits
public int getLnBits()
-
getSqnm
public double getSqnm()
-
getCryptoBytes
public int getCryptoBytes()
Size of the signature in bytes
-
getBaseEncHbZ1
public int getBaseEncHbZ1()
-
getBaseEncH
public int getBaseEncH()
-
getAlphaHint
public int getAlphaHint()
-
getLogAlphaHint
public int getLogAlphaHint()
-
getPolyqPackedBytes
public int getPolyqPackedBytes()
Packed size of a polynomial with coefficients modulo Q
-
getPoly2etaPackedBytes
public int getPoly2etaPackedBytes()
Packed size of a polynomial with coefficients in [‑2η, 2η]
-
getHalfAlphaHint
public int getHalfAlphaHint()
-
getB0Sq
public long getB0Sq()
-
getB1Sq
public long getB1Sq()
-
getB2Sq
public long getB2Sq()
-
getPolyveckHighbitsPackedBytes
public int getPolyveckHighbitsPackedBytes()
-
getPublicKeyBytes
public int getPublicKeyBytes()
-
getSecretKeyBytes
public int getSecretKeyBytes()
-
getStartCube
public long[] getStartCube()
-
getStartTimesThreehalves
public long[] getStartTimesThreehalves()
Returns a copy of the start_times_threehalves constant.
-
getM_h
public int getM_h()
-
getOffset_h
public int getOffset_h()
-
getM_hb_z1
public int getM_hb_z1()
-
getOffset_hb_z1
public int getOffset_hb_z1()
-
getEsyms_h
public org.bouncycastle.pqc.crypto.haetae.RansEncSymbol[] getEsyms_h()
-
getDsyms_h
public org.bouncycastle.pqc.crypto.haetae.RansDecSymbol[] getDsyms_h()
-
getEsyms_hb_z1
public org.bouncycastle.pqc.crypto.haetae.RansEncSymbol[] getEsyms_hb_z1()
-
getDsyms_hb_z1
public org.bouncycastle.pqc.crypto.haetae.RansDecSymbol[] getDsyms_hb_z1()
-
getSymbolH
public short[] getSymbolH()
-
getSymbolH_z1
public short[] getSymbolH_z1()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-