crypto

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(inArr []byte, blockSize int) []byte

func PKCS5Trim

func PKCS5Trim(inArr []byte) []byte

func Sha256Hmac

func Sha256Hmac(input []byte, key []byte) []byte

Types

type AESCbcPKCS5

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

func NewAESCbcPKCS5

func NewAESCbcPKCS5(key []byte, iv []byte) AESCbcPKCS5

func (AESCbcPKCS5) Decrypt

func (a AESCbcPKCS5) Decrypt(ciphertext []byte) []byte

func (AESCbcPKCS5) Encrypt

func (a AESCbcPKCS5) Encrypt(cleartext []byte) (cipherText []byte)

Jump to

Keyboard shortcuts

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