akw

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package akw implements a Key Encryption Algorithm AES.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New128

func New128() keymanage.Algorithm

func New192

func New192() keymanage.Algorithm

func New256

func New256() keymanage.Algorithm

func NewKeyWrapper

func NewKeyWrapper(privateKey []byte) keymanage.KeyWrapper

Types

type Algorithm

type Algorithm struct {
	// contains filtered or unexported fields
}

func (*Algorithm) NewKeyWrapper

func (alg *Algorithm) NewKeyWrapper(key keymanage.Key) keymanage.KeyWrapper

type KeyWrapper

type KeyWrapper struct {
	// contains filtered or unexported fields
}

func (*KeyWrapper) UnwrapKey

func (w *KeyWrapper) UnwrapKey(data []byte, opts any) ([]byte, error)

UnwrapKey unwraps cek with AWS Key Wrap algorithm defined in RFC 3394.

func (*KeyWrapper) WrapKey

func (w *KeyWrapper) WrapKey(cek []byte, opts any) ([]byte, error)

WrapKey wraps cek with AWS Key Wrap algorithm defined in RFC 3394.

type Options

type Options struct {
	Key []byte
}

Jump to

Keyboard shortcuts

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