aes

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 5 Imported by: 7

Documentation

Overview

Package aes contains provides AES Key Wrap and ECB mode implementations

Index

Constants

This section is empty.

Variables

This section is empty.

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL