Class McEliecePublicKeyParameters
- java.lang.Object
-
- org.bouncycastle.crypto.params.AsymmetricKeyParameter
-
- org.bouncycastle.pqc.crypto.mceliece.McElieceKeyParameters
-
- org.bouncycastle.pqc.crypto.mceliece.McEliecePublicKeyParameters
-
- All Implemented Interfaces:
CipherParameters
public class McEliecePublicKeyParameters extends McElieceKeyParameters
-
-
Constructor Summary
Constructors Constructor Description McEliecePublicKeyParameters(int n, int t, GF2Matrix g)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GF2Matrix
getG()
int
getK()
int
getN()
int
getT()
-
Methods inherited from class org.bouncycastle.pqc.crypto.mceliece.McElieceKeyParameters
getParameters
-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Constructor Detail
-
McEliecePublicKeyParameters
public McEliecePublicKeyParameters(int n, int t, GF2Matrix g)
Constructor.- Parameters:
n
- the length of the codet
- the error correction capability of the codeg
- the 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
-
getG
public GF2Matrix getG()
- Returns:
- the generator matrix
-
getK
public int getK()
- Returns:
- the dimension of the code
-
-