Source File
kdf.go
Belonging Package
github.com/hirochachacha/go-smb2
// ref: NIST SP 800-108 5.1
package smb2
import (
)
// KDF in Counter Mode with h = 256, r = 32, L = 128
func kdf(, , []byte) []byte {
:= hmac.New(sha256.New, )
.Write([]byte{0x00, 0x00, 0x00, 0x01})
.Write()
.Write([]byte{0x00})
.Write()
.Write([]byte{0x00, 0x00, 0x00, 0x80})
return .Sum(nil)[:16]
}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |