-
Notifications
You must be signed in to change notification settings - Fork 726
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 dependency on libolm #8901
Conversation
https://github.com/uhoreg/matrix-doc/blob/symmetric_ssss/proposals/2472-symmetric-ssss.md "The m.secret_storage.v1.curve25519-aes-sha2 method proposed in MSC1946 is removed."
…e it will not crash the application.
|
||
@OptIn(ExperimentalStdlibApi::class) | ||
private fun String.toSha256(): String { | ||
return sha256.digest(toByteArray()).toHexString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found it surprising that we use toHexString here. The legacy sha was returning a base64 string no? https://gitlab.matrix.org/matrix-org/olm/-/blob/master/tests/test_olm_sha256.cpp#L16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch thanks! f726d16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, maybe just a nit, it could be named convertToSha256Base64Encoded
I have tested again the database migration and this is working fine:
|
Bumps [org.matrix.rustcomponents:crypto-android](https://github.com/matrix-org/matrix-rust-components-kotlin) from 0.4.1 to 0.4.3. - [Release notes](https://github.com/matrix-org/matrix-rust-components-kotlin/releases) - [Commits](matrix-org/matrix-rust-components-kotlin@crypto-v0.4.1...crypto-v0.4.3) --- updated-dependencies: - dependency-name: org.matrix.rustcomponents:crypto-android dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
sha256Converter.convertToSha256( | ||
str = threePid.value.lowercase(Locale.ROOT) + " " + threePid.toMedium() + " " + pepper | ||
) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that this code works using vector.im identity server.
I have tested the communication to the content scanner running a local synapse and a local instance of https://github.com/element-hq/matrix-content-scanner-python and the content scanner is able to decrypt the attachment. Patch to apply (for information / future me): Result testing data from a file sent to a room ( Content scanner logs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Note: checking application upgrade from 1.5.32 to 1.6.22 and we got a migration error then the application crashes. Here are the log:
Upgrading from 1.6.0 (which is 1-year old+) to 1.6.22 is working well. |
Type of change
Content
Remove the dependency on the deprecated libolm library
Motivation and context
Remove the dependency on the deprecated libolm library. See more details here:
Screenshots / GIFs
Tests
Tested devices
Checklist