org.bouncycastle.pqc.jcajce.spec.LMSParameterSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-jdk15on Show documentation
Show all versions of bcprov-jdk15on Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.5 and up.
The newest version!
package org.bouncycastle.pqc.jcajce.spec;
import java.security.spec.AlgorithmParameterSpec;
import org.bouncycastle.pqc.crypto.lms.LMOtsParameters;
import org.bouncycastle.pqc.crypto.lms.LMSigParameters;
/**
* ParameterSpec for the Leighton-Micali Hash-Based Signature (LMS) scheme.
* @deprecated use LMSKeyGenParameterSpec
*/
public class LMSParameterSpec
implements AlgorithmParameterSpec
{
private final LMSigParameters lmSigParams;
private final LMOtsParameters lmOtsParameters;
/**
* Base constructor.
*
* @param lmSigParams the LMS system signature parameters to use.
* @param lmOtsParameters the LM OTS parameters to use for the underlying one-time signature keys.
*/
public LMSParameterSpec(LMSigParameters lmSigParams, LMOtsParameters lmOtsParameters)
{
this.lmSigParams = lmSigParams;
this.lmOtsParameters = lmOtsParameters;
}
/**
* Return the LMS system signature parameters.
*
* @return the LMS system signature parameters.
*/
public LMSigParameters getSigParams()
{
return lmSigParams;
}
/**
* Return the LM OTS parameters to use for the underlying one-time signature keys.
*
* @return the LM OTS parameters.
*/
public LMOtsParameters getOtsParams()
{
return lmOtsParameters;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy