Skip to content

Commit d127a16

Browse files
committed
wgcfg: improve SymmetricKey docs
Signed-off-by: David Crawshaw <[email protected]>
1 parent 024d6ea commit d127a16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wgcfg/key.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ func ParseSymmetricHexKey(s string) (SymmetricKey, error) {
229229
return key, nil
230230
}
231231

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.
234233
type SymmetricKey [chacha20poly1305.KeySize]byte
235234

236235
func (k SymmetricKey) Base64() string { return base64.StdEncoding.EncodeToString(k[:]) }

0 commit comments

Comments
 (0)