crypto

package
v0.0.0-...-326d044 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

type AssetDecryptor

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

func New

func New() *AssetDecryptor

func (AssetDecryptor) Decrypt

func (desc AssetDecryptor) Decrypt(input []byte) ([]byte, error)

func (AssetDecryptor) Encrypt

func (desc AssetDecryptor) Encrypt(input []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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