Tom DNetto 2a7356f46d
tka: guard against key-length panics when verifying signatures
In late 2022 a subtle but crucial part of documentation was added to ed25519.Verify: It
will panic if len(publicKey) is not [PublicKeySize].

02ed0e5e67

This change catches that error so it won't lead to a panic.

Signed-off-by: Tom DNetto <tom@tailscale.com>
Updates https://github.com/tailscale/corp/issues/8568
(cherry picked from commit bec9815f028a06311ea0ed28eb9ae98c167c1a9c)
2023-07-21 23:28:11 -07:00
..