keywrap

package module
v0.0.0-...-1c3aa3e Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: MIT Imports: 4 Imported by: 18

README

Build Status Go Report Card codecov

go-aes-key-wrap

Golang implementation of the AES Key Wrap algorithm as specified in RFC 3394

Documentation

Overview

Package keywrap provides an AES-KW keywrap implementation as defined in RFC-3394

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(block cipher.Block, cipherText []byte) ([]byte, error)

Unwrap decrypts the provided cipher text with the given AES cipher (and corresponding key), using the AES Key Wrap algorithm (RFC-3394). The decrypted cipher text is verified using the default IV and will return an error if validation fails.

func Wrap

func Wrap(block cipher.Block, cek []byte) ([]byte, error)

Wrap encrypts the provided key data (cek) with the given AES cipher (and corresponding key), using the AES Key Wrap algorithm (RFC-3394)

Types

This section is empty.

Jump to

Keyboard shortcuts

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