org.bouncycastle.pqc.crypto.mceliece
Class McElieceCCA2PublicKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2KeyParameters
org.bouncycastle.pqc.crypto.mceliece.McElieceCCA2PublicKeyParameters
- All Implemented Interfaces:
- CipherParameters
public class McElieceCCA2PublicKeyParameters
- extends McElieceCCA2KeyParameters
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
McElieceCCA2PublicKeyParameters
public McElieceCCA2PublicKeyParameters(java.lang.String oid,
int n,
int t,
GF2Matrix matrix,
McElieceCCA2Parameters params)
- Constructor.
- Parameters:
n
- length of the codet
- error correction capabilitymatrix
- generator matrixparams
- McElieceCCA2Parameters
McElieceCCA2PublicKeyParameters
public McElieceCCA2PublicKeyParameters(java.lang.String oid,
int n,
int t,
byte[] encMatrix,
McElieceCCA2Parameters params)
- Constructor (used by
McElieceKeyFactory
).
- Parameters:
n
- length of the codet
- error correction capability of the codeencMatrix
- encoded generator matrixparams
- McElieceCCA2Parameters
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
getK
public int getK()
- Returns:
- the dimension of the code
getOIDString
public java.lang.String getOIDString()