package fingerprint

import "github.com/pion/dtls/v3/pkg/crypto/fingerprint"

Package fingerprint provides a helper to create fingerprint string from certificate

Index

Functions

func Fingerprint

func Fingerprint(cert *x509.Certificate, algo crypto.Hash) (string, error)

Fingerprint creates a fingerprint for a certificate using the specified hash algorithm.

func HashFromString

func HashFromString(s string) (crypto.Hash, error)

HashFromString allows looking up a hash algorithm by it's string representation.

func StringFromHash

func StringFromHash(hash crypto.Hash) (string, error)

StringFromHash allows looking up a string representation of the crypto.Hash.

Source Files

fingerprint.go hash.go

Version
v3.0.5 (latest)
Published
Mar 11, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 week ago

Tools for package owners.