saltyrtc / saltyrtc-client-java

SaltyRTC Java implementation.
Apache License 2.0
3 stars 4 forks source link

Precalculate shared keys #91

Closed dbrgn closed 6 years ago

dbrgn commented 6 years ago

This precomputes shared keys using the SharedKeyStore abstraction, similar to the JS client.

Fixes #86.

Some benchmarks would be nice (including mobile devices). @lgrahl in the JS codebase you simply encrypted/decrypted a certain amount of data in memory and measured the duration, right?

Note: This changes some public APIs due to a checked exception that has been moved in some cases (because precalculating the shared keys validates them earlier now than before). This means that a major release is required according to semver. Which is a good thing, because it allows us to tackle #89!

dbrgn commented 6 years ago

Benchmarks: https://github.com/saltyrtc/saltyrtc-demo/pull/5

Ready for review!