crypto

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESCipher

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

func NewAESCipher

func NewAESCipher(key []byte) *AESCipher

func (AESCipher) CBCDecrypt

func (c AESCipher) CBCDecrypt(crytedByte []byte) ([]byte, error)

func (AESCipher) CBCEncrypt

func (c AESCipher) CBCEncrypt(origData []byte) ([]byte, error)

type AesKey

type AesKey interface {
	[16]byte | [24]byte | [32]byte
}

Jump to

Keyboard shortcuts

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