C# Class Org.BouncyCastle.Crypto.Tls.TlsAeadCipher

Inheritance: TlsCipher
Show file Open project: gkardava/WinPass

Protected Properties

Property Type Description
context TlsContext
decryptCipher IAeadBlockCipher
encryptCipher IAeadBlockCipher
encryptImplicitNonce byte[]
macSize int
nonceMode int
record_iv_length int

Public Methods

Method Description
DecodeCiphertext ( long seqNo, byte type, byte ciphertext, int offset, int len ) : byte[]
EncodePlaintext ( long seqNo, byte type, byte plaintext, int offset, int len ) : byte[]
GetPlaintextLimit ( int ciphertextLimit ) : int
TlsAeadCipher ( TlsContext context, IAeadBlockCipher clientWriteCipher, IAeadBlockCipher serverWriteCipher, int cipherKeySize, int macSize ) : System

Protected Methods

Method Description
GetAdditionalData ( long seqNo, byte type, int len ) : byte[]

Private Methods

Method Description
TlsAeadCipher ( TlsContext context, IAeadBlockCipher clientWriteCipher, IAeadBlockCipher serverWriteCipher, int cipherKeySize, int macSize, int nonceMode ) : System

Method Details

DecodeCiphertext() public method

public DecodeCiphertext ( long seqNo, byte type, byte ciphertext, int offset, int len ) : byte[]
seqNo long
type byte
ciphertext byte
offset int
len int
return byte[]

EncodePlaintext() public method

public EncodePlaintext ( long seqNo, byte type, byte plaintext, int offset, int len ) : byte[]
seqNo long
type byte
plaintext byte
offset int
len int
return byte[]

GetAdditionalData() protected method

protected GetAdditionalData ( long seqNo, byte type, int len ) : byte[]
seqNo long
type byte
len int
return byte[]

GetPlaintextLimit() public method

public GetPlaintextLimit ( int ciphertextLimit ) : int
ciphertextLimit int
return int

TlsAeadCipher() public method

public TlsAeadCipher ( TlsContext context, IAeadBlockCipher clientWriteCipher, IAeadBlockCipher serverWriteCipher, int cipherKeySize, int macSize ) : System
context TlsContext
clientWriteCipher IAeadBlockCipher
serverWriteCipher IAeadBlockCipher
cipherKeySize int
macSize int
return System

Property Details

context protected property

protected TlsContext context
return TlsContext

decryptCipher protected property

protected IAeadBlockCipher decryptCipher
return IAeadBlockCipher

encryptCipher protected property

protected IAeadBlockCipher encryptCipher
return IAeadBlockCipher

encryptImplicitNonce protected property

protected byte[] encryptImplicitNonce
return byte[]

macSize protected property

protected int macSize
return int

nonceMode protected property

protected int nonceMode
return int

record_iv_length protected property

protected int record_iv_length
return int