Class TlsAeadCipher
- Namespace
- Enterprises.Org.BouncyCastle.Crypto.Tls
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public class TlsAeadCipher : TlsCipher
- Inheritance
-
TlsAeadCipher
- Implements
-
- Inherited Members
-
Constructors
TlsAeadCipher(TlsContext, IAeadBlockCipher, IAeadBlockCipher, int, int)
public TlsAeadCipher(TlsContext context, IAeadBlockCipher clientWriteCipher, IAeadBlockCipher serverWriteCipher, int cipherKeySize, int macSize)
Parameters
context
TlsContext
clientWriteCipher
IAeadBlockCipher
serverWriteCipher
IAeadBlockCipher
cipherKeySize
int
macSize
int
Fields
NONCE_RFC5288
public const int NONCE_RFC5288 = 1
Field Value
- int
context
protected readonly TlsContext context
Field Value
- TlsContext
decryptCipher
protected readonly IAeadBlockCipher decryptCipher
Field Value
- IAeadBlockCipher
decryptImplicitNonce
protected readonly byte[] decryptImplicitNonce
Field Value
- byte[]
encryptCipher
protected readonly IAeadBlockCipher encryptCipher
Field Value
- IAeadBlockCipher
encryptImplicitNonce
protected readonly byte[] encryptImplicitNonce
Field Value
- byte[]
macSize
protected readonly int macSize
Field Value
- int
nonceMode
protected readonly int nonceMode
Field Value
- int
record_iv_length
protected readonly int record_iv_length
Field Value
- int
Methods
DecodeCiphertext(long, byte, byte[], int, int)
public virtual byte[] DecodeCiphertext(long seqNo, byte type, byte[] ciphertext, int offset, int len)
Parameters
seqNo
long
type
byte
ciphertext
byte[]
offset
int
len
int
Returns
- byte[]
EncodePlaintext(long, byte, byte[], int, int)
public virtual byte[] EncodePlaintext(long seqNo, byte type, byte[] plaintext, int offset, int len)
Parameters
seqNo
long
type
byte
plaintext
byte[]
offset
int
len
int
Returns
- byte[]
GetAdditionalData(long, byte, int)
protected virtual byte[] GetAdditionalData(long seqNo, byte type, int len)
Parameters
seqNo
long
type
byte
len
int
Returns
- byte[]
GetPlaintextLimit(int)
public virtual int GetPlaintextLimit(int ciphertextLimit)
Parameters
ciphertextLimit
int
Returns
- int