Deprecated: This version of github.com/lestrrat-go/jwx is deprecated. Please use github.com/lestrrat-go/jwx/v3 or newer instead.

package keyconv

import "github.com/lestrrat-go/jwx/internal/keyconv"

Index

Functions

func ByteSliceKey

func ByteSliceKey(dst, src interface{}) error

func ECDSAPrivateKey

func ECDSAPrivateKey(dst, src interface{}) error

ECDSAPrivateKey assigns src to dst, converting its type from a non-pointer to a pointer

func ECDSAPublicKey

func ECDSAPublicKey(dst, src interface{}) error

ECDSAPublicKey assigns src to dst, converting its type from a non-pointer to a pointer

func Ed25519PrivateKey

func Ed25519PrivateKey(dst, src interface{}) error

func Ed25519PublicKey

func Ed25519PublicKey(dst, src interface{}) error

func RSAPrivateKey

func RSAPrivateKey(dst, src interface{}) error

RSAPrivateKey assigns src to dst. `dst` should be a pointer to a rsa.PrivateKey. `src` may be rsa.PrivateKey, *rsa.PrivateKey, or a jwk.Key

func RSAPublicKey

func RSAPublicKey(dst, src interface{}) error

RSAPublicKey assigns src to dst `dst` should be a pointer to a non-zero rsa.PublicKey. `src` may be rsa.PublicKey, *rsa.PublicKey, or a jwk.Key

Source Files

keyconv.go

Version
v1.2.31 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
3 weeks ago

Tools for package owners.