01: package org.bouncycastle.crypto;
02:
03: public interface Wrapper {
04: public void init(boolean forWrapping, CipherParameters param);
05:
06: /**
07: * Return the name of the algorithm the wrapper implements.
08: *
09: * @return the name of the algorithm the wrapper implements.
10: */
11: public String getAlgorithmName();
12:
13: public byte[] wrap(byte[] in, int inOff, int inLen);
14:
15: public byte[] unwrap(byte[] in, int inOff, int inLen)
16: throws InvalidCipherTextException;
17: }
|