
org.bouncycastle.its.jcajce.IESKEMParameterSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcpkix-fips Show documentation
Show all versions of bcpkix-fips Show documentation
The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. The APIs are designed primarily to be used in conjunction with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified.
package org.bouncycastle.its.jcajce;
import org.bouncycastle.util.Arrays;
import java.security.spec.AlgorithmParameterSpec;
/**
* Parameter spec for an integrated encryptor KEM, as in IEEE_Std_1609_2
*/
class IESKEMParameterSpec
implements AlgorithmParameterSpec
{
private final byte[] recipientInfo;
private final boolean usePointCompression;
/**
* Set the IESKEM parameters.
*
* @param recipientInfo recipient data.
*/
public IESKEMParameterSpec(
byte[] recipientInfo)
{
this(recipientInfo, false);
}
/**
* Set the IESKEM parameters - specifying point compression.
*
* @param recipientInfo recipient data.
* @param usePointCompression use point compression on output (ignored on input).
*/
public IESKEMParameterSpec(
byte[] recipientInfo,
boolean usePointCompression)
{
this.recipientInfo = Arrays.clone(recipientInfo);
this.usePointCompression = usePointCompression;
}
public byte[] getRecipientInfo()
{
return Arrays.clone(recipientInfo);
}
public boolean hasUsePointCompression()
{
return usePointCompression;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy