Documentation
¶
Index ¶
- type ArithmeticBackend
- func (b ArithmeticBackend) Add(value int)
- func (b ArithmeticBackend) Decrypt() int
- func (b ArithmeticBackend) Encrypt(value int)
- func (b ArithmeticBackend) Free()
- func (b ArithmeticBackend) GenerateKeys()
- func (b ArithmeticBackend) GetCipher() blob
- func (b ArithmeticBackend) GetParam(key string) string
- func (b ArithmeticBackend) GetPublicKey() blob
- func (b ArithmeticBackend) GetSecretKey() blob
- func (b ArithmeticBackend) Init()
- func (b ArithmeticBackend) Multiply(value int)
- func (b ArithmeticBackend) Negate()
- func (b ArithmeticBackend) SetAlgorithm(algorithm string)
- func (b ArithmeticBackend) SetCipher(cipher blob)
- func (b ArithmeticBackend) SetParam(key string, value string)
- func (b ArithmeticBackend) SetPublicKey(publicKey blob)
- func (b ArithmeticBackend) SetSecretKey(secretKey blob)
- type BooleanCircuitBackend
- func (b BooleanCircuitBackend) AND(cipher_x blob, cipher_y blob) blob
- func (b BooleanCircuitBackend) COPY(cipher blob) blob
- func (b BooleanCircuitBackend) Decrypt(cipher blob) int
- func (b BooleanCircuitBackend) Encode(value int) blob
- func (b BooleanCircuitBackend) Encrypt(value int) blob
- func (b BooleanCircuitBackend) Free()
- func (b BooleanCircuitBackend) GenerateKeys()
- func (b BooleanCircuitBackend) GetParam(key string) string
- func (b BooleanCircuitBackend) GetPublicKey() blob
- func (b BooleanCircuitBackend) GetSecretKey() blob
- func (b BooleanCircuitBackend) Init()
- func (b BooleanCircuitBackend) MUX(cipher_x blob, cipher_y blob, cipher_z blob) blob
- func (b BooleanCircuitBackend) NAND(cipher_x blob, cipher_y blob) blob
- func (b BooleanCircuitBackend) NOR(cipher_x blob, cipher_y blob) blob
- func (b BooleanCircuitBackend) NOT(cipher blob) blob
- func (b BooleanCircuitBackend) OR(cipher_x blob, cipher_y blob) blob
- func (b BooleanCircuitBackend) SetAlgorithm(algorithm string)
- func (b BooleanCircuitBackend) SetParam(key string, value string)
- func (b BooleanCircuitBackend) SetPublicKey(publicKey blob)
- func (b BooleanCircuitBackend) SetSecretKey(secretKey blob)
- func (b BooleanCircuitBackend) XNOR(cipher_x blob, cipher_y blob) blob
- func (b BooleanCircuitBackend) XOR(cipher_x blob, cipher_y blob) blob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArithmeticBackend ¶
type ArithmeticBackend struct {
// contains filtered or unexported fields
}
func CreateArithmeticHomomorphineBackend ¶
func CreateArithmeticHomomorphineBackend(name string) ArithmeticBackend
func (ArithmeticBackend) Add ¶
func (b ArithmeticBackend) Add(value int)
func (ArithmeticBackend) Decrypt ¶
func (b ArithmeticBackend) Decrypt() int
func (ArithmeticBackend) Encrypt ¶
func (b ArithmeticBackend) Encrypt(value int)
func (ArithmeticBackend) Free ¶
func (b ArithmeticBackend) Free()
func (ArithmeticBackend) GenerateKeys ¶
func (b ArithmeticBackend) GenerateKeys()
func (ArithmeticBackend) GetCipher ¶
func (b ArithmeticBackend) GetCipher() blob
func (ArithmeticBackend) GetParam ¶
func (b ArithmeticBackend) GetParam(key string) string
func (ArithmeticBackend) GetPublicKey ¶
func (b ArithmeticBackend) GetPublicKey() blob
func (ArithmeticBackend) GetSecretKey ¶
func (b ArithmeticBackend) GetSecretKey() blob
func (ArithmeticBackend) Init ¶
func (b ArithmeticBackend) Init()
func (ArithmeticBackend) Multiply ¶
func (b ArithmeticBackend) Multiply(value int)
func (ArithmeticBackend) Negate ¶
func (b ArithmeticBackend) Negate()
func (ArithmeticBackend) SetAlgorithm ¶
func (b ArithmeticBackend) SetAlgorithm(algorithm string)
func (ArithmeticBackend) SetCipher ¶
func (b ArithmeticBackend) SetCipher(cipher blob)
func (ArithmeticBackend) SetParam ¶
func (b ArithmeticBackend) SetParam(key string, value string)
func (ArithmeticBackend) SetPublicKey ¶
func (b ArithmeticBackend) SetPublicKey(publicKey blob)
func (ArithmeticBackend) SetSecretKey ¶
func (b ArithmeticBackend) SetSecretKey(secretKey blob)
type BooleanCircuitBackend ¶
type BooleanCircuitBackend struct {
// contains filtered or unexported fields
}
func CreateBooleanCircuitHomomorphineBackend ¶
func CreateBooleanCircuitHomomorphineBackend(name string) BooleanCircuitBackend
func (BooleanCircuitBackend) AND ¶
func (b BooleanCircuitBackend) AND(cipher_x blob, cipher_y blob) blob
func (BooleanCircuitBackend) COPY ¶
func (b BooleanCircuitBackend) COPY(cipher blob) blob
func (BooleanCircuitBackend) Decrypt ¶
func (b BooleanCircuitBackend) Decrypt(cipher blob) int
func (BooleanCircuitBackend) Encode ¶
func (b BooleanCircuitBackend) Encode(value int) blob
func (BooleanCircuitBackend) Encrypt ¶
func (b BooleanCircuitBackend) Encrypt(value int) blob
func (BooleanCircuitBackend) Free ¶
func (b BooleanCircuitBackend) Free()
func (BooleanCircuitBackend) GenerateKeys ¶
func (b BooleanCircuitBackend) GenerateKeys()
func (BooleanCircuitBackend) GetParam ¶
func (b BooleanCircuitBackend) GetParam(key string) string
func (BooleanCircuitBackend) GetPublicKey ¶
func (b BooleanCircuitBackend) GetPublicKey() blob
func (BooleanCircuitBackend) GetSecretKey ¶
func (b BooleanCircuitBackend) GetSecretKey() blob
func (BooleanCircuitBackend) Init ¶
func (b BooleanCircuitBackend) Init()
func (BooleanCircuitBackend) MUX ¶
func (b BooleanCircuitBackend) MUX(cipher_x blob, cipher_y blob, cipher_z blob) blob
func (BooleanCircuitBackend) NAND ¶
func (b BooleanCircuitBackend) NAND(cipher_x blob, cipher_y blob) blob
func (BooleanCircuitBackend) NOR ¶
func (b BooleanCircuitBackend) NOR(cipher_x blob, cipher_y blob) blob
func (BooleanCircuitBackend) NOT ¶
func (b BooleanCircuitBackend) NOT(cipher blob) blob
func (BooleanCircuitBackend) OR ¶
func (b BooleanCircuitBackend) OR(cipher_x blob, cipher_y blob) blob
func (BooleanCircuitBackend) SetAlgorithm ¶
func (b BooleanCircuitBackend) SetAlgorithm(algorithm string)
func (BooleanCircuitBackend) SetParam ¶
func (b BooleanCircuitBackend) SetParam(key string, value string)
func (BooleanCircuitBackend) SetPublicKey ¶
func (b BooleanCircuitBackend) SetPublicKey(publicKey blob)
func (BooleanCircuitBackend) SetSecretKey ¶
func (b BooleanCircuitBackend) SetSecretKey(secretKey blob)
func (BooleanCircuitBackend) XNOR ¶
func (b BooleanCircuitBackend) XNOR(cipher_x blob, cipher_y blob) blob
func (BooleanCircuitBackend) XOR ¶
func (b BooleanCircuitBackend) XOR(cipher_x blob, cipher_y blob) blob
Click to show internal directories.
Click to hide internal directories.