C# Класс Org.BouncyCastle.Crypto.Modes.GcmBlockCipher

Implements the Galois/Counter mode (GCM) detailed in NIST Special Publication 800-38D.
Наследование: IAeadBlockCipher
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DoFinal ( byte output, int outOff ) : int
GcmBlockCipher ( IBlockCipher c ) : System
GetBlockSize ( ) : int
GetMac ( ) : byte[]
GetOutputSize ( int len ) : int
GetUpdateOutputSize ( int len ) : int
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessByte ( byte input, byte output, int outOff ) : int
ProcessBytes ( byte input, int inOff, int len, byte output, int outOff ) : int
Reset ( ) : void

Приватные методы

Метод Описание
Process ( byte input, byte output, int outOff ) : int
Reset ( bool clearMac ) : void
asBlock ( BigInteger bi ) : byte[]
gCTRBlock ( byte buf, int bufCount, byte output, int outOff ) : void
gHASH ( byte b, bool nonce ) : BigInteger
gHASHBlock ( byte block ) : void
inc ( byte block ) : void
multiply ( BigInteger X, BigInteger Y ) : BigInteger

Описание методов

DoFinal() публичный Метод

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
Результат int

GcmBlockCipher() публичный Метод

public GcmBlockCipher ( IBlockCipher c ) : System
c IBlockCipher
Результат System

GetBlockSize() публичный Метод

public GetBlockSize ( ) : int
Результат int

GetMac() публичный Метод

public GetMac ( ) : byte[]
Результат byte[]

GetOutputSize() публичный Метод

public GetOutputSize ( int len ) : int
len int
Результат int

GetUpdateOutputSize() публичный Метод

public GetUpdateOutputSize ( int len ) : int
len int
Результат int

Init() публичный Метод

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
Результат void

ProcessByte() публичный Метод

public ProcessByte ( byte input, byte output, int outOff ) : int
input byte
output byte
outOff int
Результат int

ProcessBytes() публичный Метод

public ProcessBytes ( byte input, int inOff, int len, byte output, int outOff ) : int
input byte
inOff int
len int
output byte
outOff int
Результат int

Reset() публичный Метод

public Reset ( ) : void
Результат void