1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-20 02:46:10 -04:00
v2fly/proxy/vmess/aead/kdf_test.go

16 lines
497 B
Go
Raw Normal View History

2021-02-22 08:25:12 -05:00
package aead
import (
"encoding/hex"
"fmt"
"testing"
2021-02-22 08:49:36 -05:00
"github.com/stretchr/testify/assert"
2021-02-22 08:25:12 -05:00
)
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")
}