refactor: rename CLI to crypt and remove ECB terminology
Some checks failed
CI / build-and-test (push) Has been cancelled

This commit is contained in:
2026-01-12 22:12:05 +02:00
parent 4f90912a4d
commit dac009af1b
3 changed files with 15 additions and 16 deletions

View File

@@ -21,7 +21,7 @@ impl Algorithm {
matches!(self, Self::AesCbc)
}
/// Creates a new ECB-mode cipher instance for the specified algorithm.
/// Creates a new block cipher instance for the specified algorithm.
///
/// Parses the key string and instantiates either DES or AES based on the algorithm choice.
/// The key format depends on the algorithm:
@@ -111,7 +111,7 @@ impl Algorithm {
/// - The text length doesn't match the block size
/// - The text contains invalid characters for the given format
///
/// Parses text for ECB-mode algorithms (single block).
/// Parses text for block cipher algorithms (single block).
///
/// For CBC mode, use raw bytes directly instead of this method.
pub fn parse_text(&self, text: &str) -> Result<Vec<u8>, BlockError> {