public class CMCEPrivateKey extends ASN1Object
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 }
Constructor and Description |
---|
CMCEPrivateKey(int version,
byte[] delta,
byte[] c,
byte[] g,
byte[] alpha,
byte[] s) |
CMCEPrivateKey(int version,
byte[] delta,
byte[] c,
byte[] g,
byte[] alpha,
byte[] s,
CMCEPublicKey pubKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAlpha() |
byte[] |
getC() |
byte[] |
getDelta() |
byte[] |
getG() |
static CMCEPrivateKey |
getInstance(java.lang.Object o) |
CMCEPublicKey |
getPublicKey() |
byte[] |
getS() |
int |
getVersion() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
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)
public int getVersion()
public byte[] getDelta()
public byte[] getC()
public byte[] getG()
public byte[] getAlpha()
public byte[] getS()
public CMCEPublicKey getPublicKey()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
public static CMCEPrivateKey getInstance(java.lang.Object o)