Wrapper (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto

## Interface Wrapper

- All Known Implementing Classes:
    AESWrapEngine, AESWrapPadEngine, ARIAWrapEngine, ARIAWrapPadEngine, CamelliaWrapEngine, CryptoProWrapEngine, DESedeWrapEngine, DSTU7624WrapEngine, GOST28147WrapEngine, RC2WrapEngine, RFC3211WrapEngine, RFC3394WrapEngine, RFC5649WrapEngine, SEEDWrapEngine

      public interface Wrapper

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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)`

- - ### 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`