Table of Contents

Class KCcmBlockCipher

Namespace
Enterprises.Org.BouncyCastle.Crypto.Modes
Assembly
Enterprises.BouncyCastle.Crypto.dll
public class KCcmBlockCipher : IAeadBlockCipher
Inheritance
KCcmBlockCipher
Implements
Inherited Members

Constructors

KCcmBlockCipher(IBlockCipher)

public KCcmBlockCipher(IBlockCipher engine)

Parameters

engine IBlockCipher

KCcmBlockCipher(IBlockCipher, int)

public KCcmBlockCipher(IBlockCipher engine, int Nb)

Parameters

engine IBlockCipher
Nb int

Properties

AlgorithmName

public virtual string AlgorithmName { get; }

Property Value

string

Methods

DoFinal(byte[], int)

public virtual int DoFinal(byte[] output, int outOff)

Parameters

output byte[]
outOff int

Returns

int

GetBlockSize()

public virtual int GetBlockSize()

Returns

int

GetMac()

public virtual byte[] GetMac()

Returns

byte[]

GetOutputSize(int)

public virtual int GetOutputSize(int len)

Parameters

len int

Returns

int

GetUnderlyingCipher()

public virtual IBlockCipher GetUnderlyingCipher()

Returns

IBlockCipher

GetUpdateOutputSize(int)

public virtual int GetUpdateOutputSize(int len)

Parameters

len int

Returns

int

Init(bool, ICipherParameters)

public virtual void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool
parameters ICipherParameters

ProcessAadByte(byte)

public virtual void ProcessAadByte(byte input)

Parameters

input byte

ProcessAadBytes(byte[], int, int)

public virtual void ProcessAadBytes(byte[] input, int inOff, int len)

Parameters

input byte[]
inOff int
len int

ProcessByte(byte, byte[], int)

public virtual int ProcessByte(byte input, byte[] output, int outOff)

Parameters

input byte
output byte[]
outOff int

Returns

int

ProcessBytes(byte[], int, int, byte[], int)

public virtual int ProcessBytes(byte[] input, int inOff, int inLen, byte[] output, int outOff)

Parameters

input byte[]
inOff int
inLen int
output byte[]
outOff int

Returns

int

ProcessPacket(byte[], int, int, byte[], int)

public int ProcessPacket(byte[] input, int inOff, int len, byte[] output, int outOff)

Parameters

input byte[]
inOff int
len int
output byte[]
outOff int

Returns

int

Reset()

public virtual void Reset()