Hunter0x7c7
2022-08-11 b8230139fb40edea387617b6accd8371e37eda58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package aead
 
import (
    "encoding/hex"
    "fmt"
    "testing"
 
    "github.com/stretchr/testify/assert"
)
 
func TestKDFValue(t *testing.T) {
    GeneratedKey := KDF([]byte("Demo Key for KDF Value Test"), "Demo Path for KDF Value Test", "Demo Path for KDF Value Test2", "Demo Path for KDF Value Test3")
    fmt.Println(hex.EncodeToString(GeneratedKey))
    assert.Equal(t, "53e9d7e1bd7bd25022b71ead07d8a596efc8a845c7888652fd684b4903dc8892", hex.EncodeToString(GeneratedKey), "Should generate expected KDF Value")
}