jwkkid

package
v0.0.0-...-64dd8ac Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildJWK

func BuildJWK(keyBytes []byte, kt kms.KeyType) (*jwk.JWK, error)

BuildJWK builds a go jose JWK from keyBytes with key type kt.

func CreateKID

func CreateKID(keyBytes []byte, kt kms.KeyType) (string, error)

CreateKID creates a KID value based on the marshalled keyBytes of type kt. This function should be called for asymmetric public keys only (ECDSA DER or IEEE-P1363, ED25519, X25519, BLS12381G2). returns:

  • base64 raw (no padding) URL encoded KID
  • error in case of error

Types

This section is empty.

Jump to

Keyboard shortcuts

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