Package org.bouncycastle.pqc.asn1
Class CMCEPrivateKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.pqc.asn1.CMCEPrivateKey
- All Implemented Interfaces:
ASN1Encodable,Encodable
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
}
-
Constructor Summary
ConstructorsConstructorDescriptionCMCEPrivateKey(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) -
Method Summary
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
CMCEPrivateKey
public CMCEPrivateKey(int version, byte[] delta, byte[] c, byte[] g, byte[] alpha, byte[] s) -
CMCEPrivateKey
public CMCEPrivateKey(int version, byte[] delta, byte[] c, byte[] g, byte[] alpha, byte[] s, CMCEPublicKey pubKey)
-
-
Method Details
-
getVersion
public int getVersion() -
getDelta
public byte[] getDelta() -
getC
public byte[] getC() -
getG
public byte[] getG() -
getAlpha
public byte[] getAlpha() -
getS
public byte[] getS() -
getPublicKey
-
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
-