Search in sources :

Example 1 with ModeParameterGenerator

use of de.flexiprovider.common.mode.ModeParameterGenerator in project core by jcryptool.

the class BlockCipherWizard method getDefaultModeParamSpecs.

private ModeParameterSpec getDefaultModeParamSpecs() {
    ModeParameterGenerator generator = new ModeParameterGenerator();
    generator.init(algorithm.getDefaultBlockLength() / 8, FlexiProviderAlgorithmsPlugin.getSecureRandom());
    return (ModeParameterSpec) generator.generateParameters();
}
Also used : ModeParameterGenerator(de.flexiprovider.common.mode.ModeParameterGenerator) ModeParameterSpec(de.flexiprovider.common.mode.ModeParameterSpec)

Aggregations

ModeParameterGenerator (de.flexiprovider.common.mode.ModeParameterGenerator)1 ModeParameterSpec (de.flexiprovider.common.mode.ModeParameterSpec)1