Versions in this module Expand all Collapse all v0 v0.0.7 Apr 9, 2024 v0.0.6 Mar 21, 2024 Changes in this version + func AttachCertificateToJWK(jwk *jose.JSONWebKey, cert *x509.Certificate) error + func ExtractKey(in any) (any, error) + func FromEncryptedJWK(r io.Reader, secret []byte) (*jose.JSONWebKey, error) + func FromJWK(r io.Reader) (*jose.JSONWebKey, error) + func FromPEM(r io.Reader) (any, error) + func GenerateDefaultKeyPair() (crypto.PublicKey, crypto.PrivateKey, error) + func GenerateKeyPair(kty KeyType) (crypto.PublicKey, crypto.PrivateKey, error) + func IsUsable(key any) error + func PublicKey(priv any) (crypto.PublicKey, error) + func PublicKeyFingerprint(key any) ([]byte, error) + func ToDERBytes(key any) (string, []byte, error) + func ToEncryptedJWK(key *jose.JSONWebKey, secret []byte) (string, error) + func ToJWK(key any) (*jose.JSONWebKey, error) + func ToPEM(w io.Writer, key any) error + func ToPublicJWKS(keys ...crypto.PublicKey) (*jose.JSONWebKeySet, error) + func VerifyPair(pubkey crypto.PublicKey, key crypto.PrivateKey) error + func VerifyPublicKey(input any, key crypto.PublicKey) error + type KeyType uint + const EC + const ED25519 + const RSA