Skip to main content

Crate chacha_box_ietf

Crate chacha_box_ietf 

Source

Structs§

PublicKey
SecretKey

Enums§

Error
Errors returned by this crate.
Version
Wire format version for sealed boxes.

Functions§

seal
Encrypts plaintext for a recipient whose public key is public_key. A new key pair will be created for each message. The sealed box starts with the wire format Version of public_key as its leading byte.
seal_legacyDeprecated
Encrypts plaintext like seal but emits the legacy wire format without a version byte.
unseal
Decrypts the given ciphertext using the given secret key.