crypto

package
v0.0.0-...-1250840 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const TAG_LENGTH_BYTES = 16

Variables

This section is empty.

Functions

func AesgcmDecrypt

func AesgcmDecrypt(key, nonce, data, mac []byte) ([]byte, error)

AesgcmDecrypt ...

func AesgcmEncrypt

func AesgcmEncrypt(key, nonce, input []byte) ([]byte, error)

AesgcmEncrypt ...

func HKDFderiveSecrets

func HKDFderiveSecrets(inputKeyMaterial, info []byte, outputLength int) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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