package fingerprint

import "github.com/pion/dtls/v2/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
v2.2.12 (latest)
Published
Jul 20, 2024
Platform
linux/amd64
Imports
5 packages
Last checked
1 day ago

Tools for package owners.