blob: b12993e1f2a97057f1eac63d42a59b926e59ffe9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using System;
using System.Collections.Generic;
using System.Text;
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 EncryptedValuePadder
{
///
/// <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);
}
}
|