hpsc-lab / SecureArithmetic.jl

Secure arithmetic operations using fully homomorphic encryption
https://hpsc-lab.github.io/SecureArithmetic.jl
MIT License
7 stars 1 forks source link

Add more arithmetic operations #8

Closed sloede closed 10 months ago

sloede commented 10 months ago

Currently, multiplication of SecureVectors by a real scalar is already possible. We should also have this for addition and subtraction.

Also, we would like to have the ability to negate a SecureVector, allowing to write something like -sv1 + 3 * sv2

sloede commented 10 months ago

After giving it some thought, defining addition/subtract of vectors and scalars does not seem to be such a good idea, since it would not match what Julia allows with Array. Since SecureArithmetic.jl is supposed to be as intuitive as possible, we will forego this option now and only add unary - (i.e., to negate a secure vector)