public class AEADBlockCipherSpec extends Object implements Spec<org.bouncycastle.crypto.modes.AEADBlockCipher>
newInstance()
method.Modifier and Type | Field and Description |
---|---|
static Pattern |
FORMAT
String specification format,
algorithm/mode . |
Constructor and Description |
---|
AEADBlockCipherSpec(String algName,
String cipherMode)
Creates a new instance from a cipher algorithm and mode.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
String |
getMode()
Gets the cipher mode.
|
org.bouncycastle.crypto.modes.AEADBlockCipher |
newInstance()
Creates a new AEAD block cipher from the specification in this instance.
|
static AEADBlockCipherSpec |
parse(String specification)
Parses a string representation of a AEAD block cipher specification into an instance of this class.
|
String |
toString() |
public static final Pattern FORMAT
algorithm/mode
.public String getAlgorithm()
getAlgorithm
in interface Spec<org.bouncycastle.crypto.modes.AEADBlockCipher>
public String getMode()
public org.bouncycastle.crypto.modes.AEADBlockCipher newInstance()
newInstance
in interface Spec<org.bouncycastle.crypto.modes.AEADBlockCipher>
public static AEADBlockCipherSpec parse(String specification)
specification
- AEAD block cipher specification of the form algorithm/mode
.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.