Module dispatcher

Module dispatcher 

Source
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:

  1. Commands are parsed and displayed to the user
  2. Interactive prompts gather necessary parameters
  3. Appropriate cryptographic functions are called
  4. 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