arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10395cs.CRcs.PF
收藏

评估OpenTitan作为安全开源硬件片上系统中密码学加速器的性能

Assessing the Performance of OpenTitan as Cryptographic Accelerator in Secure Open-Hardware System-on-Chips

Emanuele Parisi, Alberto Musa, Maicol Ciani, Francesco Barchi, Davide Rossi, Andrea Bartolini, Andrea Acquaviva

AI总结:

本文评估了OpenTitan作为安全开源SoC密码学加速器的性能,通过在周期精确RTL模拟器上分析HMAC、AES和OTBN加速器卸载四种密码学工作负载的效率,发现其相比软件实现加速4.3至12.5倍,并指出带宽利用率仅16%-61%,为未来优化提供了设计指南。

摘要:

RISC-V开源系统正逐渐应用于安全至关重要的部署场景。OpenTitan是一个开源的硅信任根,旨在部署于从高端到深度嵌入式安全环境的广泛系统中。尽管有各种密码学硬件加速器使得OpenTitan适合从主处理器卸载密码学工作负载,但目前尚未对使用OpenTitan作为安全加速器所带来的收益进行准确和定量的确立。本文通过深入分析将密码学工作负载卸载到OpenTitan时的优势和低效之处来填补这一空白。研究重点在三个关键IP——HMAC、AES和OpenTitan大数加速器(OTBN)——它们可以加速四种安全工作负载:安全哈希函数、消息认证码、对称密码学和非对称密码学。对于每种工作负载,我们开发了OpenTitan加速器的裸机驱动程序,并分析了在专为安全信息物理系统应用设计的片上系统中,当计算从RISC-V应用核心卸载时的效率。最后,我们将其与应用核心上的软件实现进行对比评估。该特性分析是在片上系统的周期精确RTL模拟器上进行的。我们的研究表明,OpenTitan显著优于软件实现,加速比从4.3倍到12.5倍不等。然而,仍有获得更大增益的潜力,因为当前的OpenTitan仅利用了加速器带宽的一小部分,具体范围从16%到61%,具体取决于所访问的内存和所使用的加速器。我们的结果为基于OpenTitan的安全平台优化开辟了道路,提供了设计指南以释放其加速器在安全应用中的全部潜力。

英文摘要:

RISC-V open-source systems are emerging in deployment scenarios where safety and security are critical. OpenTitan is an open-source silicon root-of-trust designed to be deployed in a wide range of systems, from high-end to deeply embedded secure environments. Despite the availability of various cryptographic hardware accelerators that make OpenTitan suitable for offloading cryptographic workloads from the main processor, there has been no accurate and quantitative establishment of the benefits derived from using OpenTitan as a secure accelerator. This paper addresses this gap by thoroughly analysing strengths and inefficiencies when offloading cryptographic workloads to OpenTitan. The focus is on three key IPs - HMAC, AES, and OpenTitan Big Number accelerator (OTBN) - which can accelerate four security workloads: Secure Hash Functions, Message Authentication Codes, Symmetric cryptography, and Asymmetric cryptography. For every workload, we develop a bare-metal driver for the OpenTitan accelerator and analyze its efficiency when computation is offloaded from a RISC-V application core within a System-on-Chip designed for secure Cyber-Physical Systems applications. Finally, we assess it against a software implementation on the application core. The characterization was conducted on a cycle-accurate RTL simulator of the System-on-Chip (SoC). Our study demonstrates that OpenTitan significantly outperforms software implementations, with speedups ranging from 4.3x to 12.5x. However, there is potential for even greater gains as the current OpenTitan utilizes a fraction of the accelerator bandwidths, which ranges from 16% to 61%, depending on the memory being accessed and the accelerator used. Our results open the way to the optimization of OpenTitan-based secure platforms, providing design guidelines to unlock the full potential of its accelerators in secure applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑