Expand description
serde-encrypt encrypts/decrypts any strct
s and enum
s 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§
- Encrypted
Message - Encrypted message structure.
- Error
- Error type.
- Receiver
Combined Key - (
Alice's public key
,Bob's private key
) pair. - Sender
Combined Key - (
Alice's private key
,Bob's public key
) pair.
Enums§
- Error
Kind - Kinds of errors.
Traits§
- AsShared
Key - 32-byte key shared among sender and receiver secretly.
- Receiver
KeyPair Core - X25519 Key-pair generated by receiver.
- Sender
KeyPair Core - X25519 Key-pair generated by sender.