Package org.bouncycastle.crypto.engines
Class RC2WrapEngine
- java.lang.Object
 - 
- org.bouncycastle.crypto.engines.RC2WrapEngine
 
 
- 
- 
Constructor Summary
Constructors Constructor Description RC2WrapEngine() 
- 
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 "RC2".
 
 
- 
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- offset into in array that the wrapped key starts at.inLen- length of wrapped key data.- Returns:
 - the unwrapped bytes.
 - Throws:
 InvalidCipherTextException
 
 - 
 
 -