Commit Graph

27 Commits

Author SHA1 Message Date
Neil Marietta 13a4daa0f7 Fixed Crypto & Key module versions and Plugins Publish issues. 2021-10-28 18:40:21 +02:00
Benjamin Monjoie 412c304715 Added KeyHolderContext encryptAndSignData and decryptAndVerifyData with KeyPacket and SessionKey.
Added KeyHolderContext useKeysAs, if you don't want to have KeyHolderContext as receiver.
2021-10-28 15:56:11 +00:00
Benjamin Monjoie df44a09255 Allow (en/de)crypting on the fly using SessionKey
Add methods to allow encrypting/decrypting content using SessionKey on
the fly.

Also, add a few helper methods to `KeyHolderContext` and `SessionKey`
2021-10-25 13:00:38 +00:00
marin thiercelin 5c1e83f0dd
Key/User : fix handling of signed key lists
Signed key lists are used by the backend to enable key transparency of address keys.
This commits moves the logic of generating SKLs to the user address level.
It fixes the handling of flags and primariness of keys in SKLs.
We update the model of address and public address entities to store the SKL associated.
We migrate databases to be able to store those SKLs.
2021-10-15 14:57:03 +02:00
marin thiercelin 6be9fe51fa
Add crypto and key APIs to generate and verify encrypted signatures.
In some applications we require the detached signatures to be encrypted
to avoid leaking information about the signed data.
This commit adds support to generate and verify those encrypted signatures.
2021-10-11 11:40:19 +02:00
Neil Marietta 5e194b0894 Replaced Signature Verification validAtUtc (Long) by VerificationTime (Ignore, Now, Utc). 2021-10-08 16:10:19 +02:00
Jorge Martín 043f33c9d2 Add CacheOverride Tag for clients 2021-10-04 09:24:34 +00:00
Neil Marietta ae9280d50b KeyStoreCrypto fallback if Android KeyStore is not properly working. 2021-09-21 16:25:03 +02:00
Vincent Brison eae528716f Bump all libraries version to 1.15.0 2021-09-10 17:44:59 +02:00
Neil Marietta ed0e688fe1 Added encryptAndSign/decryptAndVerify PublicKeyRing parameter (default to KeyHolderContext.publicKeyRing). 2021-09-09 13:39:54 +00:00
Neil Marietta 485d372483 Fixed HashKey signature verification (do not throw IllegalArgumentException anymore on decryption). 2021-08-31 19:07:05 +02:00
Neil Marietta a876c56ac6 Added Crypto encrypt/decrypt File with KeyPacket/SessionKey/HashKey support. 2021-08-26 17:52:42 +02:00
dkadrikj 67ccc4b7cd Bump dependencies version to 1.6. 2021-08-21 00:44:49 +02:00
Neil Marietta 4b42d92f75 Set X25519 as default Key type (removed RSA). 2021-08-20 17:33:46 +02:00
Neil Marietta 3461a7c1c8 Added Crypto encryptAndSignFile & decryptAndVerifyFile. 2021-07-30 09:18:34 +00:00
Neil Marietta 63cb162e19 Refactored Core Database. 2021-07-21 16:24:02 +02:00
Neil Marietta 597e67b168 Added Crypto Stream API support. 2021-07-08 12:33:37 +02:00
Neil Marietta b2f5323ba9 Prevent Key usage if not active for encrypt/verify. 2021-06-11 12:43:47 +02:00
Neil Marietta 9ba8ccf62b Upgrade Key modules version as Network modules (fix "no virtual method getApiFactor"). 2021-06-04 15:54:40 +02:00
Davide Farella f6b8069eb2 Increase global minSdk [21] -> [23] 2021-05-03 07:25:42 +00:00
Damir Mihaljinec da31065676 Added room database type converters for UserId 2021-03-22 14:05:23 +00:00
Adam 6ac9f01dc6 Remove condition for non-empty "keys" array 2021-03-11 10:14:34 +01:00
Neil Marietta e1d4258918 Bump modules version to 1.0.2 (fix mail-message modules dependencies). 2021-03-05 13:51:05 +01:00
Neil Marietta 2e2feb42f5 Bump modules version to 1.0.1. 2021-02-23 10:42:01 +01:00
Neil Marietta 41146cda0f Bump modules and dependencies version for release 1.0.0.
Updated several README.md.
2021-02-11 17:35:03 +01:00
Neil Marietta 12ce7eb03e Added Key Data module. 2021-02-09 10:15:49 +01:00
Neil Marietta 043160fb10 Added Key Domain module. 2021-01-21 12:36:28 +01:00