fingerprint

package
v0.0.0-...-465bddc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fingerprint defines types to define a certificate fingerprint for certgraph

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fingerprint

type Fingerprint [sha256.Size]byte

Fingerprint sha256 of certificate bytes

func FromB64Hash

func FromB64Hash(hash string) Fingerprint

FromB64Hash returns a Fingerprint from a base64 encoded hash string

func FromHashBytes

func FromHashBytes(data []byte) Fingerprint

FromHashBytes returns a Fingerprint generated by the first len(Fingerprint) bytes

func FromHexHash

func FromHexHash(hash string) Fingerprint

FromHexHash returns a Fingerprint from a hex encoded hash string

func FromRawCertBytes

func FromRawCertBytes(data []byte) Fingerprint

FromRawCertBytes returns a Fingerprint generated by the provided bytes

func (*Fingerprint) B64Encode

func (fp *Fingerprint) B64Encode() string

B64Encode returns the b64 string of a Fingerprint

func (*Fingerprint) HexString

func (fp *Fingerprint) HexString() string

HexString print Fingerprint as uppercase hex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL