Program apps/garbled/examples/montgomery.mpcl

RSA encryption with Montgomery modular multiplication.

./garbled -e -v -i 0x321af130 examples/montgomery.mpcl
./garbled -v -i 0x6d7472,9,0xd60b2b09,0x10001 examples/montgomery.mpcl

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt
func Decrypt(cipher, d, n uint) uint
func Encrypt
func Encrypt(msg, e, n uint) uint
func main
func main(g Garbler, privShare Size) (uint, uint)

Types

type Garbler struct { msg Size privShare Size pubN Size pubE Size }
type Size = uint64