package signaturehash

Import Path
	github.com/pion/dtls/v3/pkg/crypto/signaturehash (on go.dev)

Dependency Relation
	imports 9 packages, and imported by 3 packages

Involved Source Files errors.go Package signaturehash provides the SignatureHashAlgorithm as defined in TLS 1.2
Package-Level Type Names (only one)
/* sort by: | */
Algorithm is a signature/hash algorithm pairs which may be used in digital signatures. https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1 Hash hash.Algorithm Signature signature.Algorithm func Algorithms() []Algorithm func ParseSignatureSchemes(sigs []tls.SignatureScheme, insecureHashes bool) ([]Algorithm, error) func SelectSignatureScheme(sigs []Algorithm, privateKey crypto.PrivateKey) (Algorithm, error) func SelectSignatureScheme(sigs []Algorithm, privateKey crypto.PrivateKey) (Algorithm, error)
Package-Level Functions (total 3)
Algorithms are all the know SignatureHash Algorithms.
ParseSignatureSchemes translates []tls.SignatureScheme to []signatureHashAlgorithm. It returns default signature scheme list if no SignatureScheme is passed.
SelectSignatureScheme returns most preferred and compatible scheme.