xdes

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CNT_MODE_DECRYPT = 0
	CNT_MODE_ENCRYPT = 1
)

Variables

This section is empty.

Functions

func DesEcb

func DesEcb(keyValue []byte, txtValue []byte, flag int) ([]byte, error)

func GetSubKeyDES

func GetSubKeyDES(ckKey []byte, dvsData []byte) ([]byte, error)

GetSubKeyDES 密钥分散

func GetSubKey_S

func GetSubKey_S(key, dvs string) (out string, err error)

func PbocMac

func PbocMac(key []byte, iv []byte, data []byte, macLen int) ([]byte, error)

func TripleDesEcb

func TripleDesEcb(keyValue []byte, txtValue []byte, flag int) ([]byte, error)

func TripleDes_S

func TripleDes_S(key string, plain string, flag int) (out string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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