signatureverify

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSASignatureVerifyStrategy

type ECDSASignatureVerifyStrategy struct {
}

func (ECDSASignatureVerifyStrategy) GetAlgorithmID

func (ECDSASignatureVerifyStrategy) VerifySignature

func (t ECDSASignatureVerifyStrategy) VerifySignature(_ crypto.Hash, key interface{}, calculatedSignature []byte, signatureBytes []byte) error

type HashAndVerifyStrategies

type HashAndVerifyStrategies struct {
	VerifyStrategy SignatureVerifyStrategy
	HashStrategy   crypto.Hash
}

func LookupHashAndVerifyStrategies

func LookupHashAndVerifyStrategies(algoIdentifier pkix.AlgorithmIdentifier) (*HashAndVerifyStrategies, error)

type RSASignatureVerifyStrategy

type RSASignatureVerifyStrategy struct {
}

func (RSASignatureVerifyStrategy) GetAlgorithmID

func (RSASignatureVerifyStrategy) VerifySignature

func (t RSASignatureVerifyStrategy) VerifySignature(hash crypto.Hash, key interface{}, calculatedSignature []byte, signature []byte) error

type SignatureVerifyStrategy

type SignatureVerifyStrategy interface {
	VerifySignature(hash crypto.Hash, key interface{}, calculatedSignature []byte, signature []byte) error
	GetAlgorithmID() x509.PublicKeyAlgorithm
}

Jump to

Keyboard shortcuts

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