File: kdf_test.go

package info (click to toggle)
golang-github-hirochachacha-go-smb2 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 952 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
package smb2

import (
	"bytes"
	"testing"
)

func TestKDF(t *testing.T) {
	expected := []byte{0xca, 0x39, 0x28, 0xa6, 0x66, 0x4e, 0x3c, 0xfd, 0xc8, 0x7e, 0xef, 0x2d, 0xff, 0x7c, 0x78, 0xac}
	if !bytes.Equal(kdf([]byte("foo"), []byte("bar"), []byte("baz")), expected) {
		t.Error("fail")
	}
}