aeskw

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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