acrypto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(ciphertext, key, iv []byte) ([]byte, error)

func AesCBCEncrypt

func AesCBCEncrypt(plaintext, key, iv []byte) ([]byte, error)

func CBCDecrypt

func CBCDecrypt(block cipher.Block, ciphertext, iv []byte) ([]byte, error)

func CBCEncrypt

func CBCEncrypt(block cipher.Block, plaintext, iv []byte) ([]byte, error)

func DesCBCDecrypt

func DesCBCDecrypt(ciphertext, key, iv []byte) ([]byte, error)

func DesCBCEncrypt

func DesCBCEncrypt(plaintext, key, iv []byte) ([]byte, error)

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(src []byte) []byte

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(src []byte) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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