gmsm/kdf/kdf_64bit_test.go
2024-03-07 17:35:48 +08:00

17 lines
267 B
Go

//go:build !(arm || mips)
package kdf
import (
"testing"
"github.com/emmansun/gmsm/sm3"
)
// This case should be failed on 32bits system.
func TestKdfPanic(t *testing.T) {
shouldPanic(t, func() {
Kdf(sm3.New(), []byte("123456"), 1<<37)
})
}