Class HAETAEParameters
java.lang.Object
org.bouncycastle.pqc.crypto.haetae.HAETAEParameters
Parameters 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
FieldsModifier and TypeFieldDescriptionstatic final intSize of the challenge hash (bytes)static final int2 * Qstatic final intη parameter (always 1)static final HAETAEParametersstatic final HAETAEParametersstatic final HAETAEParametersstatic final intRing dimension Nstatic final intPacked size of polynomial high bits (N * 9 / 8)static final intPacked size of a challenge polynomialstatic final intPacked size of a polynomial with η‑coefficientsstatic final intModulus Qstatic final intSize of the seed (bytes) -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetB0()longgetB0Sq()doublegetB1()longgetB1Sq()doublegetB2()longgetB2Sq()intintintSize of the signature in bytesorg.bouncycastle.pqc.crypto.haetae.RansDecSymbol[]org.bouncycastle.pqc.crypto.haetae.RansDecSymbol[]org.bouncycastle.pqc.crypto.haetae.RansEncSymbol[]org.bouncycastle.pqc.crypto.haetae.RansEncSymbol[]doublegetGamma()intintgetK()intgetL()intgetLn()intintintintgetM()intgetM_h()intgetName()intintintPacked size of a polynomial with coefficients in [‑2η, 2η]intPacked size of a polynomial with coefficients modulo QintintintdoublegetSqnm()long[]long[]Returns a copy of the start_times_threehalves constant.short[]short[]intgetTau()toString()
-
Field Details
-
haetae2
-
haetae3
-
haetae5
-
SEED_BYTES
public static final int SEED_BYTESSize of the seed (bytes)- See Also:
-
CRH_BYTES
public static final int CRH_BYTESSize of the challenge hash (bytes)- See Also:
-
N
public static final int NRing dimension N- See Also:
-
Q
public static final int QModulus Q- See Also:
-
DQ
public static final int DQ2 * Q- See Also:
-
ETA
public static final int ETAη parameter (always 1)- See Also:
-
POLYETA_PACKED_BYTES
public static final int POLYETA_PACKED_BYTESPacked size of a polynomial with η‑coefficients- See Also:
-
POLYC_PACKED_BYTES
public static final int POLYC_PACKED_BYTESPacked size of a challenge polynomial- See Also:
-
POLY_HIGHBITS_PACKED_BYTES
public static final int POLY_HIGHBITS_PACKED_BYTESPacked size of polynomial high bits (N * 9 / 8)- See Also:
-
-
Method Details
-
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
-