Expand description
§Command Dispatcher Module
This module handles the routing and execution of CLI commands. It takes parsed command-line arguments and dispatches them to the appropriate cryptographic functions while providing user interaction and formatted output.
§Architecture
The dispatcher follows a pattern where:
- Commands are parsed and displayed to the user
- Interactive prompts gather necessary parameters
- Appropriate cryptographic functions are called
- Results are formatted and displayed
§Error Handling
All functions return Result<()> to enable proper error propagation
and user-friendly error messages.
Functions§
- dispatch_
command - Dispatch and execute the appropriate command based on parsed CLI arguments
- handle_
sign - Handle RSA signing operations
- handle_
verify - Handle RSA signature verification operations