Module utils

Module utils 

Source
Expand description

Utility functions and convenience wrappers for common cryptographic operations.

Structs§

EncryptedAndSigned
Encrypt and sign a message (encrypt-then-sign pattern).
EncryptedMessage
Encrypted message with metadata.
SignedMessage
Signed message with signature.

Enums§

UtilError
Errors for utility operations.

Functions§

decrypt_file
Decrypt a file.
encrypt_file
Encrypt a file.
generate_and_save_key
Generate a random key and save it to a file (for testing/development).
load_key
Load a key from a file.

Type Aliases§

UtilResult
Result type for utility operations.