xpadding

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Padding_ISO7816_4

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

模式2(IEC 9797-1填充,或 PBOC2.0填充):

以0x80和0x00构成的字节序列填充,0x80只出现在最前面,仅仅只出现且一次必须出现,剩下的字节以0x00填充.

func Padding_PKCS5

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

func Padding_Pboc added in v1.0.2

func Padding_Pboc(data string, blocksize int) (out string, err error)

func Padding_Pkcs7 added in v1.0.2

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

func UnPadding_ISO7816_4

func UnPadding_ISO7816_4(plain []byte, blockSize int) []byte

func UnPadding_PKCS5

func UnPadding_PKCS5(origData []byte) []byte

func UnPadding_Pkcs7 added in v1.0.2

func UnPadding_Pkcs7(src []byte, blockSize int) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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