saes

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AESSIV64 is byte size of SIV SAES Key which must be twice as long as AES32
	AESSIV64 = 64

	Kind = "saes"
)

Variables

View Source
var (
	ErrEncryptedDataIsEmpty    = errors.New("encrypted data is empty")
	ErrEncryptedDataIsWrongLen = errors.New("encrypted data is wrong len")
)

Functions

This section is empty.

Types

type SAES

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

func FromBinary

func FromBinary(raw []byte) (*SAES, error)

func NewSAES

func NewSAES() (*SAES, error)

func (*SAES) Decrypt

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

func (*SAES) Encrypt

func (a *SAES) Encrypt(origin []byte) ([]byte, error)

func (*SAES) FromBinary

func (a *SAES) FromBinary(raw []byte) (localCipher.Cipher, error)

func (*SAES) Kind

func (a *SAES) Kind() string

func (*SAES) ToBinary

func (a *SAES) ToBinary() ([]byte, error)

Jump to

Keyboard shortcuts

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