Package org.bouncycastle.crypto.engines
Class RFC3211WrapEngine
- java.lang.Object
-
- org.bouncycastle.crypto.engines.RFC3211WrapEngine
-
-
Constructor Summary
Constructors Constructor Description RFC3211WrapEngine(BlockCipher engine)
-
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[] in, int inOff, int inLen)byte[]wrap(byte[] in, int inOff, int inLen)
-
-
-
Constructor Detail
-
RFC3211WrapEngine
public RFC3211WrapEngine(BlockCipher engine)
-
-
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.
-
unwrap
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException- Specified by:
unwrapin interfaceWrapper- Throws:
InvalidCipherTextException
-
-