OP-TEE / optee_os

Trusted side of the TEE
Other
1.59k stars 1.07k forks source link

core: drivers: riscv_zkr_rng: limit seed reading time #6963

Closed lyctw closed 2 months ago

lyctw commented 3 months ago
If the attempts to read SEED exceed 1 second for 16-bit
randomness, we consider it a failure.

Also, move seed CSR field encodings to the header file.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Alvin Chang <alvinga@andestech.com>
Tested-by: Alvin Chang <alvinga@andestech.com>
GseoC commented 2 months ago

Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>

lyctw commented 2 months ago

Tag applied, thanks @GseoC !

jforissier commented 2 months ago

@lyctw thanks!