java.lang.Object
org.pgpainless.key.generation.type.elgamal.ElGamal
All Implemented Interfaces:
KeyType

@Deprecated public final class ElGamal extends Object implements KeyType
Deprecated.
the use of ElGamal is not recommended anymore.
ElGamal encryption only key type.
  • Method Details

    • withLength

      public static ElGamal withLength(ElGamalLength length)
      Deprecated.
    • getName

      public String getName()
      Deprecated.
      Description copied from interface: KeyType
      Return the encryption algorithm name.
      Specified by:
      getName in interface KeyType
      Returns:
      algorithm name.
    • getAlgorithm

      public PublicKeyAlgorithm getAlgorithm()
      Deprecated.
      Description copied from interface: KeyType
      Return the public key algorithm.
      Specified by:
      getAlgorithm in interface KeyType
      Returns:
      public key algorithm
    • getBitStrength

      public int getBitStrength()
      Deprecated.
      Description copied from interface: KeyType
      Return the strength of the key in bits.
      Specified by:
      getBitStrength in interface KeyType
      Returns:
      strength of the key in bits
    • getAlgorithmSpec

      public AlgorithmParameterSpec getAlgorithmSpec()
      Deprecated.
      Description copied from interface: KeyType
      Return an implementation of AlgorithmParameterSpec that can be used to generate the key.
      Specified by:
      getAlgorithmSpec in interface KeyType
      Returns:
      algorithm parameter spec