]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/cryptotest: add common tests for the hash.Hash interface
authorManuel Sabin <msabin27@gmail.com>
Fri, 7 Jun 2024 18:50:42 +0000 (14:50 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 9 Jul 2024 15:52:04 +0000 (15:52 +0000)
commit73186ba00251b3ed8baaab36e4f5278c7681155b
treebf12bbe909e1df2ea1d962aabe9ba76eb154983d
parent87ec2c959c73e62bfae230ef7efca11ec2a90804
crypto/internal/cryptotest: add common tests for the hash.Hash interface

This CL creates the cryptotest package to host a suite of tests
for interfaces that are implemented in the crypto package.  This CL
includes a set of tests for the hash.Hash interface, and calls these tests from the tests of hash.Hash implementations in crypto/.

Tests for other interfaces will be included in subsequent CLs.

Updates #25309

Change-Id: Ic47086fd7f585e812c8b0d2186c50792c773781e
Reviewed-on: https://go-review.googlesource.com/c/go/+/592855
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Russell Webb <russell.webb@protonmail.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
src/crypto/hmac/hmac_test.go
src/crypto/internal/cryptotest/hash.go [new file with mode: 0644]
src/crypto/md5/md5_test.go
src/crypto/sha1/sha1_test.go
src/crypto/sha256/sha256_test.go
src/crypto/sha512/sha512_test.go
src/go/build/deps_test.go