Versions in this module Expand all Collapse all v0 v0.1.0 Nov 6, 2021 Changes in this version + const UseEnc + const UseSig + var ErrKeyNotFound = errors.New("json web key is not found") + type Key jose.JSONWebKey + func GenerateEncryptionKey(kid string, alg string, bits int) *Key + func GenerateSignatureKey(kid string, alg string, bits int) *Key + func (k *Key) IsPublicAsymmetric() bool + func (k *Key) IsSymmetric() bool + func (k *Key) Public() *Key + type KeySet struct + func NewKeySet(keys ...*Key) *KeySet + func ReadKeySet(reader io.Reader) (*KeySet, error) + func (s *KeySet) Count() int + func (s *KeySet) KeyById(kid string) (*Key, error) + func (s *KeySet) KeyForEncryption(alg string) (*Key, error) + func (s *KeySet) KeyForSigning(alg string) (*Key, error) + func (s *KeySet) MarshalJSON() ([]byte, error) + func (s *KeySet) ToPublic() *KeySet + func (s *KeySet) UnmarshalJSON(bytes []byte) error