org.bouncycastle.pqc.jcajce.spec
Class McEliecePublicKeySpec
java.lang.Object
org.bouncycastle.pqc.jcajce.spec.McEliecePublicKeySpec
- All Implemented Interfaces:
- java.security.spec.KeySpec
public class McEliecePublicKeySpec
- extends java.lang.Object
- implements java.security.spec.KeySpec
This class provides a specification for a McEliece public key.
- See Also:
BCMcEliecePublicKey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
McEliecePublicKeySpec
public McEliecePublicKeySpec(java.lang.String oid,
int n,
int t,
GF2Matrix g)
- Constructor (used by
McElieceKeyFactorySpi
).
- Parameters:
oid
- n
- the length of the codet
- the error correction capability of the codeg
- the generator matrix
McEliecePublicKeySpec
public McEliecePublicKeySpec(java.lang.String oid,
int t,
int n,
byte[] encG)
- Constructor (used by
McElieceKeyFactorySpi
).
- Parameters:
oid
- n
- the length of the codet
- the error correction capability of the codeencG
- the 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
getG
public GF2Matrix getG()
- Returns:
- the generator matrix
getOIDString
public java.lang.String getOIDString()