We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024d6ea commit d127a16Copy full SHA for d127a16
wgcfg/key.go
@@ -229,8 +229,7 @@ func ParseSymmetricHexKey(s string) (SymmetricKey, error) {
229
return key, nil
230
}
231
232
-// SymmetricKey is a chacha20poly1305 key.
233
-// It is used by WireGuard to represent pre-shared symmetric keys.
+// SymmetricKey is a 32-byte value used as a pre-shared key.
234
type SymmetricKey [chacha20poly1305.KeySize]byte
235
236
func (k SymmetricKey) Base64() string { return base64.StdEncoding.EncodeToString(k[:]) }
0 commit comments