@Role public interface PasswordBasedCipherFactory extends CipherSpecifications
Modifier and Type | Method and Description |
---|---|
PasswordBasedCipher |
getInstance(boolean forEncryption,
byte[] password,
byte[] encoded)
Create a new initialized password based cipher from serialized encoding.
|
PasswordBasedCipher |
getInstance(boolean forEncryption,
SymmetricCipherParameters password,
KeyDerivationFunction function)
Create a new initialized password based cipher using the given key derivation function.
|
PasswordBasedCipher |
getInstance(boolean forEncryption,
SymmetricCipherParameters password,
KeyDerivationFunctionParameters kdfParameters)
Create a new initialized password based cipher from parameters.
|
getCipherAlgorithmName, getIVSize, getKeySize, getSupportedKeySizes, isSupportedKeySize
PasswordBasedCipher getInstance(boolean forEncryption, SymmetricCipherParameters password, KeyDerivationFunctionParameters kdfParameters)
forEncryption
- if true the cipher is initialised for encryption, if false for decryption.password
- cipher parameters, using a password converted to bytes for the key.kdfParameters
- the parameters of the derivation function.PasswordBasedCipher getInstance(boolean forEncryption, SymmetricCipherParameters password, KeyDerivationFunction function)
forEncryption
- if true the cipher is initialised for encryption, if false for decryption.password
- cipher parameters, using a password converted to bytes for the key.function
- the key derivation function to use for deriving key from password.PasswordBasedCipher getInstance(boolean forEncryption, byte[] password, byte[] encoded)
forEncryption
- if true the cipher is initialised for encryption, if false for decryption.password
- the password used to derive the encryption key.encoded
- encoded parameters to initialize the cipher and derivation function.Copyright © 2004–2022 XWiki. All rights reserved.