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

Bug-for bug compatibility with libolm's PkEncryption support #171

Merged
merged 3 commits into from
Sep 11, 2024

Commits on Sep 11, 2024

  1. feat: Add support for the libolm PkEncryption feature

    This patch introduces support for the libolm PkEncryption/PkDecryption
    concepts, ensuring bug-for-bug compatibility with libolm. Notably, the
    libolm implementation has a known flaw that leaves ciphertext
    unauthenticated, as documented in the Matrix spec [1]. To address this,
    the feature is gated behind a feature flag to better inform users of
    this issue.
    
    [1]: https://spec.matrix.org/v1.11/client-server-api/#backup-algorithm-mmegolm_backupv1curve25519-aes-sha2
    
    Changelog: Add support for the libolm PkEncryption feature. This allows
    Matrix clients to implement the [m.megolm_backup.v1.curve25519-aes-sha2](https://spec.matrix.org/v1.11/client-server-api/#backup-algorithm-mmegolm_backupv1curve25519-aes-sha2)
    room key backup algorithm. Please note that this algorithm contains a
    critical flaw and should only be used for compatibility reasons.
    poljar committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    a092040 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c7dd60 View commit details
    Browse the repository at this point in the history
  3. Constify some more functions

    poljar committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    484317b View commit details
    Browse the repository at this point in the history