Crate tink_hybrid

source ·
Expand description

Implementations of the HybridEncrypt and HybridDecrypt primitives.

The functionality of Hybrid Encryption is represented as a pair of primitives (interfaces):

  • HybridEncrypt for encryption of data
  • HybridDecrypt for decryption of data

Implementations of these interfaces are secure against adaptive chosen ciphertext attacks. In addition to plaintext the encryption takes an extra parameter contextInfo, which usually is public data implicit from the context, but should be bound to the resulting ciphertext, i.e. the ciphertext allows for checking the integrity of context_info (but there are no guarantees wrt. the secrecy or authenticity of context_info).

Modules

  • This module provides subtle implementations of hybrid encryption primitives.

Structs

Constants

Functions