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

public Class CMCEPrivateKey

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 Classic McEliece private key for fully populated:
McEliecePrivateKey ::= SEQUENCE {
   Version    INTEGER {v0(0)} -- version (round 3)
   delta      OCTET STRING,   -- nonce
   C          OCTET STRING,   -- column selections
   g          OCTET STRING,   -- monic irreducible polynomial
   alpha      OCTET STRING,   -- field orderings
   s          OCTET STRING,   -- random n-bit string
   PublicKey  [0] IMPLICIT McEliecePublicKey OPTIONAL
                               -- see next section
   }

Field Summary

Modifier and TypeField and Description
private byte[]
private byte[]
C

private byte[]
private byte[]
g

private CMCEPublicKey
private byte[]
s

private int

Constructor Summary

AccessConstructor and Description
public
CMCEPrivateKey(int version, byte[] delta, byte[] c, byte[] g, byte[] alpha, byte[] s)

public
CMCEPrivateKey(int version, byte[] delta, byte[] c, byte[] g, byte[] alpha, byte[] s, CMCEPublicKey pubKey)

private

Method Summary

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

public byte[]
public byte[]
getG()

public static CMCEPrivateKey
public CMCEPublicKey
public byte[]
getS()

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

alphaback to summary
private byte[] alpha
Cback to summary
private byte[] C
deltaback to summary
private byte[] delta
gback to summary
private byte[] g
PublicKeyback to summary
private CMCEPublicKey PublicKey
sback to summary
private byte[] s
versionback to summary
private int version

Constructor Detail

CMCEPrivateKeyback to summary
public CMCEPrivateKey(int version, byte[] delta, byte[] c, byte[] g, byte[] alpha, byte[] s)
CMCEPrivateKeyback to summary
public CMCEPrivateKey(int version, byte[] delta, byte[] c, byte[] g, byte[] alpha, byte[] s, CMCEPublicKey pubKey)
CMCEPrivateKeyback to summary
private CMCEPrivateKey(ASN1Sequence seq)

Method Detail

getAlphaback to summary
public byte[] getAlpha()
getCback to summary
public byte[] getC()
getDeltaback to summary
public byte[] getDelta()
getGback to summary
public byte[] getG()
getInstanceback to summary
public static CMCEPrivateKey getInstance(Object o)
getPublicKeyback to summary
public CMCEPublicKey getPublicKey()
getSback to summary
public byte[] getS()
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.