block

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AES

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

func (*AES) Decrypt

func (aes *AES) Decrypt(ciphertext []byte) []byte

func (*AES) Encrypt

func (aes *AES) Encrypt(input []byte) []byte

func (*AES) SetPublicKey

func (aes *AES) SetPublicKey(key []byte)

type Blowfish

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

func (*Blowfish) Decrypt

func (bf *Blowfish) Decrypt(input []byte) []byte

func (*Blowfish) Encrypt

func (bf *Blowfish) Encrypt(input []byte) []byte

func (*Blowfish) SetPublicKey

func (bf *Blowfish) SetPublicKey(key []byte)

type DES

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

func (*DES) Decrypt

func (des *DES) Decrypt(input []byte) []byte

func (*DES) Encrypt

func (des *DES) Encrypt(input []byte) []byte

func (DES) PKCS5UnPadding

func (des DES) PKCS5UnPadding(origData []byte) []byte

func (DES) Pkcs5Padding

func (des DES) Pkcs5Padding(ciphertext []byte, blockSize int) []byte

func (*DES) SetPublicKey

func (des *DES) SetPublicKey(key []byte)

Jump to

Keyboard shortcuts

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