BipBipCache: A Cache Controller Design Leveraging the BipBip Tweakable Block Cipher
Advisor(s)
Firas Hassan
Confirmation
1
Document Type
Poster
Location
ONU McIntosh Center; Activities Room
Start Date
24-4-2026 12:00 PM
End Date
24-4-2026 12:50 PM
Abstract
This work presents a hardware-adapted version of BipBip, a lightweight tweakable block cipher originally designed to decrypt 64-bit encrypted machine instructions with ultra-low latency of three clock cycles. Our goal is to repurpose BipBip for secure on-chip memory by integrating it into a direct-mapped data cache that supports both load and store operations. Unlike instruction decryption, cache operation requires decrypting both the tag and the data on every load to verify cache hits while simultaneously producing plaintext for the processor. Store operations are even more challenging, as encryption must occur on the critical path. The original three-cycle latency of BipBip is insufficient for storing, because an additional three cycles are required to generate the tweak associated with the encrypted data block. We propose a microarchitectural optimization that overlaps tweak generation with tag decryption: while the cache decrypts the tag to determine hit/miss, the cipher hardware precomputes the tweak for the data block. Upon a hit, only three additional cycles are required to encrypt the updated data before storing it back into the cache and setting the dirty bit.
The design is tested on a direct-mapped cache with 128 blocks, each block containing four 64-bit words and a 52-bit encrypted tag. The system is implemented on an FPGA and evaluated using both simulation and a custom serial I/O protocol for reading and writing cache contents. Results demonstrate the feasibility of integrating a three-cycle tweakable cipher into a practical data-cache pipeline with only six total cycles of store latency, making this a promising direction for low-latency encrypted memory systems.
Keywords: cache encryption · tweakable block cipher · BipBip · hardware security
Recommended Citation
Hibler, Corbin; Hassan, Firas; and McKanna, Eric, "BipBipCache: A Cache Controller Design Leveraging the BipBip Tweakable Block Cipher" (2026). ONU Student Research Colloquium. 75.
https://digitalcommons.onu.edu/student_research_colloquium/2026/Posters/75
Open Access
Available to all.
BipBipCache: A Cache Controller Design Leveraging the BipBip Tweakable Block Cipher
ONU McIntosh Center; Activities Room
This work presents a hardware-adapted version of BipBip, a lightweight tweakable block cipher originally designed to decrypt 64-bit encrypted machine instructions with ultra-low latency of three clock cycles. Our goal is to repurpose BipBip for secure on-chip memory by integrating it into a direct-mapped data cache that supports both load and store operations. Unlike instruction decryption, cache operation requires decrypting both the tag and the data on every load to verify cache hits while simultaneously producing plaintext for the processor. Store operations are even more challenging, as encryption must occur on the critical path. The original three-cycle latency of BipBip is insufficient for storing, because an additional three cycles are required to generate the tweak associated with the encrypted data block. We propose a microarchitectural optimization that overlaps tweak generation with tag decryption: while the cache decrypts the tag to determine hit/miss, the cipher hardware precomputes the tweak for the data block. Upon a hit, only three additional cycles are required to encrypt the updated data before storing it back into the cache and setting the dirty bit.
The design is tested on a direct-mapped cache with 128 blocks, each block containing four 64-bit words and a 52-bit encrypted tag. The system is implemented on an FPGA and evaluated using both simulation and a custom serial I/O protocol for reading and writing cache contents. Results demonstrate the feasibility of integrating a three-cycle tweakable cipher into a practical data-cache pipeline with only six total cycles of store latency, making this a promising direction for low-latency encrypted memory systems.
Keywords: cache encryption · tweakable block cipher · BipBip · hardware security