MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestDeriveKey_TooShort

Function TestDeriveKey_TooShort

pkg/utils/crypto_test.go:88–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

86}
87
88func TestDeriveKey_TooShort(t *testing.T) {
89 _, err := deriveKey([]byte("abc"))
90 assert.Error(t, err)
91}
92
93func TestDeriveKey_Valid(t *testing.T) {
94 key, err := deriveKey([]byte("mypassword"))

Callers

nothing calls this directly

Calls 1

deriveKeyFunction · 0.85

Tested by

no test coverage detected