Expand description
§Public/secret keypair tools
Provides an implementation for handling public/private keypairs based on libsodium’s crypto_box, which uses X25519.
With the protected feature, KeyPair also provides locked-memory
constructors such as KeyPair::generate_locked_keypair; the key types
come from protected.
Structs§
- KeyPair
- Public/secret keypair for use with
crate::dryocbox::DryocBoxand libsodium-compatible public-key encryption.
Functions§
- is_
valid_ public_ key - Checks if the given public key is valid according to X25519 rules.
Type Aliases§
- Public
Key - Stack-allocated public key type alias.
- Secret
Key - Stack-allocated secret key type alias.
- Stack
KeyPair - Stack-allocated key pair type alias.