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

Function deriveTestKey

pkg/config/loader_test.go:496–501  ·  view source on GitHub ↗
(t *testing.T, password string)

Source from the content-addressed store, hash-verified

494}
495
496func deriveTestKey(t *testing.T, password string) []byte {
497 t.Helper()
498 key, err := deriveTestKeyBytes([]byte(password))
499 assert.NoError(t, err)
500 return key
501}
502
503func deriveTestKeyBytes(password []byte) ([]byte, error) {
504 os.Setenv("TRYSSH_MASTER_KEY", string(password))

Callers 1

Calls 1

deriveTestKeyBytesFunction · 0.85

Tested by

no test coverage detected