Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Fix issue #206 #207

Merged
merged 1 commit into from
Nov 30, 2018
Merged

Fix issue #206 #207

merged 1 commit into from
Nov 30, 2018

Conversation

csstaub
Copy link
Collaborator

@csstaub csstaub commented Nov 20, 2018

The auth tag len for AES-CBC+HMAC algorithms should match the key size, see RFC 7518 Section 5.2.4 and Section 5.2.5. Unfortunately this will (as-is) cause problems with decrypting AES-CBC+HMAC ciphertexts that were encrypted with this library that used 192-bit and 256-bit key sizes. Maybe we could address that with a special transitionary flag that allow for backwards compatibility? Or just note that data needs to be re-encrypted before upgrading in the release notes?

The auth tag len for AES-CBC+HMAC algorithms should match the key size,
see RFC 7518 Section 5.2.4 and Section 5.2.5. Unfortunately this will
(as-is) cause problems with decrypting AES-CBC+HMAC ciphertexts that
were encrypted with this library that used 192-bit and 256-bit key
sizes. A future pull request could add a flag to add some sort of
compabitility flag to allow for decryption to continue working for those
cases.
Copy link
Contributor

@mbyczkowski mbyczkowski left a comment

Choose a reason for hiding this comment

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

I think this is fine to merge. I'd just list which ciphers were affected by this and bump the version to something like 2.2.0

Copy link
Contributor

@alokmenghrajani alokmenghrajani left a comment

Choose a reason for hiding this comment

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

I'm fine making this breaking change.

@csstaub csstaub merged commit f61ac65 into v2 Nov 30, 2018
@csstaub csstaub deleted the cs/issue-206 branch November 30, 2018 00:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants