Search in sources :

Example 1 with SPHINCSPlusParameterSpec

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;
}
Also used : SPHINCSPlusParameterSpec(org.bouncycastle.pqc.jcajce.spec.SPHINCSPlusParameterSpec) InvalidAlgorithmParameterException(java.security.InvalidAlgorithmParameterException) SPHINCSPlusKeyGenerationParameters(org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusKeyGenerationParameters) SPHINCSPlusParameters(org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusParameters)

Aggregations

InvalidAlgorithmParameterException (java.security.InvalidAlgorithmParameterException)1 SPHINCSPlusKeyGenerationParameters (org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusKeyGenerationParameters)1 SPHINCSPlusParameters (org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusParameters)1 SPHINCSPlusParameterSpec (org.bouncycastle.pqc.jcajce.spec.SPHINCSPlusParameterSpec)1