public class BufferedBlockCipherSpec extends Object implements Spec<org.bouncycastle.crypto.BufferedBlockCipher>, Serializable
newInstance()
method.Modifier and Type | Field and Description |
---|---|
static Pattern |
FORMAT
String specification format,
algorithm/mode/padding . |
Constructor and Description |
---|
BufferedBlockCipherSpec(String algName)
Creates a new instance from an algorithm name.
|
BufferedBlockCipherSpec(String algName,
String cipherMode)
Creates a new instance from a cipher algorithm and mode.
|
BufferedBlockCipherSpec(String algName,
String cipherMode,
String cipherPadding)
Creates a new instance from the given cipher specifications.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
BlockCipherSpec |
getBlockCipherSpec()
Gets the simple block cipher specification corresponding to this instance.
|
String |
getMode()
Gets the cipher mode.
|
String |
getPadding()
Gets the cipher padding scheme.
|
org.bouncycastle.crypto.BufferedBlockCipher |
newInstance()
Creates a new buffered block cipher from the specification in this instance.
|
static BufferedBlockCipherSpec |
parse(String specification)
Parses a string representation of a buffered block cipher specification into an instance of this class.
|
String |
toString() |
public static final Pattern FORMAT
algorithm/mode/padding
.public BufferedBlockCipherSpec(String algName)
algName
- Cipher algorithm name.public BufferedBlockCipherSpec(String algName, String cipherMode)
algName
- Cipher algorithm name.cipherMode
- Cipher mode.public String getAlgorithm()
getAlgorithm
in interface Spec<org.bouncycastle.crypto.BufferedBlockCipher>
public String getMode()
public String getPadding()
public BlockCipherSpec getBlockCipherSpec()
public org.bouncycastle.crypto.BufferedBlockCipher newInstance()
newInstance
in interface Spec<org.bouncycastle.crypto.BufferedBlockCipher>
public static BufferedBlockCipherSpec parse(String specification)
specification
- Block cipher specification of the form algorithm/mode/padding
.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.