gmsm/kdf/kdf_64bit_test.go
2024-08-26 17:07:24 +08:00

17 lines
258 B
Go

//go:build !(arm || mips || s390x)
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)
})
}