]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/cryptotest: add tests for the cipher.Stream interface
authorManuel Sabin <msabin27@gmail.com>
Thu, 27 Jun 2024 19:06:55 +0000 (15:06 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 2 Aug 2024 14:54:04 +0000 (14:54 +0000)
commitc5f2e4e56e2d3b13737de597be62f3020d59c137
treef5cd3b39bb71f1567c691ff8d501ad345c2e15d9
parenta9ad410801a762282eddad132c5346462881a2cb
crypto/internal/cryptotest: add tests for the cipher.Stream interface

This CL creates tests for the cipher.Stream interface in the new
cryptotest package.  This set of tests is called from the tests of
implementations of the Stream interface e.g. ctr_test.go, ofb_test.go,
rc4_test.go, etc.

Updates #25309

Change-Id: I57204ef9f4c0ec09b94e88466deb03c6715e411d
Reviewed-on: https://go-review.googlesource.com/c/go/+/595564
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Russell Webb <russell.webb@protonmail.com>
src/crypto/cipher/cfb_test.go
src/crypto/cipher/ctr_test.go
src/crypto/cipher/ofb_test.go
src/crypto/internal/cryptotest/stream.go [new file with mode: 0644]
src/crypto/rc4/rc4_test.go