Bouncy Castle Cryptography Library 1.60

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

public 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

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

Bouncy Castle Cryptography Library 1.60