aes

package
Version: v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 5 Imported by: 6

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.

Source Files

Jump to

Keyboard shortcuts

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