You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
878 B
27 lines
878 B
using System;
|
|
|
|
namespace Org.BouncyCastle.Crmf
|
|
{
|
|
/// <summary>
|
|
/// An encrypted value padder is used to make sure that prior to a value been
|
|
/// encrypted the data is padded to a standard length.
|
|
/// </summary>
|
|
public interface IEncryptedValuePadder
|
|
{
|
|
///
|
|
/// <summary>Return a byte array of padded data.</summary>
|
|
///
|
|
/// <param name="data">the data to be padded.</param>
|
|
/// <returns>a padded byte array containing data.</returns>
|
|
///
|
|
byte[] GetPaddedData(byte[] data);
|
|
|
|
///
|
|
/// <summary>Return a byte array of with padding removed.</summary>
|
|
///
|
|
/// <param name="paddedData">the data to be padded.</param>
|
|
/// <returns>an array containing the original unpadded data.</returns>
|
|
///
|
|
byte[] GetUnpaddedData(byte[] paddedData);
|
|
}
|
|
}
|
|
|