Skip to content

Fixes #532 Add aes_decrypt_on_chain function for unified AES decryption #852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rahulk1264
Copy link

Summary

This PR introduces a new function aes_decrypt_on_chain to provide a unified interface for AES decryption, supporting multiple modes like AES128/256 CTR and CBC.

Changes

  • Added the aes_decrypt_on_chain function to the aes module.
  • Updated the public API to export this function.
  • Added unit tests to verify decryption functionality across different modes and invalid input cases.

Testing

Tests were added to cover:

  • Valid decryption for supported modes (AES128_CTR, AES256_CBC, etc.).
  • Handling of invalid input (e.g., unsupported modes).

Impact

This change does not introduce breaking changes. It adds a new, flexible decryption function for on-chain AES use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant