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