Deprecated: This version of github.com/lestrrat-go/jwx is deprecated. Please use github.com/lestrrat-go/jwx/v3 or newer instead.
package content_crypt
import "github.com/lestrrat-go/jwx/jwe/internal/content_crypt"
Index ¶
- type Cipher
- type Generic
- func NewGeneric(alg jwa.ContentEncryptionAlgorithm) (*Generic, error)
- func (c Generic) Algorithm() jwa.ContentEncryptionAlgorithm
- func (c Generic) Decrypt(cek, iv, ciphertext, tag, aad []byte) ([]byte, error)
- func (c Generic) Encrypt(cek, plaintext, aad []byte) ([]byte, []byte, []byte, error)
- func (c Generic) KeySize() int
Types ¶
type Cipher ¶
type Cipher interface { Decrypt([]byte, []byte, []byte, []byte, []byte) ([]byte, error) KeySize() int }
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
Generic encrypts a message by applying all the necessary modifications to the keys and the contents
func NewGeneric ¶
func NewGeneric(alg jwa.ContentEncryptionAlgorithm) (*Generic, error)
func (Generic) Algorithm ¶
func (c Generic) Algorithm() jwa.ContentEncryptionAlgorithm
func (Generic) Decrypt ¶
func (Generic) Encrypt ¶
func (Generic) KeySize ¶
Source Files ¶
- Version
- v1.2.31 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 weeks ago –
Tools for package owners.