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)
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.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |