algorithms

package
v0.0.0-...-da2d6c7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AeadAes256CbcHmac256Algorithm

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

func NewAeadAes256CbcHmac256Algorithm

func NewAeadAes256CbcHmac256Algorithm(key keys.AeadAes256CbcHmac256, encType encryption.Type, algorithmVersion byte) AeadAes256CbcHmac256Algorithm

func (*AeadAes256CbcHmac256Algorithm) Decrypt

func (a *AeadAes256CbcHmac256Algorithm) Decrypt(ciphertext []byte) ([]byte, error)

func (*AeadAes256CbcHmac256Algorithm) Encrypt

func (a *AeadAes256CbcHmac256Algorithm) Encrypt(cleartext []byte) ([]byte, error)

type Algorithm

type Algorithm interface {
	Encrypt([]byte) ([]byte, error)
	Decrypt([]byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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