TLS 1.3 record encryption/decryption

I'm struggling to figure out how the TLS13 record is encrypted/decrypted. It should be explained at https://tls13.ulfheim.net under "Wrapped Record" > "Encrypted Data" > "Decryption", but I don't get it quite right.

I'm sure this community has people with the knowledge of encryption who could help me implement this part. A code snippet would be great. Appreciated ...

Something like this?

This is from rustls which is a pre-existing tls 1.2/1.3 implementation in rust.

1 Like

Great, let me dig into this.

I found the solution here: GitHub - RustCrypto/AEADs: Authenticated Encryption with Associated Data Algorithms: high-level encryption ciphers

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.