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

public Class McElieceCCA2PrivateKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.pqc.legacy.math.linearalgebra.GF2mField, .Permutation, .PolynomialGF2mSmallM

Return the keyData to encode in the PrivateKeyInfo structure.

The ASN.1 definition of the key structure is

  McElieceCCA2PrivateKey ::= SEQUENCE {
    m             INTEGER                  -- extension degree of the field
    k             INTEGER                  -- dimension of the code
    field         OCTET STRING             -- field polynomial
    goppaPoly     OCTET STRING             -- irreducible Goppa polynomial
    p             OCTET STRING             -- permutation vector
    digest        AlgorithmIdentifier      -- algorithm identifier for CCA2 digest
  }

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private byte[]
private byte[]
private byte[]
private int
k

private int
n

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public GF2mField
public PolynomialGF2mSmallM
public static McElieceCCA2PrivateKey
public int
getK()

public int
getN()

public Permutation
getP()

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

digestback to summary
private AlgorithmIdentifier digest
encFieldback to summary
private byte[] encField
encGpback to summary
private byte[] encGp
encPback to summary
private byte[] encP
kback to summary
private int k
nback to summary
private int n

Constructor Detail

McElieceCCA2PrivateKeyback to summary
public McElieceCCA2PrivateKey(int n, int k, GF2mField field, PolynomialGF2mSmallM goppaPoly, Permutation p, AlgorithmIdentifier digest)
McElieceCCA2PrivateKeyback to summary
private McElieceCCA2PrivateKey(ASN1Sequence seq)

Method Detail

getDigestback to summary
public AlgorithmIdentifier getDigest()
getFieldback to summary
public GF2mField getField()
getGoppaPolyback to summary
public PolynomialGF2mSmallM getGoppaPoly()
getInstanceback to summary
public static McElieceCCA2PrivateKey getInstance(Object o)
getKback to summary
public int getK()
getNback to summary
public int getN()
getPback to summary
public Permutation getP()
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.