Package org.bouncycastle.crypto.fips
Class FipsRSA.OAEPParameters
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsRSA.WrapParameters
org.bouncycastle.crypto.fips.FipsRSA.OAEPParameters
- All Implemented Interfaces:
Parameters
- Enclosing class:
FipsRSA
Parameters for use with OAEP formatted key wrapping/unwrapping and encryption/decryption.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]withDigest(FipsDigestAlgorithm digestAlgorithm) Specify the digest algorithm to use.withEncodingParams(byte[] encodingParams) Set the encoding parameters.withMGFDigest(FipsDigestAlgorithm mgfDigestAlgorithm) Specify the digest algorithm to use for the MGF.Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
Method Details
-
withDigest
Specify the digest algorithm to use. This also sets the MGF digest.- Parameters:
digestAlgorithm- a digest algorithm.- Returns:
- a new parameter set.
-
withMGFDigest
Specify the digest algorithm to use for the MGF.- Parameters:
mgfDigestAlgorithm- a digest algorithm for the MGF.- Returns:
- a new parameter set.
-
withEncodingParams
Set the encoding parameters.- Parameters:
encodingParams- encoding params to include.- Returns:
- a new parameter set.
-
getDigest
-
getMGFDigest
-
getEncodingParams
public byte[] getEncodingParams()
-