java.lang.Object
net.i2p.router.crypto.pqc.MLKEM.MLKEMFactory
All Implemented Interfaces:
KeyFactory
Enclosing class:
MLKEM

private static class MLKEM.MLKEMFactoryextends Object implements KeyFactory
Makes the key factories for one ML-KEM variant.
  • Field Details

    • t

      private final EncType t
      The ML-KEM variant this factory handles.
  • Constructor Details

    • MLKEMFactory

      public MLKEMFactory(EncType type)
      Names the variant the factory handles.
      Parameters:
      type - the ML-KEM variant
  • Method Details

    • getKeys

      public KeyPair getKeys()
      Description copied from interface: KeyFactory
      The keys for this destination.
      Specified by:
      getKeys in interface KeyFactory
      Returns:
      the key pair for the destination being built, a matching public and private key, recycled from the factory's prebuilt queue when one is available