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) }