Package org.bouncycastle.crypto.internal
Interface Wrapper
-
- All Known Implementing Classes:
SP80038FWrapEngine,SP80038FWrapWithPaddingEngine
public interface Wrapper
-
-
Method Summary
All Methods Instance Methods Abstract 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)
-
-
-
Method Detail
-
init
void init(boolean forWrapping, CipherParameters param)
-
getAlgorithmName
java.lang.String getAlgorithmName()
Return the name of the algorithm the wrapper implements.- Returns:
- the name of the algorithm the wrapper implements.
-
wrap
byte[] wrap(byte[] in, int inOff, int inLen)
-
unwrap
byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidCipherTextException- Throws:
InvalidCipherTextException
-
-