go-ethereum/crypto
vickkkkkyy 8581125a21
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run
crypto: add hash length check in nocgo VerifySignature (#33839)
I was tracing a signature verification issue in a nocgo build and found
that `VerifySignature` doesn't validate hash length. #33104 added the
check to `Sign` and `sigToPub` but missed this one. The cgo path in
`secp256k1/secp256.go` already rejects non-32-byte hashes, so the nocgo
path should do the same — otherwise a wrong-length hash gets passed to
decred's `Verify` and silently gives a bogus result.
2026-05-10 11:49:17 +02:00
..
blake2b crypto: using testing.B.Loop (#32645) 2025-09-19 17:12:41 -06:00
bn256 crypto/bn256: fix comment in MulXi (#34659) 2026-04-13 13:57:11 +02:00
ecies crypto/ecies: fix ECIES invalid-curve handling (#33669) 2026-01-29 10:56:12 +01:00
keccak crypto/keccak: vendor in golang.org/x/crypto/sha3 (#33323) 2026-02-03 14:55:27 -07:00
kzg4844 crypto/kzg4844: add cell-related functions (#34766) 2026-04-23 15:39:07 +02:00
secp256k1 crypto/secp256k1: fix coordinate check 2026-02-17 17:09:18 +01:00
secp256r1 core/vm: implement EIP-7951 - precompile for secp256r1 (#31991) 2025-07-07 20:59:45 +02:00
signify crypto/signify: fix fuzz test compilation (#33402) 2025-12-13 12:09:07 +08:00
crypto.go cmd/keeper: use the ziren keccak precompile (#32816) 2025-10-20 11:52:02 +02:00
crypto_test.go crypto: fix unit test (#34811) 2026-04-24 10:02:34 +08:00
keccak.go crypto/keccak: vendor in golang.org/x/crypto/sha3 (#33323) 2026-02-03 14:55:27 -07:00
keccak_ziren.go crypto: implement ziren keccak state (#32996) 2025-10-23 14:02:13 +02:00
signature_cgo.go crypto: use pure Go signature implementation in tinygo (#31878) 2025-05-23 11:14:40 +02:00
signature_nocgo.go crypto: add hash length check in nocgo VerifySignature (#33839) 2026-05-10 11:49:17 +02:00
signature_test.go crypto: using testing.B.Loop (#32645) 2025-09-19 17:12:41 -06:00