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

    Modifier and Type
    Method
    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 Details

    • 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.