Package org.cryptacular.spec
Class BlockCipherSpec
java.lang.Object
org.cryptacular.spec.BlockCipherSpec
- All Implemented Interfaces:
Spec<org.bouncycastle.crypto.BlockCipher>
Block cipher specification.
- Author:
- Middleware Services
-
Constructor Summary
ConstructorsConstructorDescriptionBlockCipherSpec
(String algName) Creates a new instance that describes the given block cipher algorithm. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.crypto.BlockCipher
Creates a new instance of the cryptographic primitive described by this specification.toString()
-
Constructor Details
-
BlockCipherSpec
Creates a new instance that describes the given block cipher algorithm.- Parameters:
algName
- Block cipher algorithm.
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceSpec<org.bouncycastle.crypto.BlockCipher>
- Returns:
- Cryptographic algorithm name.
-
newInstance
public org.bouncycastle.crypto.BlockCipher newInstance()Description copied from interface:Spec
Creates a new instance of the cryptographic primitive described by this specification.- Specified by:
newInstance
in interfaceSpec<org.bouncycastle.crypto.BlockCipher>
- Returns:
- New instance of cryptographic primitive.
-
toString
-