jwtkey

package
v0.0.0-...-4b7be03 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package jwtkey provides utility functions for generating, serializing and deserializing JWT ECDSA keys.

TODO: Replace EC function usages with PKCS8 functions for supporting ECDSA and RSA keys instead of only supporting ECDSA. The fact this package only supports ECDSA is unnecessary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey() (*ecdsa.PrivateKey, error)

GenerateKey is a convenience function for generating an ECDSA key for use as a JWT key. It uses the P256 curve. To use other curves use the crypto/ecdsa package directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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