type Encrypter …
type contentCipher …
type keyGenerator …
type keyEncrypter …
type keyDecrypter …
type genericEncrypter …
type recipientKeyInfo …
type EncrypterOptions …
func (eo *EncrypterOptions) WithHeader(k HeaderKey, v interface{ … }
func (eo *EncrypterOptions) WithContentType(contentType ContentType) *EncrypterOptions { … }
func (eo *EncrypterOptions) WithType(typ ContentType) *EncrypterOptions { … }
type Recipient …
func NewEncrypter(enc ContentEncryption, rcpt Recipient, opts *EncrypterOptions) (Encrypter, error) { … }
func NewMultiEncrypter(enc ContentEncryption, rcpts []Recipient, opts *EncrypterOptions) (Encrypter, error) { … }
func (ctx *genericEncrypter) addRecipient(recipient Recipient) (err error) { … }
func makeJWERecipient(alg KeyAlgorithm, encryptionKey interface{ … }
func newDecrypter(decryptionKey interface{ … }
func (ctx *genericEncrypter) Encrypt(plaintext []byte) (*JSONWebEncryption, error) { … }
func (ctx *genericEncrypter) EncryptWithAuthData(plaintext, aad []byte) (*JSONWebEncryption, error) { … }
func (ctx *genericEncrypter) Options() EncrypterOptions { … }
func (obj JSONWebEncryption) Decrypt(decryptionKey interface{ … }
func (obj JSONWebEncryption) DecryptMulti(decryptionKey interface{ … }