EncryptedValuePadder (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.cert.crmf

## Interface EncryptedValuePadder

- All Known Implementing Classes:
    BcFixedLengthMGF1Padder

      public interface EncryptedValuePadder

  An encrypted value padder is used to make sure that prior to a value been encrypted the data is padded to a standard length.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getPaddedData(byte[] data)` Return a byte array of padded data.
    `byte[]` | `getUnpaddedData(byte[] paddedData)` Return a byte array of with padding removed.

- - ### Method Detail

    - #### getPaddedData

          byte[] getPaddedData(byte[] data)

      Return a byte array of padded data.
      Parameters:
        `data` - the data to be padded.
      Returns:
        a padded byte array containing data.

    - #### getUnpaddedData

          byte[] getUnpaddedData(byte[] paddedData)

      Return a byte array of with padding removed.
      Parameters:
        `paddedData` - the data to be padded.
      Returns:
        an array containing the original unpadded data.