crypto

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ECBSize = 7
)

Functions

func AES

func AES(handle cipher.Stream, m []byte) []byte

func AESInit

func AESInit(k []byte, iv []byte, decrypt bool) cipher.Stream

func AES_CFB

func AES_CFB(k []byte, iv []byte, m []byte, decrypt bool) []byte

func CBC

func CBC(b []byte) []byte

func CRC32

func CRC32(m []byte) ([]byte, error)

func DES

func DES(k []byte, d []byte) []byte

func DESL

func DESL(k []byte, d []byte) []byte

func DES_ECB

func DES_ECB(k []byte, d []byte) []byte

func ECB

func ECB(in []byte) []byte

func ECBP

func ECBP(in []byte) []byte

func HMAC_MD5

func HMAC_MD5(k []byte, ms ...[]byte) ([]byte, error)

func HMAC_SHA256

func HMAC_SHA256(k []byte, ms ...[]byte) []byte

func MD4

func MD4(ms ...[]byte) ([]byte, error)

func MD5

func MD5(ms ...[]byte) ([]byte, error)

func NewAESCFB8

func NewAESCFB8(k []byte, iv []byte, decrypt bool) cipher.Stream

func Nonce

func Nonce(n int) ([]byte, error)

func PAD

func PAD(b []byte, n 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