Crate ncryptf

Crate ncryptf 

Source

Modules§

client
rocket

Macros§

auth
The ncryptf::auth!() macro provides the appropriate generic implementation details of FromRequest to allow User entities to be returned as a Rocket request guard (FromRequest). The core features of ncryptf authorization verification are implemented through this macro. If you wish to utilize ncryptf’s authorization features you must perform the following.
ek_route
EkRoute provides a generic route which you can use to generate ephemeral (single use) encryption keys to bootstrap your request/response cycle within your application.

Structs§

Authorization
Generates, validates, and parses Authorization header information
Keypair
Represents a generic keypair
Request
A request that emits a encrypted string for submission to the server.
Response
Response allows for decrypting of a request
Signature
Represents a signature and provides utility methods for validating signatures on a request.
Token
Authorization token data to be either stored locally, or server side in a cache.

Enums§

NcryptfError
Errors that ncryptf may encounter during encrypting and decrypting data - generalized.

Functions§

randombytes_buf
Returns len random bytes a Vec using dryoc