workaround

command module
v0.0.0-...-ce08b25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2023 License: Unlicense Imports: 8 Imported by: 0

README

Actually there's still a solution to detect failed verification of signatures in a way that cannot be poisonned by a supply chain attack, use its custom error type to detect it! So instead of comparing it to nil:

	if err != nil {
		fmt.Println("RSA Verification failed!")
		[...]
	}

you can do:

	if errors.Is(err, rsa.ErrVerification) {
		fmt.Println("RSA Verification failed!")
		[...]
	}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL