Browse Source

wgcfg: improve SymmetricKey docs

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
David Crawshaw 3 months ago
parent
commit
d127a1647e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      wgcfg/key.go

+ 1
- 2
wgcfg/key.go View File

@@ -229,8 +229,7 @@ func ParseSymmetricHexKey(s string) (SymmetricKey, error) {
229 229
 	return key, nil
230 230
 }
231 231
 
232
-// SymmetricKey is a chacha20poly1305 key.
233
-// It is used by WireGuard to represent pre-shared symmetric keys.
232
+// SymmetricKey is a 32-byte value used as a pre-shared key.
234 233
 type SymmetricKey [chacha20poly1305.KeySize]byte
235 234
 
236 235
 func (k SymmetricKey) Base64() string             { return base64.StdEncoding.EncodeToString(k[:]) }

Loading…
Cancel
Save