C# Class Org.BouncyCastle.Crypto.Modes.CcmBlockCipher

Inheritance: IAeadBlockCipher
Datei anzeigen Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
CcmBlockCipher ( IBlockCipher cipher ) : System
DoFinal ( byte outBytes, int outOff ) : int
GetBlockSize ( ) : int
GetMac ( ) : byte[]
GetOutputSize ( int len ) : int
GetUnderlyingCipher ( ) : IBlockCipher
GetUpdateOutputSize ( int len ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessByte ( byte input, byte outBytes, int outOff ) : int
ProcessBytes ( byte inBytes, int inOff, int inLen, byte outBytes, int outOff ) : int
ProcessPacket ( byte input, int inOff, int inLen ) : byte[]
Reset ( ) : void

Private Methods

Method Description
calculateMac ( byte data, int dataOff, int dataLen, byte macBlock ) : int
hasAssociatedText ( ) : bool

Method Details

CcmBlockCipher() public method

public CcmBlockCipher ( IBlockCipher cipher ) : System
cipher IBlockCipher
return System

DoFinal() public method

public DoFinal ( byte outBytes, int outOff ) : int
outBytes byte
outOff int
return int

GetBlockSize() public method

public GetBlockSize ( ) : int
return int

GetMac() public method

public GetMac ( ) : byte[]
return byte[]

GetOutputSize() public method

public GetOutputSize ( int len ) : int
len int
return int

GetUnderlyingCipher() public method

public GetUnderlyingCipher ( ) : IBlockCipher
return IBlockCipher

GetUpdateOutputSize() public method

public GetUpdateOutputSize ( int len ) : int
len int
return int

Init() public method

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
return void

ProcessByte() public method

public ProcessByte ( byte input, byte outBytes, int outOff ) : int
input byte
outBytes byte
outOff int
return int

ProcessBytes() public method

public ProcessBytes ( byte inBytes, int inOff, int inLen, byte outBytes, int outOff ) : int
inBytes byte
inOff int
inLen int
outBytes byte
outOff int
return int

ProcessPacket() public method

public ProcessPacket ( byte input, int inOff, int inLen ) : byte[]
input byte
inOff int
inLen int
return byte[]

Reset() public method

public Reset ( ) : void
return void