jose2go: github.com/dvsekhvalnov/jose2go/aes Index | Files

package aes

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

Package aes contains provides AES Key Wrap and ECB mode implementations

Index

Package Files

ecb.go key_wrap.go

func KeyUnwrap Uses

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 Uses

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

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

func NewECBDecrypter Uses

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter creates BlockMode for AES decryption in ECB mode

func NewECBEncrypter Uses

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

NewECBEncrypter creates BlockMode for AES encryption in ECB mode

Package aes imports 5 packages (graph) and is imported by 4 packages. Updated 2019-11-05. Refresh now. Tools for package owners.