sign

package
v1.1.32 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SharedInfo = "freego-ecdh-aes-gcm"

Variables

This section is empty.

Functions

func AppendBodyMessage

func AppendBodyMessage(path, data, nonce string, time, plan, usr int64) []byte

func CheckPublicKey

func CheckPublicKey(c cache.Cache, requestObject *wire.PublicKey, cipher crypto.Cipher) error

func CreatePublicKey

func CreatePublicKey(key, tag string, usr int64, cipher crypto.Cipher) (*wire.PublicKey, error)

func DigestBodyMessage

func DigestBodyMessage(path, data, nonce string, time, plan, usr int64) []byte

func HKDFKey

func HKDFKey(shared []byte, nonce string) ([]byte, error)

func ResolvePQCipher

func ResolvePQCipher(hook CipherHook, usr int64) (crypto.Cipher, error)

func SignAndDigestBodyMessage

func SignAndDigestBodyMessage(path, data, nonce string, time, plan, usr int64, key []byte) ([]byte, []byte)

func SignBodyMessage

func SignBodyMessage(path, data, nonce string, time, plan, usr int64, key []byte) []byte

Types

type CipherHook

type CipherHook func(usr int64) (crypto.Cipher, error)

func CipherHookFromLoader

func CipherHookFromLoader(loader CipherKeyLoader) CipherHook

type CipherKeyLoader

type CipherKeyLoader func(usr int64) (serverPrkB64, clientPubB64 string, err error)

Jump to

Keyboard shortcuts

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