org.bouncycastle.crypto
Interface Wrapper
- All Known Implementing Classes:
- RFC3394WrapEngine, GOST28147WrapEngine, RC2WrapEngine, DESedeWrapEngine, RFC3211WrapEngine, RFC5649WrapEngine, DSTU7624WrapEngine
- public interface Wrapper
Method Summary |
java.lang.String |
getAlgorithmName()
Return 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)
|
init
public void init(boolean forWrapping,
CipherParameters param)
getAlgorithmName
public java.lang.String getAlgorithmName()
- Return the name of the algorithm the wrapper implements.
- Returns:
- the name of the algorithm the wrapper implements.
wrap
public byte[] wrap(byte[] in,
int inOff,
int inLen)
unwrap
public byte[] unwrap(byte[] in,
int inOff,
int inLen)
throws InvalidCipherTextException