Documentation
¶
Index ¶
- Constants
- func Base64(raw []byte) string
- func FromBase64(raw string) ([]byte, error)
- func FromHex(raw string) ([]byte, error)
- func Hex(raw []byte) string
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func PKCS5Padding(r []byte, blockSize int) []byte
- func PKCS5UnPadding(r []byte) []byte
- func PKCS7Padding(r []byte, blockSize int) []byte
- func PKCS7UnPadding(r []byte) []byte
- func Padding(r []byte, typ, bz int) []byte
- func UnPadding(r []byte, typ int) []byte
- func ZeroPadding(r []byte, blockSize int) []byte
- func ZeroUnPadding(r []byte) []byte
Constants ¶
View Source
const ( NONE = iota PaddingZero PaddingPKCS5 PaddingPKCS7 NoPadding )
View Source
const ( ECB = iota CBC CTR OFB CFB )
View Source
const ( Bit64 = 64 Bit128 = 128 Bit256 = 256 Bit512 = 512 Bit1024 = 1024 Bit2048 = 2048 Bit4096 = 4096 )
View Source
const ( PirTypEC = iota PirTypPKCS1 PirTypPKCS8 )
Variables ¶
This section is empty.
Functions ¶
func FromBase64 ¶
func PKCS5UnPadding ¶
func PKCS7UnPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.