Skip to content

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

Open
rahulk1264 wants to merge 1 commit into
MystenLabs:mainfrom
rahulk1264:main
Open

Fixes #532 Add aes_decrypt_on_chain function for unified AES decryption#852
rahulk1264 wants to merge 1 commit into
MystenLabs:mainfrom
rahulk1264:main

Conversation

@rahulk1264
Copy link
Copy Markdown

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