Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove padding from base64 encoded iv value #1059

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

Johennes
Copy link
Contributor

@Johennes Johennes commented Apr 1, 2021

This uses the existing MXBase64Tools to trim the = padding from the base64 encoded string. The reinsertion of the padding prior to decoding was already implemented (line 224 in the same file).

Closes: element-hq/element-ios#4172

Signed-off-by: Johannes Marbach n0-0ne+github@mailbox.org

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request updates CHANGES.rst
  • Pull request includes a sign off

This uses the existing `MXBase64Tools` to trim the `=` padding from the base64
encoded string. The reinsertion of the padding prior to decoding was already
implemented (line 224 in the same file).

Closes: element-hq/element-ios#4172

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
@manuroe manuroe merged commit 5244f2e into matrix-org:develop Apr 6, 2021
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.

Initialization vector of encrypted files is sent as padded base64
2 participants