Package org.bouncycastle.crypto.engines
Class DESedeWrapEngine
- java.lang.Object
-
- org.bouncycastle.crypto.engines.DESedeWrapEngine
-
-
Constructor Summary
Constructors Constructor Description DESedeWrapEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithmName()Method getAlgorithmNamevoidinit(boolean forWrapping, CipherParameters param)Method initbyte[]unwrap(byte[] in, int inOff, int inLen)Method unwrapbyte[]wrap(byte[] in, int inOff, int inLen)Method wrap
-
-
-
Method Detail
-
init
public void init(boolean forWrapping, CipherParameters param)Method init
-
getAlgorithmName
public java.lang.String getAlgorithmName()
Method getAlgorithmName- Specified by:
getAlgorithmNamein interfaceWrapper- Returns:
- the algorithm name "DESede".
-
wrap
public byte[] wrap(byte[] in, int inOff, int inLen)Method wrap
-
unwrap
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextExceptionMethod unwrap- Specified by:
unwrapin interfaceWrapper- Parameters:
in- byte array containing the wrapped key.inOff- off set into in that the data starts at.inLen- length of the data.- Returns:
- the unwrapped bytes.
- Throws:
InvalidCipherTextException
-
-