github.com/emmansun/gmsm@v0.29.1/kdf/kdf_64bit_test.go (about)

     1  //go:build !(arm || mips || s390x)
     2  
     3  package kdf
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/emmansun/gmsm/sm3"
     9  )
    10  
    11  // This case should be failed on 32bits system.
    12  func TestKdfPanic(t *testing.T) {
    13  	shouldPanic(t, func() {
    14  		Kdf(sm3.New, []byte("123456"), 1<<37)
    15  	})
    16  }