Package org.bouncycastle.pqc.asn1
Class FalconPrivateKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.pqc.asn1.FalconPrivateKey
- All Implemented Interfaces:
ASN1Encodable,Encodable
ASN.1 Encoding for a
FALCON private key for fully populated:
FALCONPrivateKey ::= SEQUENCE {
version INTEGER {v2(1)} -- syntax version 2 (round 3)
f OCTET STRING, -- short integer polynomial f
g OCTET STRING, -- short integer polynomial g
f OCTET STRING, -- short integer polynomial F
publicKey [0] IMPLICIT FALCONPublicKey OPTIONAL
-- see next section
}
-
Constructor Summary
ConstructorsConstructorDescriptionFalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1) FalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1, FalconPublicKey publicKey) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getf()byte[]getF()byte[]getG()static FalconPrivateKeyintMethod providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
FalconPrivateKey
-
FalconPrivateKey
public FalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1)
-
-
Method Details
-
getVersion
public int getVersion() -
getf
public byte[] getf() -
getF
public byte[] getF() -
getPublicKey
-
getG
public byte[] getG() -
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
getInstance
-