[−][src]Module keybear_core::crypto
Primitives for encrypting/decrypting message bodies.
Structs
PublicKey | A Diffie-Hellman public key, corresponding to an |
SharedSecret | The result of a Diffie-Hellman key exchange. |
StaticSecret | A Diffie-Hellman secret key that can be used to compute multiple |
Traits
StaticSecretExt | Add functions to the crypto secret key to make it easier to use. |
Functions
decrypt | Decrypt a chacha20poly1305 encoded JSON string into an object. |
encrypt | Encrypt a serializable object into a chacha20poly1305 encoded JSON string. |
Type Definitions
Nonce | Nonce type (96-bits/12-bytes). |