Package org.bouncycastle.crypto.general
Class RSA.OAEPParameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
-
- org.bouncycastle.crypto.general.RSA.Parameters
-
- org.bouncycastle.crypto.general.RSA.WrapParameters
-
- org.bouncycastle.crypto.general.RSA.OAEPParameters
-
- All Implemented Interfaces:
Parameters
- Enclosing class:
- RSA
public static final class RSA.OAEPParameters extends RSA.WrapParameters
Parameters for use with non-FIPS RSA 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()
RSA.OAEPParameters
withDigest(DigestAlgorithm digestAlgorithm)
Specify the digest algorithm to use.RSA.OAEPParameters
withEncodingParams(byte[] encodingParams)
Set the encoding parameters.RSA.OAEPParameters
withMGFDigest(DigestAlgorithm mgfDigestAlgorithm)
Specify the digest algorithm to use for the MGF.-
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
-
-
-
-
Method Detail
-
withDigest
public RSA.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 RSA.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 RSA.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()
-
-