aesgcm

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package aesgcm implements content encryption algorithm AES-GCM for COSE as defined in RFC9053. https://datatracker.ietf.org/doc/html/rfc9053#name-aes-gcm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKey

func CheckKey(k key.Key) error

CheckKey checks whether the given key is a valid AES-GCM key.

func GenerateKey

func GenerateKey(alg int) (key.Key, error)

GenerateKey generates a new Key with given algorithm for AES-GCM.

func KeyFrom

func KeyFrom(alg int, k []byte) (key.Key, error)

KeyFrom returns a Key with given algorithm and bytes for AES-GCM.

func New

func New(k key.Key) (key.Encryptor, error)

New creates a key.Encryptor for the given AES-GCM key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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