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

Implements the Galois/Counter mode (GCM) detailed in NIST Special Publication 800-38D.
Inheritance: IAeadBlockCipher
Afficher le fichier Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

DoFinal() public méthode

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
Résultat int

GcmBlockCipher() public méthode

public GcmBlockCipher ( IBlockCipher c ) : System
c IBlockCipher
Résultat System

GetBlockSize() public méthode

public GetBlockSize ( ) : int
Résultat int

GetMac() public méthode

public GetMac ( ) : byte[]
Résultat byte[]

GetOutputSize() public méthode

public GetOutputSize ( int len ) : int
len int
Résultat int

GetUpdateOutputSize() public méthode

public GetUpdateOutputSize ( int len ) : int
len int
Résultat int

Init() public méthode

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
Résultat void

ProcessByte() public méthode

public ProcessByte ( byte input, byte output, int outOff ) : int
input byte
output byte
outOff int
Résultat int

ProcessBytes() public méthode

public ProcessBytes ( byte input, int inOff, int len, byte output, int outOff ) : int
input byte
inOff int
len int
output byte
outOff int
Résultat int

Reset() public méthode

public Reset ( ) : void
Résultat void