use of org.bouncycastle.pqc.jcajce.spec.SPHINCSPlusParameterSpec in project jmulticard by ctt-gob-es.
the class SPHINCSPlusKeyPairGeneratorSpi method initialize.
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException {
if (!(params instanceof SPHINCSPlusParameterSpec)) {
throw new InvalidAlgorithmParameterException("parameter object not a CMCEParameterSpec");
}
param = new SPHINCSPlusKeyGenerationParameters(random, (SPHINCSPlusParameters) parameters.get(getNameFromParams(params)));
engine.init(param);
initialised = true;
}
Aggregations