sddes

package
v0.0.0-...-064255a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(crypted, key []byte, iv []byte) ([]byte, error)

func Encrypt

func Encrypt(origData, key []byte, iv []byte) ([]byte, error)

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func TripleDecrypt

func TripleDecrypt(crypted, key []byte, iv []byte) ([]byte, error)

3DES解密

func TripleEncrypt

func TripleEncrypt(origData, key []byte, iv []byte) ([]byte, error)

3DES加密

func ZeroPadding

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

func ZeroUnPadding

func ZeroUnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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