Building a Modern TRNG: An Entropy Source Interface for RISC-V

Research output: Chapter in Book/Report/Conference proceedingConference contributionScientificpeer-review

5 Citations (Scopus)

Abstract

The currently proposed RISC-V True Random Number Generator (TRNG) architecture breaks with previous ISA TRNG practice by splitting the Entropy Source (ES) component away from cryptographic PRNGs into a separate interface, and in its use of polling. We describe the interface, its use in cryptography, and offer additional discussion, background, and rationale for various aspects of it. This design is informed by lessons learned from earlier mainstream ISAs, recently introduced SP 800-90B and FIPS 140-3 entropy audit requirements, AIS 31 and Common Criteria, current and emerging cryptographic needs such as post-quantum cryptography, and the goal of supporting a wide variety of RISC-V implementations and applications. Many of the architectural choices are a result of quantitative observations about random number generators in secure microcontrollers, the Linux kernel, and cryptographic libraries. We further compare the architecture to some contemporary random number generators and describe a minimalistic TRNG reference implementation that uses the Entropy Source together with RISC-V AES instructions.

Original languageEnglish
Title of host publicationASHES 2020 - Proceedings of the 4th ACM Workshop on Attacks and Solutions in Hardware Security
PublisherACM
Pages93-102
Number of pages10
ISBN (Electronic)9781450380904
DOIs
Publication statusPublished - 13 Nov 2020
Externally publishedYes
Publication typeA4 Article in conference proceedings
Event4th ACM Workshop on Attacks and Solutions in Hardware Security, ASHES 2020 - Virtual, Online, United States
Duration: 13 Nov 2020 → …

Publication series

NameASHES 2020 - Proceedings of the 4th ACM Workshop on Attacks and Solutions in Hardware Security

Conference

Conference4th ACM Workshop on Attacks and Solutions in Hardware Security, ASHES 2020
Country/TerritoryUnited States
CityVirtual, Online
Period13/11/20 → …

Funding

In addition to anonymous program committee members, we thank the RISC-V Cryptographic Extensions Task Group for its input and support, especially Andy Glew, Barry Spinney, Derek Atkins, Ken Dockser, and Nathan Menhorn. This work was supported in part by Innovate UK (R&D Project Ref.: 105747), and by EPSRC (Grant No.: EP/R012288/1, under the RISE programme.)

FundersFunder number
RISC-V Cryptographic Extensions Task Group
EPSRC - Engineering and Physical Sciences Research CouncilEP/R012288/1
Innovate UK Research105747

    Keywords

    • entropy source
    • fips 140-3
    • random
    • risc-v
    • sp 800-90b
    • trng

    ASJC Scopus subject areas

    • Electrical and Electronic Engineering
    • Safety, Risk, Reliability and Quality
    • Hardware and Architecture

    Fingerprint

    Dive into the research topics of 'Building a Modern TRNG: An Entropy Source Interface for RISC-V'. Together they form a unique fingerprint.

    Cite this