algorithm

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DECRYPT 解密模式
	DECRYPT = 0
	// ENCRYPT 加密模式
	ENCRYPT = 1
)

Variables

This section is empty.

Functions

func CalcPBOCMacDES

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

CalcPBOCMacDES pboc mac 3des

func DESECB

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

DESECB single des for ecb mode flag 0:解密,1:加密

func GetSubKeyDES

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

GetSubKeyDES 密钥分散

func TripleDESECB

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

TripleDESECB triple des for ecb mode flag 0:解密,1:加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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