Documentation ¶
Index ¶
- func Decrypt(g1 *bn256.G1, g2 *bn256.G2) *bn256.GT
- func EncryptWithG1(g1 *bn256.G1, r io.Reader) (*bn256.G1, *bn256.GT, error)
- func EncryptWithG2(g2 *bn256.G2, r io.Reader) (*bn256.G2, *bn256.GT, error)
- func GenKeyPair(r io.Reader) (*bn256.G1, *bn256.G2, error)
- func Pair(g1 *bn256.G1, g2 *bn256.G2) *bn256.GT
- func RandomGT(r io.Reader) (*bn256.GT, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
g1 and g2: one of them might be the "private key", the other one might be the message.
func GenKeyPair ¶
Generates a Key-Pair (G1 and G2).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.