Decrypt an IBE ciphertext
For proper operation k_bytes should be the result of calling
TransportSecretKey::decrypt where the same derived_public_key_bytes
and derivation_id were used when creating the ciphertext (with
IBECiphertext::encrypt).
Returns the plaintext, or Err if decryption failed
StaticdeserializeDeserialize an IBE ciphertext
Returns Err if the encoding is not valid
StaticencryptEncrypt a message using IBE
The message can be of arbitrary length
The seed must be exactly 256 bits (32 bytes) long and should be generated with a cryptographically secure random number generator. Do not reuse the seed for encrypting another message or any other purpose.
An IBE (identity based encryption) ciphertext