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

Support avatar decryption #137

Open
nanu-c opened this issue Feb 27, 2022 · 2 comments
Open

Support avatar decryption #137

nanu-c opened this issue Feb 27, 2022 · 2 comments

Comments

@nanu-c
Copy link
Contributor

nanu-c commented Feb 27, 2022

On Android it uses this function:

nonce has 12 bytes from the the beginning of the avatar and the profile key has a length of 32.

https://github.com/signalapp/Signal-Android/blob/a47448b6c6c26a0d7f7156ce54eeaf2a6a34ed5d/libsignal/service/src/main/java/org/whispersystems/signalservice/api/crypto/ProfileCipherInputStream.java#L22-L35

https://github.com/signalapp/libsignal-client/blob/86ba9b5b60f6bbd3b42833e3144708d8c75f2dde/rust/bridge/shared/src/crypto.rs#L20-L42

Are you planing to use libsignal-client decryption/encryption functions in all the places in the future?

@rubdos
Copy link
Member

rubdos commented Feb 28, 2022

Are you planing to use libsignal-client decryption/encryption functions in all the places in the future?

Yes, back in the time this crate was started they didn't exist yet. We had our own libsignal-protocol-rs... Also, we want to upstream as much as possible to libsignal-client.

@gferon
Copy link
Collaborator

gferon commented Mar 9, 2022

I think this will pair very well with #119 🤓

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

No branches or pull requests

3 participants