Package org.bouncycastle.crypto.engines
Class DSTU7624WrapEngine
java.lang.Object
org.bouncycastle.crypto.engines.DSTU7624WrapEngine
- All Implemented Interfaces:
Wrapper
Implementation of DSTU7624 KEY WRAP mode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the algorithm the wrapper implements.void
init
(boolean forWrapping, CipherParameters param) byte[]
unwrap
(byte[] in, int inOff, int inLen) byte[]
wrap
(byte[] in, int inOff, int inLen)
-
Constructor Details
-
DSTU7624WrapEngine
public DSTU7624WrapEngine(int blockBitLength)
-
-
Method Details
-
init
-
getAlgorithmName
Description copied from interface:Wrapper
Return the name of the algorithm the wrapper implements.- Specified by:
getAlgorithmName
in interfaceWrapper
- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
public byte[] wrap(byte[] in, int inOff, int inLen) -
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
InvalidCipherTextException
-