mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
rp2040: do not use GetRNG in crypto/rand
The crypto/rand package is used for sensitive cryptographic operations. Do not use the rp2040 RNG for this purpose, because it's not strong enough for cryptography. I think it is _possible_ to make use of the RP2040 RNG to create cryptographically secure pseudo-random numbers, but it needs some entropy calculation and secure hashing (blake2s or so) to make them truly unpredictable.
This commit is contained in:
committed by
Ron Evans
parent
5551ec7a1e
commit
d3863f337d
@@ -1,5 +1,5 @@
|
||||
//go:build nrf52840 || stm32 || (sam && atsamd51) || (sam && atsame5x) || rp2040
|
||||
// +build nrf52840 stm32 sam,atsamd51 sam,atsame5x rp2040
|
||||
//go:build nrf52840 || stm32 || (sam && atsamd51) || (sam && atsame5x)
|
||||
// +build nrf52840 stm32 sam,atsamd51 sam,atsame5x
|
||||
|
||||
package rand
|
||||
|
||||
|
||||
Reference in New Issue
Block a user