Skip to content

fix: authenticate IV in HMAC, drop flaky raw-decrypt tests - #155

Merged
Ankovokin merged 1 commit into
masterfrom
fix/153-AES256
Oct 4, 2026
Merged

Ankovokin merged 1 commit into
masterfrom
fix/153-AES256

Conversation

@Ankovokin

@Ankovokin Ankovokin commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

Related Issues:

Type of Change:

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Performance
  • Refactoring
  • Tests

Description:

  • encryptWithHmac/decryptWithHmac: MAC over iv + ciphertext
  • add AES256::IV_SIZE = BLOCK_SIZE
  • remove DecryptWithWrongKeyThrows / DecryptWithWrongIVThrows
    (non-deterministic; covered by HMAC variants)

Checklist:

  • Code compiles
  • Tests pass
  • Documentation updated
  • Changelog updated
  • No sensitive data exposed

@Ankovokin
Ankovokin merged commit b6352be into master Oct 4, 2026
29 of 32 checks passed
@lev2p1
lev2p1 deleted the fix/153-AES256 branch October 6, 2026 21:02
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