Package 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

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `McElieceCCA2PublicKeyParameters​(int n, int t, GF2Matrix matrix, java.lang.String digest)` | 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.McElieceCCA2KeyParameters

      `getDigest`

    - ### Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter

      `isPrivate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### McElieceCCA2PublicKeyParameters

          public McElieceCCA2PublicKeyParameters​(int n,
                                                 int t,
                                                 GF2Matrix matrix,
                                                 java.lang.String digest)

      Constructor.
      Parameters:
        `n` - length of the code
        `t` - error correction capability
        `matrix` - generator matrix
        `digest` - McElieceCCA2Parameters

  - ### 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