Package org.bouncycastle.pqc.crypto.qtesla

## Class QTESLAKeyPairGenerator

- java.lang.Object
- - org.bouncycastle.pqc.crypto.qtesla.QTESLAKeyPairGenerator

- All Implemented Interfaces:
    `AsymmetricCipherKeyPairGenerator`

      public final class QTESLAKeyPairGenerator
      extends java.lang.Object
      implements AsymmetricCipherKeyPairGenerator

  Key-pair generator for qTESLA keys.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `QTESLAKeyPairGenerator()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `AsymmetricCipherKeyPair` | `generateKeyPair()` | Generate a key-pair.
    `void` | `init​(KeyGenerationParameters param)` | Initialize the generator with a security category and a source of randomness.

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

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

- - ### Constructor Detail

    - #### QTESLAKeyPairGenerator

          public QTESLAKeyPairGenerator()

  - ### Method Detail

    - #### init

          public void init​(KeyGenerationParameters param)

      Initialize the generator with a security category and a source of randomness.
      Specified by:
        `init` in interface `AsymmetricCipherKeyPairGenerator`
      Parameters:
        `param` - a `QTESLAKeyGenerationParameters` object.

    - #### generateKeyPair

          public AsymmetricCipherKeyPair generateKeyPair()

      Generate a key-pair.
      Specified by:
        `generateKeyPair` in interface `AsymmetricCipherKeyPairGenerator`
      Returns:
        a matching key-pair consisting of (QTESLAPublicKeyParameters, QTESLAPrivateKeyParameters).