thumbprint

package
v0.0.0-...-ccd4941 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package thumbprint provides a simple and easy-to-use interface for working with JSON Web Key (JWK) Thumbprints as defined by RFC 7638.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey = errors.New("thumbprint: invalid key")
)

Functions

func Generate

func Generate(value jwk.Value, h crypto.Hash) ([]byte, error)

Generate returns the JWK Thumbprint for the given JWK following the steps defined in RFC 7638.

func GenerateString

func GenerateString(value jwk.Value, h crypto.Hash) (string, error)

GenerateString returns the JWK Thumbprint for the given JWK following the steps defined in RFC 7638 as a base64 encoded string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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