org.bouncycastle.crypto

Interface Wrapper

Known Implementing Classes:
AESWrapEngine, DESedeWrapEngine, RC2WrapEngine

public interface Wrapper

Method Summary

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)

Method Details

getAlgorithmName

public String getAlgorithmName()
Return the name of the algorithm the wrapper implements.

Returns:
the name of the algorithm the wrapper implements.


init

public void init(boolean forWrapping,
                 CipherParameters param)


unwrap

public byte[] unwrap(byte[] in,
                     int inOff,
                     int inLen)
            throws InvalidCipherTextException


wrap

public byte[] wrap(byte[] in,
                   int inOff,
                   int inLen)