go-aes-key-wrap: github.com/NickBall/go-aes-key-wrap Index | Files

package keywrap

import "github.com/NickBall/go-aes-key-wrap"

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

Index

Package Files

keywrap.go

func Unwrap Uses

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 Uses

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)

Package keywrap imports 4 packages (graph) and is imported by 5 packages. Updated 2018-04-27. Refresh now. Tools for package owners.