convert

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

Types

type BlockEncrypter

type BlockEncrypter struct {
	// contains filtered or unexported fields
}

func NewBlockEncrypter

func NewBlockEncrypter(key []byte, cipherType, encrypterType, paddingType string) *BlockEncrypter

func (BlockEncrypter) Decrypt

func (be BlockEncrypter) Decrypt(encryptedData []byte) []byte

func (BlockEncrypter) Encrypt

func (be BlockEncrypter) Encrypt(data []byte) []byte

type PKCS5

type PKCS5 struct {
	BlockSize int
}

func (PKCS5) Add

func (p PKCS5) Add(origContent []byte) []byte

func (PKCS5) Remove

func (p PKCS5) Remove(paddedContent []byte) []byte

type Padder

type Padder interface {
	Add(origContent []byte) []byte
	Remove(paddedContent []byte) []byte
}

Jump to

Keyboard shortcuts

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