ssaead

package
v0.0.0-...-7893bb9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DataMaxSize = 0x3FFF

Variables

This section is empty.

Functions

func GetAEADCiphers

func GetAEADCiphers(method string) func(string, connect.IConn) (connect.IConn, error)

func HKDF_SHA1

func HKDF_SHA1(secret, salt, info, key []byte) error

func MD5

func MD5(data []byte) []byte

Types

type IAEADCipher

type IAEADCipher interface {
	KeySize() int
	SaltSize() int
	NonceSize() int
	NewEncrypter(key []byte, salt []byte) (cipher.AEAD, error)
	NewDecrypter(key []byte, salt []byte) (cipher.AEAD, error)
}

Jump to

Keyboard shortcuts

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