Package org.cryptacular.spec
Class StreamCipherSpec
java.lang.Object
org.cryptacular.spec.StreamCipherSpec
- All Implemented Interfaces:
Spec<org.bouncycastle.crypto.StreamCipher>
Stream cipher specification.
- Author:
- Middleware Services
-
Constructor Summary
ConstructorsConstructorDescriptionStreamCipherSpec
(String algName) Creates a new instance that describes the given stream cipher algorithm. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.crypto.StreamCipher
Creates a new instance of the cryptographic primitive described by this specification.toString()
-
Constructor Details
-
StreamCipherSpec
Creates a new instance that describes the given stream cipher algorithm.- Parameters:
algName
- Stream cipher algorithm.
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceSpec<org.bouncycastle.crypto.StreamCipher>
- Returns:
- Cryptographic algorithm name.
-
newInstance
public org.bouncycastle.crypto.StreamCipher 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.StreamCipher>
- Returns:
- New instance of cryptographic primitive.
-
toString
-