Class GOfbBlockCipher
- Namespace
- Org.BouncyCastle.Crypto.Modes
- Assembly
- BouncyCastle.Cryptography.dll
public class GOfbBlockCipher : IBlockCipherMode, IBlockCipher
- Inheritance
-
GOfbBlockCipher
- Implements
- Inherited Members
Constructors
GOfbBlockCipher(IBlockCipher)
public GOfbBlockCipher(IBlockCipher cipher)
Parameters
cipherIBlockCipher
Properties
AlgorithmName
public string AlgorithmName { get; }
Property Value
IsPartialBlockOkay
Indicates whether this cipher mode can handle partial blocks.
public bool IsPartialBlockOkay { get; }
Property Value
UnderlyingCipher
public IBlockCipher UnderlyingCipher { get; }
Property Value
Methods
GetBlockSize()
public int GetBlockSize()
Returns
Init(bool, ICipherParameters)
public void Init(bool forEncryption, ICipherParameters parameters)
Parameters
forEncryptionboolparametersICipherParameters
ProcessBlock(byte[], int, byte[], int)
Process a block.
public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)
Parameters
inputbyte[]inOffintThe offset into that the input block begins.
outputbyte[]outOffintThe offset into to write the output block.
Returns
- int
The number of bytes processed and produced.
Exceptions
- DataLengthException
If input block is wrong size, or outBuf too small.
ProcessBlock(ReadOnlySpan<byte>, Span<byte>)
Process a block.
public int ProcessBlock(ReadOnlySpan<byte> input, Span<byte> output)
Parameters
inputReadOnlySpan<byte>The input block as a span.
outputSpan<byte>The output span.
Returns
- int
The number of bytes processed and produced.
Exceptions
- DataLengthException
If input block is wrong size, or output span too small.
Reset()
public void Reset()