Skip to content

[test] expand xts test cases add more edge and negative tests.#231

Merged
meilu-git merged 3 commits intomainfrom
meilu/aes_xts_tests
Mar 12, 2026
Merged

[test] expand xts test cases add more edge and negative tests.#231
meilu-git merged 3 commits intomainfrom
meilu/aes_xts_tests

Conversation

@meilu-git
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands the Rust AES-XTS test suite under api/tests/ to cover additional edge cases and negative scenarios for both single-shot and streaming APIs.

Changes:

  • Add a single-shot sweep across representative valid data unit lengths (DULs) and small unit counts.
  • Add larger streaming roundtrip coverage and additional negative/edge tests (wrong tweak/key, non-aligned ciphertext, empty input/update, size-query tweak invariants, tweak overflow in streaming decrypt).
  • Add a boundary test asserting HsmAesXtsAlgo::new() accepts the maximum supported DUL (8192).

@meilu-git meilu-git force-pushed the meilu/aes_xts_tests branch 3 times, most recently from 4cb88cd to 4568703 Compare March 11, 2026 16:44
@meilu-git meilu-git force-pushed the meilu/aes_xts_tests branch from debdfe6 to fe9f131 Compare March 12, 2026 16:14
@rajesh-gali rajesh-gali requested a review from mhatrevi March 12, 2026 17:19
@meilu-git meilu-git force-pushed the meilu/aes_xts_tests branch from fe9f131 to 9ee4eea Compare March 12, 2026 18:04
@meilu-git meilu-git merged commit fd9a616 into main Mar 12, 2026
7 checks passed
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.

3 participants