Crate serde_encrypt[][src]

Expand description

serde-encrypt encrypts/decrypts any strcts and enums that implement serde::{Serialize, Deserialize}.

See README.md for basic usage and implementation details.

Modules

encrypt

Encryption implementation

key
serialize

Serializer trait and default implementation.

shared_key

serde-serializable shared key.

traits

Traits to enable encrypted-serialization to your struct/enum.

Structs

EncryptedMessage

Encrypted message structure.

Error

Error type.

ReceiverCombinedKey

(Alice's public key, Bob's private key) pair.

SenderCombinedKey

(Alice's private key, Bob's public key) pair.

Enums

ErrorKind

Kinds of errors.

Traits

AsSharedKey

32-byte key shared among sender and receiver secretly.

ReceiverKeyPairCore

X25519 Key-pair generated by receiver.

SenderKeyPairCore

X25519 Key-pair generated by sender.