On implementing ChaCha on a programmable switch
Yutaro Yoshinaka, Junji Takemasa, Yuki Koizumi, Tōru Hasegawa · 2022
This paper presents an implementation of a practical cryptographic primitive based on ChaCha on a Tofino programmable switch. A key challenge is optimizing the implementation by leveraging the structure of ChaCha operations and hardware features of Tofino. Our implementation outperforms the AES-based approach in terms of performance and small memory footprint and achieves up to 203 Gbps of throughput.