Search in sources :

Example 1 with RC5CBCParameter

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));
}
Also used : KeyDerivationFunction(org.xwiki.crypto.password.KeyDerivationFunction) RC5CBCParameter(org.xwiki.crypto.password.internal.pbe.RC5CBCParameter)

Aggregations

KeyDerivationFunction (org.xwiki.crypto.password.KeyDerivationFunction)1 RC5CBCParameter (org.xwiki.crypto.password.internal.pbe.RC5CBCParameter)1