crypto

package
v0.0.0-...-6d89af4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AES128KeyLen = 128 / byteLen
	AES192KeyLen = 192 / byteLen
	AES256KeyLen = 256 / byteLen
)

Variables

View Source
var (
	// AesType : used to let the Encrypter/Decrypter know which type of AES to use
	AesType int = AES256KeyLen
)

Functions

func CFB_Dec

func CFB_Dec(key []byte, data []byte) ([]byte, error)

func CFB_Enc

func CFB_Enc(key []byte, data []byte) ([]byte, error)

func UnifyKeyLen

func UnifyKeyLen(key []byte, targetLen int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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