ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

seed

T1 riscv register register
Seed for cryptographic random bit generators
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Zkr)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeU
ExtensionsZkr

Summary

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).

Syntax / Encoding

CSR 0x015 (U-mode, RW)

Bitfields (2)

BitsFieldDescription
31:30OPSTStatus bits returned by the entropy source. Encodings are: * 0 - BIST * 1 - WAIT * 2 - ES16 * 3 - DEAD
15:0ENTROPYSixteen bits of randomness. This field is valid only when OPST is ES16. When OPST is not ES16, ENTROPY must be zero.

Reference Notes

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.