bfvMath

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BfvEvalKey rlwe.EvaluationKey
View Source
var BfvEvaluator bfv.Evaluator
View Source
var BfvParams bfv.Parameters

Functions

func ArraySum

func ArraySum(encryptedDataArray [][]byte) ([]byte, error)

ArraySum Returns the encrypted sum of all elements of passed array in []byte

func Mult

func Mult(encryptedData []byte, encryptedData2 []byte) ([]byte, error)

Mult Multiplies encryptedData by encryptedData2, producing []byte of encrypted data containing a product of encryptedData and encryptedData2 when decrypted

func MultByPositiveConst

func MultByPositiveConst(encryptedData []byte, multValue uint64) ([]byte, error)

MultByPositiveConst Multiplies encryptedData by uint64 multValue, producing []byte of encrypted data containing a product of encryptedData and multValue when decrypted

func Subtract

func Subtract(encryptedData []byte, encryptedData2 []byte) ([]byte, error)

Subtract Subtracts encryptedData2 from encryptedData, producing []byte of encrypted data containing a difference of encryptedData data and encryptedData2 when decrypted

func Sum

func Sum(encryptedData []byte, encryptedData2 []byte) ([]byte, error)

Sum Adds encryptedData to encryptedData2, producing []byte of encrypted data containing a sum of encryptedData data and encryptedData2 when decrypted

Types

type ArrayOperation

type ArrayOperation func([][]byte) ([]byte, error)

type ConstOperation

type ConstOperation func([]byte, uint64) ([]byte, error)

type Operation2

type Operation2 func([]byte, []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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