algorithmregistry

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AlgorithmRegistry

func AlgorithmRegistry(algorithmOptions []string) (*signature.AlgorithmRegistryConfig, error)

AlgorithmRegistry accepts a list of algorithms as strings, parses and formats them into a registry.

func CheckEntryAlgorithms

func CheckEntryAlgorithms(pubKey crypto.PublicKey, alg crypto.Hash, algorithmRegistry *signature.AlgorithmRegistryConfig) (bool, error)

CheckEntryAlgorithms checks that the combination public key and message digest algorithm are allowed given an algorithm registry.

Types

type UnsupportedAlgorithm

type UnsupportedAlgorithm struct {
	Pub crypto.PublicKey
	Alg crypto.Hash
}

func (*UnsupportedAlgorithm) Error

func (e *UnsupportedAlgorithm) Error() string

Jump to

Keyboard shortcuts

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