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
cipherIAsymmetricBlockCipher
Properties
AlgorithmName
The name of the algorithm this cipher implements.
public string AlgorithmName { get; }
Property Value
UnderlyingCipher
public IAsymmetricBlockCipher UnderlyingCipher { get; }
Property Value
Methods
GetInputBlockSize()
public int GetInputBlockSize()
Returns
GetOutputBlockSize()
public int GetOutputBlockSize()
Returns
GetPadBits()
public int GetPadBits()
Returns
Init(bool, ICipherParameters)
Initialise the cipher.
public void Init(bool forEncryption, ICipherParameters parameters)
Parameters
forEncryptionboolInitialise for encryption if true, for decryption if false.
parametersICipherParametersThe 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
Returns
- byte[]
Exceptions
- InvalidCipherTextException
Input decrypts improperly.
- DataLengthException
Input is too large for the cipher.
SetPadBits(int)
public void SetPadBits(int padBits)
Parameters
padBitsint