package fingerprint
import "github.com/pion/dtls/v3/pkg/crypto/fingerprint"
Package fingerprint provides a helper to create fingerprint string from certificate
Index ¶
- func Fingerprint(cert *x509.Certificate, algo crypto.Hash) (string, error)
- func HashFromString(s string) (crypto.Hash, error)
- func StringFromHash(hash crypto.Hash) (string, error)
Functions ¶
func Fingerprint ¶
Fingerprint creates a fingerprint for a certificate using the specified hash algorithm.
func HashFromString ¶
HashFromString allows looking up a hash algorithm by it's string representation.
func StringFromHash ¶
StringFromHash allows looking up a string representation of the crypto.Hash.
Source Files ¶
- Version
- v3.0.5 (latest)
- Published
- Mar 11, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 week ago –
Tools for package owners.