Package org.bouncycastle.crypto.general
Class ElGamal.OAEPParameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters
-
- org.bouncycastle.crypto.general.ElGamal.Parameters
-
- org.bouncycastle.crypto.general.ElGamal.OAEPParameters
-
- All Implemented Interfaces:
ElGamal.WrapParameters
,Parameters
- Enclosing class:
- ElGamal
public static final class ElGamal.OAEPParameters extends ElGamal.Parameters implements ElGamal.WrapParameters
Parameters for use with OAEP formatted key wrapping/unwrapping and encryption/decryption.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestAlgorithm
getDigest()
byte[]
getEncodingParams()
DigestAlgorithm
getMGFDigest()
ElGamal.OAEPParameters
withDigest(DigestAlgorithm digestAlgorithm)
Specify the digest algorithm to use.ElGamal.OAEPParameters
withEncodingParams(byte[] encodingParams)
Set the encoding parameters.ElGamal.OAEPParameters
withMGFDigest(DigestAlgorithm mgfDigestAlgorithm)
Specify the digest algorithm to use for the MGF.-
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
-
-
-
Method Detail
-
withDigest
public ElGamal.OAEPParameters withDigest(DigestAlgorithm digestAlgorithm)
Specify the digest algorithm to use. This also sets the MGF digest.- Parameters:
digestAlgorithm
- a digest algorithm.- Returns:
- a new parameter set.
-
withMGFDigest
public ElGamal.OAEPParameters withMGFDigest(DigestAlgorithm mgfDigestAlgorithm)
Specify the digest algorithm to use for the MGF.- Parameters:
mgfDigestAlgorithm
- a digest algorithm for the MGF.- Returns:
- a new parameter set.
-
withEncodingParams
public ElGamal.OAEPParameters withEncodingParams(byte[] encodingParams)
Set the encoding parameters.- Parameters:
encodingParams
- encoding params to include.- Returns:
- a new parameter set.
-
getDigest
public DigestAlgorithm getDigest()
-
getMGFDigest
public DigestAlgorithm getMGFDigest()
-
getEncodingParams
public byte[] getEncodingParams()
-
-