aes

package
v1.1.2 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: 7 Imported by: 0

Documentation

Overview

Package aes is the legacy AES-GCM import path.

New code should import the focused replacement package:

import "github.com/InsideGallery/core/pki/aesgcm"

Compatibility: existing AES-GCM exports remain available for downstream consumers that still import pki/aes. Do not add new helpers here; add AES-GCM behavior to pki/aesgcm so call sites avoid a local name collision with crypto/aes.

Index

Constants

View Source
const (
	AES32 = 32
	AES24 = 24
	AES16 = 16
)

Variables

View Source
var ErrInvalidAESSize = errors.New("invalid AES key size, must be 16, 24, or 32")

Functions

This section is empty.

Types

type AES

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

func NewAES

func NewAES(size int) (*AES, error)

func NewAESStrict added in v1.1.0

func NewAESStrict(size int) (*AES, error)

func (*AES) Decrypt

func (a *AES) Decrypt(encrypted []byte) ([]byte, error)

func (*AES) Encrypt

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

func (*AES) FromBinary

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

func (*AES) Kind

func (a *AES) Kind() string

func (*AES) ToBinary

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

Jump to

Keyboard shortcuts

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