mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-22 02:06:18 +08:00
16 lines
370 B
Go
16 lines
370 B
Go
// Copyright 2024 Sun Yimin. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build (ppc64 || ppc64le) && !purego
|
|
|
|
package sm3
|
|
|
|
func kdf(baseMD *digest, keyLen int, limit int) []byte {
|
|
if limit < 4 {
|
|
return kdfGeneric(baseMD, keyLen, limit)
|
|
}
|
|
|
|
return kdfBy4(baseMD, keyLen, limit)
|
|
}
|