package aes

import "github.com/dvsekhvalnov/jose2go/aes"

Package aes contains provides AES Key Wrap and ECB mode implementations

Index

Functions

func KeyUnwrap

func KeyUnwrap(encryptedCek, kek []byte) ([]byte, error)

KeyUnwrap decrypts previously encrypted key (CEK) with KEK key using AES Key Wrap (rfc 3394) algorithm

func KeyWrap

func KeyWrap(cek, kek []byte) ([]byte, error)

KeyWrap encrypts provided key (CEK) with KEK key using AES Key Wrap (rfc 3394) algorithm

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter creates BlockMode for AES decryption in ECB mode

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

NewECBEncrypter creates BlockMode for AES encryption in ECB mode

Source Files

ecb.go key_wrap.go

Version
v1.6.0
Published
Dec 6, 2023
Platform
js/wasm
Imports
5 packages
Last checked
1 day ago

Tools for package owners.