crypto

package
v0.0.0-...-3fb6d0c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECDHApply

func ECDHApply(key *ECDHKey, data string) (string, error)

func GenerateHMACKey

func GenerateHMACKey() ([]byte, error)

func HMAC

func HMAC(p *sync.Pool, key, data []byte) string

func LoadHMACKey

func LoadHMACKey(filename string) ([]byte, error)

func SaveECDHKey

func SaveECDHKey(filename string, ecdhKey *ECDHKey) error

func SaveHMACKey

func SaveHMACKey(filename string, hmacKey []byte) error

Types

type ECDHKey

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

func GenerateECDHKey

func GenerateECDHKey() (*ECDHKey, error)

func LoadECDHKey

func LoadECDHKey(filename string) (*ECDHKey, error)

func NewECDHKeyFromBytes

func NewECDHKeyFromBytes(keyBytes []byte) (*ECDHKey, error)

func (*ECDHKey) Bytes

func (k *ECDHKey) Bytes() []byte

Jump to

Keyboard shortcuts

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