From 8464ad14f709d87016a3629fd2e1fae7c7e988ce Mon Sep 17 00:00:00 2001 From: Quan guanyu Date: Mon, 29 Sep 2025 14:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9A=8F=E6=9C=BA=E6=95=B0?= =?UTF-8?q?=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drbg/ctr_drbg_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drbg/ctr_drbg_test.go b/drbg/ctr_drbg_test.go index 90faeb2..6447891 100644 --- a/drbg/ctr_drbg_test.go +++ b/drbg/ctr_drbg_test.go @@ -308,7 +308,7 @@ func TestGmCtrDRBG_Validation(t *testing.T) { func TestCtrDrbg_Destroy(t *testing.T) { entropyInput := make([]byte, 64) _, _ = rand.Reader.Read(entropyInput) - cd, err := NewCtrDrbg(sm4.NewCipher, 16, SECURITY_LEVEL_ONE, true, entropyInput[:16], entropyInput[16:24], nil) + cd, err := NewCtrDrbg(sm4.NewCipher, 16, SECURITY_LEVEL_ONE, true, entropyInput[:32], entropyInput[32:64], nil) if err != nil { t.Errorf("NewCtrDrbg failed: %v", err) }