...

Package aescbc

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

Overview ▾

Constants

const (
    NonceSize = 16
)

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