java.lang.Object
com.coderslagoon.crypto.estreamj.framework.Engine

public class Engine extends Object
The engine accumulates all the stream ciphers available. All implementations register with the engine by themselves.
  • Method Details

    • getCipherNames

      public static String[] getCipherNames()
      Returns:
      the names of all ciphers registered; can be empty if no ciphers have been registered so far
    • createCipher

      public static ICipher createCipher(String name) throws ESJException
      Creates a new cipher instance.
      Parameters:
      name - name of the cipher to make
      Returns:
      new cipher instance
      Throws:
      ESJException - if any error occurred
    • registerCipher

      public static void registerCipher(ICipherMaker cphMk)
      Called by cipher implementations to register their factories, usually during startup time.
      Parameters:
      cphMk - the factory to register