aead

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package aead package provides AEAD cryptographic functionality for the Gordafarid project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlgorithmKeySize

func GetAlgorithmKeySize(algoName string) (int, error)

GetAlgorithmKeySize returns the key size in bytes for the given algorithm name.

func IsCryptoSupported

func IsCryptoSupported(algoName, password string) error

IsCryptoSupported checks if the given algorithm and password are supported. It returns an error if the algorithm is not supported or if the password length is invalid.

func NewAEAD

func NewAEAD(algoName string, key []byte) (cipher.AEAD, error)

NewAEAD creates a new AEAD cipher based on the given algorithm name and key. It returns the AEAD cipher and an error if any occurred during the process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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