Top Description Fields Constructors Methods
org.bouncycastle.pqc.asn1

public Class FalconPrivateKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.util.Arrays

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
    }

Field Summary

Modifier and TypeField and Description
private byte[]
f

private byte[]
F

private byte[]
g

private FalconPublicKey
private int

Constructor Summary

AccessConstructor and Description
public
FalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1, FalconPublicKey publicKey)

public
FalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1)

private

Method Summary

Modifier and TypeMethod and Description
public byte[]
getf()

public byte[]
getF()

public byte[]
getG()

public static FalconPrivateKey
public FalconPublicKey
public int
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

fback to summary
private byte[] f
Fback to summary
private byte[] F
gback to summary
private byte[] g
publicKeyback to summary
private FalconPublicKey publicKey
versionback to summary
private int version

Constructor Detail

FalconPrivateKeyback to summary
public FalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1, FalconPublicKey publicKey)
FalconPrivateKeyback to summary
public FalconPrivateKey(int version, byte[] f, byte[] g, byte[] f1)
FalconPrivateKeyback to summary
private FalconPrivateKey(ASN1Sequence seq)

Method Detail

getfback to summary
public byte[] getf()
getFback to summary
public byte[] getF()
getGback to summary
public byte[] getG()
getInstanceback to summary
public static FalconPrivateKey getInstance(Object o)
getPublicKeyback to summary
public FalconPublicKey getPublicKey()
getVersionback to summary
public int getVersion()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.