Documentation
¶
Index ¶
- Variables
- func AddConst(encryptedData []byte, addValue float64) ([]byte, error)
- func ArithmeticProgressionElementN(firstMember []byte, dif []byte, n []byte) ([]byte, error)
- func ArithmeticProgressionSum(firstMember []byte, dif []byte, numberOfMembers []byte) ([]byte, error)
- func ArrayMean(encryptedDataArray [][]byte) ([]byte, error)
- func ArraySum(encryptedDataArray [][]byte) ([]byte, error)
- func Covariance(encryptedDataArray1 [][]byte, encryptedDataArray2 [][]byte) ([]byte, error)
- func DivByConst(encryptedDataDividend []byte, encryptedDataDivisor float64) ([]byte, error)
- func MovingAverage(encryptedDataArray [][]byte, windowSize int) ([][]byte, error)
- func Mult(encryptedData []byte, encryptedData2 []byte) ([]byte, error)
- func MultByConst(encryptedData []byte, multValue float64) ([]byte, error)
- func Pow2(encryptedData []byte) ([]byte, error)
- func Subtract(encryptedData []byte, encryptedData2 []byte) ([]byte, error)
- func SubtractConst(encryptedData []byte, subValue float64) ([]byte, error)
- func Sum(encryptedData []byte, encryptedData2 []byte) ([]byte, error)
- func Variance(encryptedDataArray [][]byte) ([]byte, error)
- type ArrayOperation
- type ArrayOperation2
- type ArrayOperationWithParamReturningArray
- type ConstOperation
- type Operation1
- type Operation2
- type Operation3
Constants ¶
This section is empty.
Variables ¶
var CkksEvalkey rlwe.EvaluationKey
var CkksEvaluator ckks.Evaluator
var CkksParams ckks.Parameters
Functions ¶
func AddConst ¶
AddConst Adds a float64 addValue to encrypted data, producing []byte of encrypted data containing a sum of encryptedData data and addValue when decrypted
func ArithmeticProgressionElementN ¶
ArithmeticProgressionElementN Calculates the N element of arithmetic progression in []byte. Requires the first element of progression and the difference between two members of progression
func ArithmeticProgressionSum ¶
func ArithmeticProgressionSum(firstMember []byte, dif []byte, numberOfMembers []byte) ([]byte, error)
ArithmeticProgressionSum Calculates sum of arithmetic progression in []byte. Requires the first element of progression, the difference between two members of progression and number of elements in progression
func Covariance ¶
Covariance Calculates covariance coefficient between two encrypted arrays in []byte
func DivByConst ¶
DivByConst Divides encryptedDataDividend by float64 encryptedDataDivisor, producing []byte of encrypted data containing a quotient of encryptedDataDividend and encryptedDataDivisor when decrypted
func MovingAverage ¶
MovingAverage Returns an array, containing len(encryptedDataArray) - windowSize elements, each representing a calculated mean of numbers within a shifting window of size windowSize
func Mult ¶
Mult Multiplies encryptedData by encryptedData2, producing []byte of encrypted data containing a product of encryptedData and encryptedData2 when decrypted
func MultByConst ¶
MultByConst Multiplies encryptedData by float64 multValue, producing []byte of encrypted data containing a product of encryptedData and multValue when decrypted
func Pow2 ¶
Pow2 raises encryptedData to the power of 2 by multiplying it to itself, producing []byte of encrypted data containing a power of 2 of encryptedData when decrypted
func Subtract ¶
Subtract Subtracts encryptedData2 from encryptedData, producing []byte of encrypted data containing a difference of encryptedData data and encryptedData2 when decrypted
func SubtractConst ¶
SubtractConst Subtracts a float64 subValue from encrypted data, producing []byte of encrypted data containing a difference of encryptedData data and subValue when decrypted