[][src]Module ibe::waters_naccache

Identity Based Encryption Waters-Naccache scheme on the BLS12-381 pairing-friendly elliptic curve.

Uses SHA3-512 for hashing to identities.

The structure of the byte serialisation of the various datastructures is not guaranteed to remain constant between releases of this library. All operations in this library are implemented to run in constant time.

Structs

CipherText

Encrypted message. Can only be decrypted with an user secret key.

Identity

Field parameters for an identity.

Message

A point on the paired curve that can be encrypted and decrypted.

PublicKey

Public key parameters generated by the PKG used to encrypt messages.

SecretKey

Secret key parameter generated by the PKG used to extract user secret keys.

UserSecretKey

Points on the paired curves that form the user secret key.

Functions

decrypt

Decrypt ciphertext to a message using a user secret key.

encrypt

Encrypt a message using the PKG public key and an identity.

extract_usk

Extract an user secret key for a given identity.

setup

Generate a keypair used by the Private Key Generator (PKG).