org.bouncycastle.pqc.jcajce.spec
Class McElieceCCA2PublicKeySpec
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
McElieceCCA2PublicKeySpec
public McElieceCCA2PublicKeySpec(java.lang.String oid,
int n,
int t,
GF2Matrix matrix)
- Constructor.
- Parameters:
n
- length of the codet
- error correction capabilitymatrix
- generator matrix
McElieceCCA2PublicKeySpec
public McElieceCCA2PublicKeySpec(java.lang.String oid,
int n,
int t,
byte[] encMatrix)
- Constructor (used by
McElieceKeyFactorySpi
).
- Parameters:
n
- length of the codet
- error correction capability of the codeencMatrix
- encoded generator matrix
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()