Skip to content

Update serialization tests to handle class name length and potential …#1394

Merged
miguelaranda0 merged 3 commits into
google:masterfrom
miguelaranda0:testup
Oct 1, 2025
Merged

Update serialization tests to handle class name length and potential …#1394
miguelaranda0 merged 3 commits into
google:masterfrom
miguelaranda0:testup

Conversation

@miguelaranda0

Copy link
Copy Markdown
Collaborator

…EOFException.

Adjusts the expected hex encoding in EdDSA key serialization tests to dynamically include the length of the class name. Also, modifies invalid key deserialization tests in both EdDSA and ML-DSA to catch both IllegalArgumentException and EOFException, as either can occur during parsing of malformed serialized data.

Test: atest EdDsaTest/MlDsaTest

…EOFException.

Adjusts the expected hex encoding in EdDSA key serialization tests to dynamically include the length of the class name. Also, modifies invalid key deserialization tests in both EdDSA and ML-DSA to catch both `IllegalArgumentException` and `EOFException`, as either can occur during parsing of malformed serialized data.

Test: atest EdDsaTest/MlDsaTest
Comment thread common/src/test/java/org/conscrypt/MlDsaTest.java
@juergw

juergw commented Oct 1, 2025

Copy link
Copy Markdown
Collaborator

LGTM

@miguelaranda0 miguelaranda0 merged commit f0cd82c into google:master Oct 1, 2025
72 of 82 checks passed
@miguelaranda0 miguelaranda0 deleted the testup branch January 8, 2026 11:18
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.

2 participants