jwkkid

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildJWK added in v0.1.6

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