Table of Contents

Class ISO9796d1Encoding

Namespace
Org.BouncyCastle.Crypto.Encodings
Assembly
BouncyCastle.Cryptography.dll
public class ISO9796d1Encoding : IAsymmetricBlockCipher
Inheritance
ISO9796d1Encoding
Implements
Inherited Members

Constructors

ISO9796d1Encoding(IAsymmetricBlockCipher)

public ISO9796d1Encoding(IAsymmetricBlockCipher cipher)

Parameters

cipher IAsymmetricBlockCipher

Properties

AlgorithmName

The name of the algorithm this cipher implements.

public string AlgorithmName { get; }

Property Value

string

UnderlyingCipher

public IAsymmetricBlockCipher UnderlyingCipher { get; }

Property Value

IAsymmetricBlockCipher

Methods

GetInputBlockSize()

public int GetInputBlockSize()

Returns

int

GetOutputBlockSize()

public int GetOutputBlockSize()

Returns

int

GetPadBits()

public int GetPadBits()

Returns

int

Init(bool, ICipherParameters)

Initialise the cipher.

public void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool

Initialise for encryption if true, for decryption if false.

parameters ICipherParameters

The key or other data required by the cipher.

ProcessBlock(byte[], int, int)

Process a block.

public byte[] ProcessBlock(byte[] input, int inOff, int length)

Parameters

input byte[]
inOff int

The offset into that the input block begins.

length int

Returns

byte[]

Exceptions

InvalidCipherTextException

Input decrypts improperly.

DataLengthException

Input is too large for the cipher.

SetPadBits(int)

public void SetPadBits(int padBits)

Parameters

padBits int