public class BufferedBlockCipherBean extends AbstractBlockCipherBean
Constructor and Description |
---|
BufferedBlockCipherBean()
Creates a new instance.
|
BufferedBlockCipherBean(Spec<org.bouncycastle.crypto.BufferedBlockCipher> blockCipherSpec,
KeyStore keyStore,
String keyAlias,
String keyPassword,
Nonce nonce)
Creates a new instance by specifying all properties.
|
Modifier and Type | Method and Description |
---|---|
Spec<org.bouncycastle.crypto.BufferedBlockCipher> |
getBlockCipherSpec() |
protected BufferedBlockCipherAdapter |
newCipher(CiphertextHeader header,
boolean mode)
Creates a new cipher adapter instance suitable for the block cipher used by this class.
|
void |
setBlockCipherSpec(Spec<org.bouncycastle.crypto.BufferedBlockCipher> blockCipherSpec)
Sets the block cipher specification.
|
process, process
decrypt, decrypt, encrypt, encrypt, getKeyAlias, getKeyStore, getNonce, lookupKey, setKeyAlias, setKeyPassword, setKeyStore, setNonce
public BufferedBlockCipherBean()
public BufferedBlockCipherBean(Spec<org.bouncycastle.crypto.BufferedBlockCipher> blockCipherSpec, KeyStore keyStore, String keyAlias, String keyPassword, Nonce nonce)
blockCipherSpec
- Block cipher specification.keyStore
- Key store containing encryption key.keyAlias
- Name of encryption key entry in key store.keyPassword
- Password used to decrypt key entry in keystore.nonce
- Nonce/IV generator.public Spec<org.bouncycastle.crypto.BufferedBlockCipher> getBlockCipherSpec()
public void setBlockCipherSpec(Spec<org.bouncycastle.crypto.BufferedBlockCipher> blockCipherSpec)
blockCipherSpec
- Describes a block cipher in terms of algorithm, mode, and padding.protected BufferedBlockCipherAdapter newCipher(CiphertextHeader header, boolean mode)
AbstractBlockCipherBean
newCipher
in class AbstractBlockCipherBean
header
- Ciphertext header.mode
- True for encryption; false for decryption.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.