Deltachat-android: External crypto engine

Created on 1 Sep 2017  路  4Comments  路  Source: deltachat/deltachat-android

I suggest the idea like that, but I see that K9 uses a external application (OpenKeyChain or AGP) to manage crypto. Wouldn't it be a better idea that internal crypto engine?

Most helpful comment

OpenKeyChain +1

All 4 comments

OpenKeyChain +1

We did not use OpenKeyChain as we wanted the core library to be portable (Android, Windows, Linux, Mac, iOS) - and using different crypto libs on different OS would not be the easiest way to archive this.

However, Delta Chat does not do the crypto itself but it relies on the external crypto engine OpenSSL (which is wrapped by netpgp).

Finally, all this is the state of today and subject to change ... esp. OpenPGP.js may become interesting ...

It's not possible to overright the core crypto in the Android and Linux Version with the external Engine?

It's not possible to overright the core crypto in the Android and Linux Version with the external Engine?

Currently: Not. Delta Chat Core uses C and eg. OpenKeyChain uses Java. To allow overriding we had to add an abstract API layer between, which, of course is generally possible.

The disadvantages of this approach may be harder error finding and harder code reviews. Also porting Delta Chat to a new system may be more complicated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

travisfw picture travisfw  路  5Comments

webratte picture webratte  路  4Comments

r10s picture r10s  路  4Comments

gitkald picture gitkald  路  5Comments

r10s picture r10s  路  4Comments