
My new book - Root cause, Stories from two decades of backend bugs
Apr 15, 2026 - 00:09:48
Radio and PodcastLive Radio & PodcastsFetching episode details...
Radio and PodcastLive Radio & Podcasts
Fundamentals of Operating Systems Course is brilliant.TLS encryption/decryption often happens in userland. While TCP lives in the kernel. With ktls, userland can hand the keys to the kernel and the kernel does crypto. Wh...
Kernel level TLS is an episode from The Backend Engineering Show with Hussein Nasser by Hussein Nasser. Fundamentals of Operating Systems Course is brilliant.TLS encryption/decryption often happens in userland. While TCP lives in the kernel...
This episode belongs to The Backend Engineering Show with Hussein Nasser.
Use the player on this page to stream the episode online.
Published Jun 13, 2025, 00:22:55 long, audio available.
Fundamentals of Operating Systems Course is brilliant.TLS encryption/decryption often happens in userland. While TCP lives in the kernel. With ktls, userland can hand the keys to the kernel and the kernel does crypto. When calling write, the kernel encrypts the packet and send it to the NIC.When calling read, the kernel decrypts the packet and handed it to the userspace. This mode still taxes the host’s CPU of course, so there is another mode where the kernel offloads the crypto to the NIC device! Host CPU becomes free. Incoming packets to the NIC are decrypted in device before they are DMAed to the kernel. outgoing packets are encrypted before they leave the NIC to the network.ktls still need handshake to happen in userspace. There is also enabling zerocopy in some cases (now that kernel has context) Deserves a video. So much good stuff.0:00 Intro2:00 Userspace SSL Libraries 3:00 ktls 6:00 Kernel Encrypts/Decrypts (TLS_SW)8:20 NIC offload mode (TLS_HW)10:15 NIC does it all (TLS_HW_RECORD)12:00 Write TX Example13:50 Read RX Example17:00 Zero copy (sendfile)
You can listen to Kernel level TLS online on Radio and Podcast. Open the player on this page to stream the available audio.
Kernel level TLS is an episode from The Backend Engineering Show with Hussein Nasser by Hussein Nasser.
This episode is 00:22:55 long.
This episode was published on Jun 13, 2025.
Yes. Use the heart button on the episode page to add it to your favorite episodes list.
Yes. This page shows related episodes from The Backend Engineering Show with Hussein Nasser when more episodes are available from the podcast feed.
You can listen to Kernel level TLS on this page when the episode audio is available from the podcast feed.
Kernel level TLS is from The Backend Engineering Show with Hussein Nasser by Hussein Nasser.
Published Jun 13, 2025 and 00:22:55 long