Package org.bouncycastle.crypto.engines
Class GOST28147WrapEngine
java.lang.Object
org.bouncycastle.crypto.engines.GOST28147WrapEngine
- All Implemented Interfaces:
Wrapper
- Direct Known Subclasses:
CryptoProWrapEngine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the algorithm the wrapper implements.voidinit(boolean forWrapping, CipherParameters param) byte[]unwrap(byte[] input, int inOff, int inLen) byte[]wrap(byte[] input, int inOff, int inLen)
-
Constructor Details
-
GOST28147WrapEngine
public GOST28147WrapEngine()
-
-
Method Details
-
init
-
getAlgorithmName
Description copied from interface:WrapperReturn the name of the algorithm the wrapper implements.- Specified by:
getAlgorithmNamein interfaceWrapper- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
public byte[] wrap(byte[] input, int inOff, int inLen) -
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
InvalidCipherTextException
-