// 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 !purego

package sm3

func kdf(baseMD *digest, keyLen int, limit int) []byte {
	if useSM3NI || limit < 4 {
		return kdfGeneric(baseMD, keyLen, limit)
	}
	return kdfBy4(baseMD, keyLen, limit)
}
