use of org.xwiki.crypto.password.internal.pbe.RC5CBCParameter in project xwiki-commons by xwiki.
the class AbstractBcPBES2Rc5CipherFactory method getInstance.
@Override
protected PasswordBasedCipher getInstance(boolean forEncryption, byte[] password, KeyDerivationFunc kdfParams, EncryptionScheme scheme) {
KeyDerivationFunction kdf = getKeyDerivationFunction(kdfParams);
RC5CBCParameter rc5Params = RC5CBCParameter.getInstance(scheme.getParameters());
return getPasswordBasedCipher(forEncryption, kdf, getRC5CipherParameters(password, rc5Params, kdf));
}
Aggregations