diff options
| author | qmuntal <quimmuntal@gmail.com> | 2025-12-03 11:20:41 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2025-12-04 08:39:49 -0800 |
| commit | 1681c3b67fe5f95377fd33b98dc1f7007cf28acf (patch) | |
| tree | d253b53b54c6de218266a68d6b10cb2f26078a58 /src/cmd/internal/script/scripttest | |
| parent | 7b67b68a0da091be2d7dc3e69c4df9a1a080d0de (diff) | |
| download | go-1681c3b67fe5f95377fd33b98dc1f7007cf28acf.tar.xz | |
crypto: use rand.IsDefaultReader instead of comparing to boring.RandReader
Several crypto functions accepting a rand parameter skip calling
boringcrypto when the rand is not boring.RandReader.
The new crypto/internal/rand package currently defines its own Reader
that wraps boring.RandReader. That will unintentionally bypass
boringcrypto when used with the aforementioned functions.
Fixes #76672
Change-Id: Ie0c1345530c734a23815f9593590b5d32604f54d
Reviewed-on: https://go-review.googlesource.com/c/go/+/726220
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/internal/script/scripttest')
0 files changed, 0 insertions, 0 deletions
