Class ElGamal
java.lang.Object
org.pgpainless.key.generation.type.elgamal.ElGamal
- All Implemented Interfaces:
KeyType
Deprecated.
the use of ElGamal is not recommended anymore.
ElGamal encryption only key type.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the public key algorithm.Deprecated.Return an implementation ofAlgorithmParameterSpec
that can be used to generate the key.int
Deprecated.Return the strength of the key in bits.getName()
Deprecated.Return the encryption algorithm name.static ElGamal
withLength
(ElGamalLength length) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pgpainless.key.generation.type.KeyType
canAuthenticate, canCertify, canEncryptCommunication, canEncryptStorage, canSign
-
Method Details
-
withLength
Deprecated. -
getName
Deprecated.Description copied from interface:KeyType
Return the encryption algorithm name. -
getAlgorithm
Deprecated.Description copied from interface:KeyType
Return the public key algorithm.- Specified by:
getAlgorithm
in interfaceKeyType
- 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 interfaceKeyType
- Returns:
- strength of the key in bits
-
getAlgorithmSpec
Deprecated.Description copied from interface:KeyType
Return an implementation ofAlgorithmParameterSpec
that can be used to generate the key.- Specified by:
getAlgorithmSpec
in interfaceKeyType
- Returns:
- algorithm parameter spec
-