Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ciphertext ¶
type Ciphertext struct {
// Random point rP
U kyber.Point
// Sigma attached to ID: sigma XOR H(rG_id)
V []byte
// ciphertext of the message M XOR H(sigma)
W []byte
}
func Encrypt ¶
Encrypt implements the cca identity based encryption scheme from https://crypto.stanford.edu/~dabo/pubs/papers/bfibe.pdf for more information about the scheme. - master is the master key on G1 - ID is the ID towards which we encrypt the message - msg is the actual message - seed is the random seed to generate the random element (sigma) of the encryption The suite must produce points which implements the `HashablePoint` interface.
Click to show internal directories.
Click to hide internal directories.