mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-22 02:06:18 +08:00
17 lines
258 B
Go
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)
|
|
})
|
|
}
|