Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
* Fix docstrings.
|
|
|
|
|
|
|
|
* Fix review comments:
* Use of literal string instead of self.STORAGE_SECRETS_KEY
* Add mac_method param to mac_doc()
* Verify mac_method in mac_doc() and raise in there if unknown method
* Use different parts of storage_secret for generating doc passphrase and mac key.
* Add changes file.
|
|
|
|
|
|
* Change format of storage.
* Refactor and modify export/import recovery documents logic.
* Change storage secret length to 512.
* Encrypt the storage document with derived function.
* Refactor property name inside crypto submodule.
* Add docstrings for new methods.
* Fix wrong method call import_recovery_document.
* Fix base64 encoding and secret/kdf length info.
* Add missing header.
* Add missing fields to comment.
Closes 2475 and 2423.
|
|
|
|
|
|
|
|
|
|
Also does:
* Remove all crypto methods from LeapDocument.
* Encode 'encryption_scheme' inside the document JSON.
* Add functions for encrypting and decrypting.
* Fix LeapSyncTarget so its connection actually returns a LeapSyncTarget.
* Fix symmetric encryption when syncing:
- don't try to encrypt tombstone documents.
* Fix symmetric decryption when syncing:
- Only try do decrypt if the incoming document has an '_encryption_scheme'
entry with value equal to EncryptionSchemes.PUBKEY.
* Fix doc skipping for non-syncable docs.
* Fix tests that compared raw content with encrypted content.
|
|
This removes all GPG wrapper that was left and includes Key Manager to take
care of all crypto stuff.
|
|
This creates a SoledadCrypto object that should encapsulate everything related
to crypto in Soledad.
Also, replace hmac for sha256 when creating hashes.
|
|
Everything related to asymmetric encryting will be handled by Key Manager.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|