Webcentive RISC-V Reference

seed

Seed for cryptographic random bit generators

Address
0x015
Group
Unprivileged and user-level CSRs
Privilege
URW (privileged spec CSR listing, Unprivileged Zkr Extension CSR)
Access
read/write; lowest privilege U (user/unprivileged)
Address range
Standard read/write
Name in riscv-unified-db
Seed for cryptographic random bit generators

Privileged spec: Seed for cryptographic random bit generators

Description

The seed CSR provides an interface to a NIST SP 800-90B (Turan et al., 2018) or BSI AIS-31 (Killmann & Schindler, 2011) compliant physical Entropy Source (ES).

The CSR provides up to 16 physical entropy bits that can be used to seed cryptographic random bit generators. The write value is ignored by implementations; the write is used to signal polling and flushing.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
OPST31-30RW-H

Status bits returned by the entropy source.

Encodings are:

  • 0 - BIST
  • 1 - WAIT
  • 2 - ES16
  • 3 - DEAD
ENTROPY15-0RW-H

Sixteen bits of randomness.

This field is valid only when OPST is ES16. When OPST is not ES16, ENTROPY must be zero.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages