mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-25 11:46:19 +08:00
17 lines
267 B
Go
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)
|
||
|
})
|
||
|
}
|