Commit Graph

15 Commits

Author SHA1 Message Date
Thomas Waldmann 159315ef5d use BORG_* as file MAGIC, adapt tests 2015-05-13 15:10:06 +02:00
Thomas Waldmann cb5c9b63b3 fork: s/attic/borg/g, fix URLs, add new section to AUTHORS
use borg instead attic except at the places where it was used:
- as toplevel package name, directory name, file name
- to refer to original attic

remove sphinx upload make command, will be replaced by github.io site later

remove references to binary downloads and linux packages for now

remove some software name references, fix grammar

use borgbackup rather than borg-backup (or borg) in URLs,
less name collision issues, better search results, no validity issues with "-"
2015-05-13 15:02:33 +02:00
Thomas Waldmann 354b3d34e3 Merge branch 'master' into merge 2015-04-21 21:02:42 +02:00
Jonas Borgström b61ba51c0d More user friendly error message when repository key file is not found
Closes #236
2015-04-19 23:09:36 +02:00
Thomas Waldmann b7cefacb69 Merge branch 'python_cleanup' into merge
Conflicts:
	attic/archiver.py
	attic/remote.py
2015-03-18 00:23:41 +01:00
Thomas Waldmann 4ef6125f45 cleanup pep8 issues found by pycharm 2015-03-17 23:47:21 +01:00
Thomas Waldmann fec5572836 no Class(object) in py3 2015-03-17 23:03:36 +01:00
Thomas Waldmann 084f6e1602 PR #222 - Merge branch 'issue_189' of https://github.com/ThomasWaldmann/attic into merge 2015-03-08 04:20:13 +01:00
Thomas Waldmann be29e5f6f4 fix traceback when trying to do unsupported passphrase change, fixes #189 2015-03-08 04:19:25 +01:00
Thomas Waldmann 6c7c2e2e40 cleanup crypto.pyx, make it easier to adapt to other modes
There were some small issues:

 a) it never called EVP_EncryptFinal_ex.
For CTR mode, this had no visible consequences as EVP_EncryptUpdate already yielded all ciphertext.
For cleanliness and to have correctness even in other modes, the missing call was added.

b) decrypt = encrypt hack
This is a nice hack to abbreviate, but it only works for modes without padding and without authentication.
For cleanliness and to have correctness even in other modes, the missing usage of the decrypt api was added.

c) outl == inl assumption
Again, True for CTR mode, but not for padding or authenticating modes.
Fixed so it computes the ciphertext / plaintext length based on api return values.

Other changes:
As encrypt and decrypt API calls are different even for initialization/reset, added a is_encrypt flag.

Defensive output buffer allocation. Added the length of one extra AES block (16bytes) so it would
work even with padding modes. 16bytes are needed because a full block of padding might get
added when the plaintext was a multiple of aes block size.

These changes are based on some experimental code I did for aes-cbc and aes-gcm.
While we likely won't ever want aes-cbc in attic (maybe gcm though?), I think it is cleaner
to not make too many mode specific assumptions and hacks, but just use the API as it
was meant to be used.
2015-03-03 19:19:28 +01:00
Jonas Borgström add59e4ab3 Prepare for future payload format change 2014-12-17 21:55:33 +01:00
Jonas Borgström 1db4ba52f9 Make sure key files end with a new line 2014-03-28 22:56:40 +01:00
Jonas Borgström b92a620600 Crypto code cleanup and test improvements. 2013-08-12 14:39:14 +02:00
Jonas Borgström 012e0d4153 New syntax to enable repository encryption 2013-08-10 13:02:20 +02:00
Jonas Borgström b718a443a8 Project rename 2013-07-09 20:14:18 +02:00
Renamed from darc/key.py (Browse further)