MCPcopy Create free account
hub / github.com/WireGuard/wgctrl-go / NewKey

Function NewKey

wgtypes/types.go:112–121  ·  view source on GitHub ↗

NewKey creates a Key from an existing byte slice. The byte slice must be exactly 32 bytes in length.

(b []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

parseKeyMethod · 0.92
MustHexKeyFunction · 0.92
parseKeyFunction · 0.92
GenerateKeyFunction · 0.85
ParseKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected