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
| Field | Bits | Type | Description |
|---|---|---|---|
OPST | 31-30 | RW-H | Status bits returned by the entropy source. Encodings are:
|
ENTROPY | 15-0 | RW-H | Sixteen bits of randomness. This field is valid only when |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/Zkr/seed.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)