MCPcopy
hub / github.com/nirui/sshwifty / getNewSocketCtlRandomSharedKey

Function getNewSocketCtlRandomSharedKey

application/controller/socket.go:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func getNewSocketCtlRandomSharedKey() string {
71 b := [32]byte{}
72
73 io.ReadFull(rand.Reader, b[:])
74
75 return base64.StdEncoding.EncodeToString(b[:])
76}
77
78func getSocketAuthKey(randomKey string, sharedKey string) []byte {
79 var k []byte

Callers 1

newSocketCtlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected