public class FalconPrivateKeyParameters extends FalconKeyParameters
| Constructor and Description |
|---|
FalconPrivateKeyParameters(FalconParameters parameters,
byte[] f,
byte[] g,
byte[] F,
byte[] pk_encoded) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded() |
byte[] |
getG() |
byte[] |
getPublicKey()
Return the encoded public key for this private key.
|
FalconPublicKeyParameters |
getPublicKeyParameters()
Return the matching
FalconPublicKeyParameters for this private
key, mirroring MLDSAPrivateKeyParameters.getPublicKeyParameters(). |
byte[] |
getSpolyf() |
byte[] |
getSpolyF() |
getParametersisPrivatepublic FalconPrivateKeyParameters(FalconParameters parameters, byte[] f, byte[] g, byte[] F, byte[] pk_encoded)
public byte[] getEncoded()
public byte[] getPublicKey()
When this instance still carries the encoded public key (the usual case for a freshly generated key) that encoding is returned directly. When it does not — e.g. the key was reconstructed from only its private encoding (f ‖ g ‖ F), with no public key bytes retained — the public key h is recomputed from the private polynomials (h = g * f-1 mod (q, xn+1)) (github #2297).
public FalconPublicKeyParameters getPublicKeyParameters()
FalconPublicKeyParameters for this private
key, mirroring MLDSAPrivateKeyParameters.getPublicKeyParameters().
Lets wallet / HSM code recover the public key from a stored private key
without re-running keygen; see getPublicKey() for how the key is
recovered when no public key bytes were retained (github #2297).public byte[] getSpolyf()
public byte[] getG()
public byte[] getSpolyF()