Package org.bouncycastle.crypto.engines
Class GOST28147WrapEngine
- java.lang.Object
-
- org.bouncycastle.crypto.engines.GOST28147WrapEngine
-
- All Implemented Interfaces:
Wrapper
- Direct Known Subclasses:
CryptoProWrapEngine
public class GOST28147WrapEngine extends java.lang.Object implements Wrapper
-
-
Constructor Summary
Constructors Constructor Description GOST28147WrapEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithmName()Return 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)
-
-
-
Method Detail
-
init
public void init(boolean forWrapping, CipherParameters param)
-
getAlgorithmName
public java.lang.String 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
public byte[] unwrap(byte[] input, int inOff, int inLen) throws InvalidCipherTextException- Specified by:
unwrapin interfaceWrapper- Throws:
InvalidCipherTextException
-
-