Skip to content

fix(crypto): reject malformed UTF-8 after authenticated decryption - #5

Open
koushik4475 wants to merge 2 commits into
mainfrom
fix/reject-invalid-utf8-ciphertext
Open

koushik4475 wants to merge 2 commits into
mainfrom
fix/reject-invalid-utf8-ciphertext

Conversation

@koushik4475

Copy link
Copy Markdown
Owner

Summary

  • Decode authenticated plaintext with a strict UTF-8 decoder rather than silently replacing malformed byte sequences.
  • Reject malformed text with a clear input-format error.
  • Add a regression test using a valid AES-GCM envelope containing invalid UTF-8 bytes.

Validation

  • Added JVM unit coverage; waiting for Android CI.

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