Bouncy Castle Cryptography Library 1.48

org.bouncycastle.pqc.jcajce.spec
Class McElieceCCA2PublicKeySpec

java.lang.Object
  extended by org.bouncycastle.pqc.jcajce.spec.McElieceCCA2PublicKeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class McElieceCCA2PublicKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec

This class provides a specification for a McEliece CCA2 public key.

See Also:
BCMcElieceCCA2PublicKey

Constructor Summary
McElieceCCA2PublicKeySpec(java.lang.String oid, int n, int t, byte[] encMatrix)
          Constructor (used by McElieceKeyFactorySpi).
McElieceCCA2PublicKeySpec(java.lang.String oid, int n, int t, GF2Matrix matrix)
          Constructor.
 
Method Summary
 GF2Matrix getMatrixG()
           
 int getN()
           
 java.lang.String getOIDString()
           
 int getT()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

McElieceCCA2PublicKeySpec

public McElieceCCA2PublicKeySpec(java.lang.String oid,
                                 int n,
                                 int t,
                                 GF2Matrix matrix)
Constructor.

Parameters:
n - length of the code
t - error correction capability
matrix - generator matrix

McElieceCCA2PublicKeySpec

public McElieceCCA2PublicKeySpec(java.lang.String oid,
                                 int n,
                                 int t,
                                 byte[] encMatrix)
Constructor (used by McElieceKeyFactorySpi).

Parameters:
n - length of the code
t - error correction capability of the code
encMatrix - encoded generator matrix
Method Detail

getN

public int getN()
Returns:
the length of the code

getT

public int getT()
Returns:
the error correction capability of the code

getMatrixG

public GF2Matrix getMatrixG()
Returns:
the generator matrix

getOIDString

public java.lang.String getOIDString()

Bouncy Castle Cryptography Library 1.48