pre

package
v0.0.0-...-16eb0c8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptByOwner

func DecryptByOwner(A curve.Point, a *big.Int, decryptFunc DecryptClosure) (err error)

func DecryptByReceiver

func DecryptByReceiver(APrime curve.Point, b *big.Int, decryptFunc DecryptClosure) (err error)

func Encrypt

func Encrypt(publicKey curve.Point, encryptFunc EncryptClosure) (A curve.Point, err error)

func GenerateReKey

func GenerateReKey(a, b *big.Int) (rkAB curve.Point)

func ReEncrypt

func ReEncrypt(A, rkAB curve.Point) (APrime curve.Point)

Types

type DecryptClosure

type DecryptClosure func(key []byte) (err error)

func NewDecryptClosure

func NewDecryptClosure(input io.Reader, output io.Writer) DecryptClosure

type EncryptClosure

type EncryptClosure func(key []byte) (err error)

func NewEncryptClosure

func NewEncryptClosure(input io.Reader, output io.Writer) EncryptClosure

Jump to

Keyboard shortcuts

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