ageinternal

package
v0.0.0-...-49146f6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AEADDecrypt

func AEADDecrypt(key []byte, size int, ciphertext []byte) ([]byte, error)

AEADDecrypt decrypts a message of an expected fixed size.

The message size is limited to mitigate multi-key attacks, where a ciphertext can be crafted that decrypts successfully under multiple keys. Short ciphertexts can only target two keys, which has limited impact.

func AEADEncrypt

func AEADEncrypt(key, plaintext []byte) ([]byte, error)

AEADEncrypt encrypts a message with a one-time key.

Types

This section is empty.

Directories

Path Synopsis
Package format implements the age file format.
Package format implements the age file format.

Jump to

Keyboard shortcuts

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