paddings

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PaddingClearText

func PaddingClearText(clearText []byte, padding CipherPadding, blockSize int) ([]byte, error)

PaddingClearText padding clearText with padding mode.

func UnPadding

func UnPadding(src []byte, padding CipherPadding) []byte

UnPadding unpadding src with padding mode.

Types

type CipherPadding

type CipherPadding string
const (
	No       CipherPadding = "No"
	Zero     CipherPadding = "ZERO"
	AnsiX923 CipherPadding = "ANSI X.923"
	ISO97971 CipherPadding = "ISO/IEC 9797-1"
	ISO10126 CipherPadding = "ISO 10126"
	PKCS5    CipherPadding = "PKCS5"
	PKCS7    CipherPadding = "PKCS7"
)

Jump to

Keyboard shortcuts

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