tailscale/tka
Tom DNetto bec9815f02 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
2023-07-19 15:33:01 -05:00
..
aum_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
aum.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
builder_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
builder.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
chaintest_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
deeplink_test.go tka: add function for generating signing deeplinks (#8385) 2023-06-20 09:36:37 -07:00
deeplink.go tka: add function for generating signing deeplinks (#8385) 2023-06-20 09:36:37 -07:00
key_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
key.go tka: guard against key-length panics when verifying signatures 2023-07-19 15:33:01 -05:00
scenario_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sig_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sig.go tka: guard against key-length panics when verifying signatures 2023-07-19 15:33:01 -05:00
state_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
state.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sync_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sync.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tailchonk_test.go tka: fix go vet complaint on copy of lock value in tailchonk_test.go (#8208) 2023-05-25 13:34:13 -07:00
tailchonk.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
tka_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
tka.go tka: allow checkpoint AUMs to change TKA state 2023-07-19 12:06:20 -05:00