Table of Contents

Interface IEncryptedValuePadder

Namespace
Org.BouncyCastle.Crmf
Assembly
BouncyCastle.Cryptography.dll

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

public interface IEncryptedValuePadder

Methods

GetPaddedData(byte[])

Return a byte array of padded data.

byte[] GetPaddedData(byte[] data)

Parameters

data byte[]

the data to be padded.

Returns

byte[]

a padded byte array containing data.

GetUnpaddedData(byte[])

Return a byte array of with padding removed.

byte[] GetUnpaddedData(byte[] paddedData)

Parameters

paddedData byte[]

the data to be padded.

Returns

byte[]

an array containing the original unpadded data.