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

package aescbc

import "github.com/lestrrat-go/jwx/jwe/internal/aescbc"

Index

Constants

const (
	NonceSize = 16
)

Types

type BlockCipherFunc

type BlockCipherFunc func([]byte) (cipher.Block, error)

type Hmac

type Hmac struct {
	// contains filtered or unexported fields
}

func New

func New(key []byte, f BlockCipherFunc) (hmac *Hmac, err error)

func (Hmac) ComputeAuthTag

func (c Hmac) ComputeAuthTag(aad, nonce, ciphertext []byte) ([]byte, error)

func (Hmac) NonceSize

func (c Hmac) NonceSize() int

NonceSize fulfills the crypto.AEAD interface

func (Hmac) Open

func (c Hmac) Open(dst, nonce, ciphertext, data []byte) ([]byte, error)

Open fulfills the crypto.AEAD interface

func (Hmac) Overhead

func (c Hmac) Overhead() int

Overhead fulfills the crypto.AEAD interface

func (Hmac) Seal

func (c Hmac) Seal(dst, nonce, plaintext, data []byte) []byte

Seal fulfills the crypto.AEAD interface

Source Files

aescbc.go

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

Tools for package owners.