Skip to content

Add legacy cipher modules (TEA, RedPike, AveMaria) and expose modular legacy import; update README and tests#3

Merged
SWORDIntel merged 1 commit into
mainfrom
codex/fix-legacy-avemarie-cipher-support
May 11, 2026
Merged

Add legacy cipher modules (TEA, RedPike, AveMaria) and expose modular legacy import; update README and tests#3
SWORDIntel merged 1 commit into
mainfrom
codex/fix-legacy-avemarie-cipher-support

Conversation

@SWORDIntel
Copy link
Copy Markdown
Owner

Motivation

  • Provide backward-compatible implementations of legacy ciphers for interoperability and migration workflows.
  • Allow importing individual legacy cipher implementations from their own modules instead of a single monolithic implementation file.

Description

  • Added new modules src/crypto_standalone/symmetric/tea.py, src/crypto_standalone/symmetric/redpike.py, and src/crypto_standalone/symmetric/avemaria.py implementing TEA, RedPike, and AveMariaCipher respectively with input validation and block/phrase encrypt/decrypt APIs.
  • Refactored src/crypto_standalone/symmetric/legacy_ciphers.py into a thin aggregator that re-exports TEA, RedPike, and AveMariaCipher via __all__.
  • Updated README.md to document the Legacy Ciphers (Interoperability Only) usage pattern and to advise against using these for new systems.
  • Extended tests/unit/test_legacy_ciphers.py with TestModularUsageAndCompatibility tests that verify single-module imports and parse the new source files with ast.parse(..., feature_version=(3, 7)) to ensure Python 3.7 syntax compatibility.

Testing

  • Ran the updated legacy cipher unit tests in tests/unit/test_legacy_ciphers.py with pytest and the tests completed successfully.
  • Ran the repository unit test suite with pytest -q and the test run passed without failures.

Codex Task

@SWORDIntel SWORDIntel merged commit e8097bb into main May 11, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant