implements TlsCipher
0x00x0050
Members 16
| Offset | Size | Name | Type | Flags | Default |
|---|---|---|---|---|---|
| — | 0x04 | AEAD_CCM | int | PublicStatic+1 flags | 1 |
| — | 0x04 | AEAD_CHACHA20_POLY1305 | int | PublicStatic+1 flags | 2 |
| — | 0x04 | AEAD_GCM | int | PublicStatic+1 flags | 3 |
| — | 0x04 | NONCE_RFC5288 | int | PrivateStatic+1 flags | 1 |
| — | 0x04 | NONCE_RFC7905 | int | PrivateStatic+1 flags | 2 |
| 0x08 | m_cryptoParams | TlsCryptoParameters | Private+1 flags | — | |
| 0x04 | m_keySize | int | Private+1 flags | — | |
| 0x04 | m_macSize | int | Private+1 flags | — | |
| 0x04 | m_fixed_iv_length | int | Private+1 flags | — | |
| 0x04 | m_record_iv_length | int | Private+1 flags | — | |
| 0x08 | m_decryptCipher | TlsAeadCipherImpl | Private+1 flags | — | |
| 0x08 | m_encryptCipher | TlsAeadCipherImpl | Private+1 flags | — | |
| 0x08 | m_decryptNonce | byte[] | Private+1 flags | — | |
| 0x08 | m_encryptNonce | byte[] | Private+1 flags | — | |
| 0x01 | m_isTlsV13 | bool | Private+1 flags | — | |
| 0x0049 | 0x03 | padding / unreflected | |||
| 0x04 | m_nonceMode | int | Private+1 flags | — | |
Functions 14
| Signature | Flags | Native | Params |
|---|---|---|---|
| void .ctor(TlsCryptoParameters cryptoParams, TlsAeadCipherImpl encryptCipher, TlsAeadCipherImpl decryptCipher, int keySize, int macSize, int aeadType) | Public+1 flags | — | 0x08 |
| int GetCiphertextDecodeLimit(int plaintextLimit) | PublicFinal+2 flags | — | 0x04 |
| int GetCiphertextEncodeLimit(int plaintextLength, int plaintextLimit) | PublicFinal+2 flags | — | 0x04 |
| int GetPlaintextLimit(int ciphertextLimit) | PublicFinal+2 flags | — | 0x04 |
| TlsEncodeResult EncodePlaintext(long seqNo, short contentType, ProtocolVersion recordVersion, int headerAllocation, const byte[]& plaintext, int plaintextOffset, int plaintextLength) | PublicFinal+2 flags | — | 0x18 |
| TlsEncodeResult EncodePlaintext(long seqNo, short contentType, ProtocolVersion recordVersion, int headerAllocation, const ReadOnlySpan<System.Byte>& plaintext) | PublicFinal+2 flags | 0x18 | |
| TlsDecodeResult DecodeCiphertext(long seqNo, short recordType, ProtocolVersion recordVersion, const byte[]& ciphertext, int ciphertextOffset, int ciphertextLength) | PublicFinal+2 flags | 0x08 | |
| void RekeyDecoder() | PublicFinal+2 flags | 0x00 | |
| void RekeyEncoder() | PublicFinal+2 flags | 0x00 | |
| bool get_UsesOpaqueRecordType() | PublicFinal+3 flags | 0x01 | |
| byte[] GetAdditionalData(long seqNo, short recordType, ProtocolVersion recordVersion, int ciphertextLength, int plaintextLength) | Private | 0x08 | |
| void RekeyCipher(SecurityParameters securityParameters, TlsAeadCipherImpl cipher, const byte[]& nonce, bool serverSecret) | Private | 0x08 | |
| void Setup13Cipher(TlsAeadCipherImpl cipher, const byte[]& nonce, TlsSecret secret, int cryptoHashAlgorithm) | Private | 0x08 | |
| int GetNonceMode(bool isTLSv13, int aeadType) | PrivateStatic | 0x04 |